OpenBoot 2.x Quick Reference

Memory Mapping Commands

Table 1-24 Memory Mapping Commands

alloc-mem

( size -- virt ) 

Allocate and map size bytes of available memory; return the virtual address.Unmap with free-mem.

cacheable

( space -- cache-space ) 

Modify the address space so that the subsequent address mapping is made cacheable. 

free-mem

( virt size -- ) 

Free memory allocated by alloc-mem.

free-virtual

( virt size -- ) 

Undo mappings created with memmap.

map?

( virt -- ) 

Display memory map information for the virtual address. 

memmap

( phys space size -- virt ) 

Map a region of physical addresses; return the allocated virtual address. Unmap with free-virtual.

obio

( -- space ) 

Specify the device address space for mapping. 

obmem

( -- space ) 

Specify the onboard memory address space for mapping. 

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 (often 4K). 

sbus

( -- space ) 

Specify the SBus address space for mapping.