1 /* segment.c: Prom routine to map segments in other contexts before
2 * a standalone is completely mapped. This is for sun4 and
3 * sun4c architectures only.
4 *
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
6 */
7
8 #include <asm/openprom.h>
9 #include <asm/oplib.h>
10
11 /* Set physical segment 'segment' at virtual address 'vaddr' in
12 * context 'ctx'.
13 */
14 void
15 prom_putsegment(int ctx, unsigned long vaddr, int segment)
/* ![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
*/
16 {
17 (*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment);
18 return;
19 }