OpenBoot 3.x Quick Reference

Memory Mapping Commands

Table 1-25 Memory Mapping Commands

alloc-mem

( size -- virt )

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

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 decoded page map entry 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 8K). 

sbus

( -- space )

Specify the SBus address space for mapping.