Fix #size-cells for HelenOS, add /openprom/version node

git-svn-id: svn://coreboot.org/openbios/openbios-devel@219 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-08-06 18:20:12 +00:00
parent f3bac24932
commit 0c4d74757f
2 changed files with 21 additions and 1 deletions

View File

@@ -216,6 +216,21 @@ mmu_unmap(void)
//unmap_pages(virt, size); //unmap_pages(virt, size);
} }
/*
3.6.5 claim
( virt size align -- base )
*/
static void
mmu_claim(void)
{
unsigned long virt, size, align;
align = POP();
size = POP();
virt = POP();
PUSH(virt); // XXX
}
DECLARE_UNNAMED_NODE(mmu, INSTALL_OPEN, 0); DECLARE_UNNAMED_NODE(mmu, INSTALL_OPEN, 0);
NODE_METHODS(mmu) = { NODE_METHODS(mmu) = {
@@ -226,6 +241,7 @@ NODE_METHODS(mmu) = {
{ "SUNW,itlb-load", itlb_load }, { "SUNW,itlb-load", itlb_load },
{ "map", mmu_map }, { "map", mmu_map },
{ "unmap", mmu_unmap }, { "unmap", mmu_unmap },
{ "claim", mmu_claim },
}; };
/* /*

View File

@@ -1,7 +1,7 @@
" /" find-device " /" find-device
2 encode-int " #address-cells" property 2 encode-int " #address-cells" property
1 encode-int " #size-cells" property 2 encode-int " #size-cells" property
" sun4u" encode-string " compatible" property " sun4u" encode-string " compatible" property
\ : encode-unit encode-unit-sbus ; \ : encode-unit encode-unit-sbus ;
@@ -13,6 +13,7 @@ new-device
: open true ; : open true ;
: close ; : close ;
\ claim ( phys size align -- base ) \ claim ( phys size align -- base )
: claim 2drop ;
\ release ( phys size -- ) \ release ( phys size -- )
finish-device finish-device
@@ -22,9 +23,12 @@ new-device
: open true ; : open true ;
: close ; : close ;
\ claim ( phys size align -- base ) \ claim ( phys size align -- base )
: claim 2drop ;
\ release ( phys size -- ) \ release ( phys size -- )
finish-device finish-device
" /options" find-device " /options" find-device
" disk" encode-string " boot-from" property " disk" encode-string " boot-from" property
" /openprom" find-device
" OBP 3.10.24 1999/01/01 01:01" encode-string " version" property