OpenBoot 3.x Command Reference Manual

Memory Mapping Primitives

Table I-48 Memory Mapping Primitives

Command 

Stack Diagram 

Description 

iomap?

( virt -- ) 

Display IOMMU page map entry for the virtual address. 

iomap-page

( phys space virt -- ) 

Map physical page given by phys and space to the virtual address.

iomap-pages

( phys space virt size -- ) 

Perform consecutive iomap-pages to map a region of memory given by size.

iopgmap@

( virt -- pte | 0 ) 

Return IOMMU page map entry for the virtual address. 

iopgmap!

( pte virt -- ) 

Store a new page map entry for the virtual address. 

map-page

( phys space virt -- )  

Map one page of memory starting at address phys on to virtual address virt in the specified address space. All addresses are truncated to lie on a page boundary.

map-pages

( phys space virt size -- ) 

Perform consecutive map-pages to map a region of memory to the specified size.

map-region

( region# virt -- ) 

Map a region. 

map-segments

( smentry virt len -- ) 

Perform consecutive smap! operations to map a region of memory.

pgmap!

( pmentry virt -- ) 

Store a new page map entry for the virtual address. 

pgmap?

( virt -- ) 

Display the page map entry (decoded and in English) corresponding to the virtual address. 

pgmap@

( virt -- pmentry ) 

Return the page map entry for the virtual address. 

pagesize

( -- size ) 

Return the size of a page.

rmap!

( rmentry virt -- ) 

Store a new region map entry for the virtual address. 

rmap@

( virt -- rmentry ) 

Return the region map entry for the virtual address. 

segmentsize

( -- size ) 

Return the size of a segment.

smap!

( smentry virt -- ) 

Store a new segment map entry for the virtual address. 

smap?

( virt -- ) 

Formatted display of the segment map entry for the virtual address. 

smap@

( virt -- smentry ) 

Return the segment map entry for the virtual address.