mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -216,6 +216,21 @@ mmu_unmap(void)
|
||||
//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);
|
||||
|
||||
NODE_METHODS(mmu) = {
|
||||
@@ -226,6 +241,7 @@ NODE_METHODS(mmu) = {
|
||||
{ "SUNW,itlb-load", itlb_load },
|
||||
{ "map", mmu_map },
|
||||
{ "unmap", mmu_unmap },
|
||||
{ "claim", mmu_claim },
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
" /" find-device
|
||||
2 encode-int " #address-cells" property
|
||||
1 encode-int " #size-cells" property
|
||||
2 encode-int " #size-cells" property
|
||||
" sun4u" encode-string " compatible" property
|
||||
|
||||
\ : encode-unit encode-unit-sbus ;
|
||||
@@ -13,6 +13,7 @@ new-device
|
||||
: open true ;
|
||||
: close ;
|
||||
\ claim ( phys size align -- base )
|
||||
: claim 2drop ;
|
||||
\ release ( phys size -- )
|
||||
finish-device
|
||||
|
||||
@@ -22,9 +23,12 @@ new-device
|
||||
: open true ;
|
||||
: close ;
|
||||
\ claim ( phys size align -- base )
|
||||
: claim 2drop ;
|
||||
\ release ( phys size -- )
|
||||
finish-device
|
||||
|
||||
" /options" find-device
|
||||
" disk" encode-string " boot-from" property
|
||||
|
||||
" /openprom" find-device
|
||||
" OBP 3.10.24 1999/01/01 01:01" encode-string " version" property
|
||||
|
||||
Reference in New Issue
Block a user