aboutsummaryrefslogtreecommitdiff
path: root/slof/prim.code
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2011-07-06 17:15:54 +0200
committerThomas Huth <thuth@linux.vnet.ibm.com>2011-10-12 08:44:11 +0200
commitad3238534f79f218ed318c532f260d5ea1fd8074 (patch)
treeccacf10f660c5674161341adc8e3a5bc8310b3ad /slof/prim.code
parent7a3606eeb9fc778bab000dd50bf7fbee6bc59ee4 (diff)
downloadSLOF-ad3238534f79f218ed318c532f260d5ea1fd8074.zip
SLOF-ad3238534f79f218ed318c532f260d5ea1fd8074.tar.gz
SLOF-ad3238534f79f218ed318c532f260d5ea1fd8074.tar.bz2
Pass IMA to Paflof and fix the memory regions which have to be CLAIMed
Provide a IMA (initially mapped area) value to Paflof so that the Forth code can properly claim the memory regions which are used by Paflof. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'slof/prim.code')
-rw-r--r--slof/prim.code6
1 files changed, 6 insertions, 0 deletions
diff --git a/slof/prim.code b/slof/prim.code
index d1ac61f..a4b5ded 100644
--- a/slof/prim.code
+++ b/slof/prim.code
@@ -69,6 +69,9 @@ PRIM(CISTACK) PUSH; TOS.a = the_client_stack
// compile-in-interpret buffer
PRIM(COMP_X2d_BUFFER) PUSH; TOS.a = the_comp_buffer; MIRP
+// Paflof base address
+PRIM(PAFLOF_X2d_START) PUSH; TOS.a = _start_OF; MIRP
+
// Heap pointers
PRIM(HEAP_X2d_START) PUSH; TOS.a = the_heap_start; MIRP
PRIM(HEAP_X2d_END) PUSH; TOS.a = the_heap_end; MIRP
@@ -84,6 +87,9 @@ PRIM(ROMFS_X2d_BASE) PUSH; TOS.u = romfs_base; MIRP
// epapr-magic is a copy of r6
PRIM(EPAPR_X2d_MAGIC) PUSH; TOS.u = epapr_magic; MIRP
+// Initially mapped area size (for ePAPR compliant LLFW)
+PRIM(EPAPR_X2d_IMA_X2d_SIZE) PUSH; TOS.u = epapr_ima_size; MIRP
+
// Codefields.
code_DOCOL:
{