j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: 2008-08-06 20:20:12 +0200 (Wed, 06 Aug 2008) New Revision: 219
Modified: openbios-devel/arch/sparc64/openbios.c openbios-devel/arch/sparc64/tree.fs Log: Fix #size-cells for HelenOS, add /openprom/version node
Modified: openbios-devel/arch/sparc64/openbios.c =================================================================== --- openbios-devel/arch/sparc64/openbios.c 2008-08-02 10:59:05 UTC (rev 218) +++ openbios-devel/arch/sparc64/openbios.c 2008-08-06 18:20:12 UTC (rev 219) @@ -216,6 +216,21 @@ //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 @@ { "SUNW,itlb-load", itlb_load }, { "map", mmu_map }, { "unmap", mmu_unmap }, + { "claim", mmu_claim }, };
/*
Modified: openbios-devel/arch/sparc64/tree.fs =================================================================== --- openbios-devel/arch/sparc64/tree.fs 2008-08-02 10:59:05 UTC (rev 218) +++ openbios-devel/arch/sparc64/tree.fs 2008-08-06 18:20:12 UTC (rev 219) @@ -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 @@ : open true ; : close ; \ claim ( phys size align -- base ) + : claim 2drop ; \ release ( phys size -- ) finish-device
@@ -22,9 +23,12 @@ : 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