diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-07-06 17:15:54 +0200 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-10-12 08:44:11 +0200 |
commit | ad3238534f79f218ed318c532f260d5ea1fd8074 (patch) | |
tree | ccacf10f660c5674161341adc8e3a5bc8310b3ad /slof/ofw.S | |
parent | 7a3606eeb9fc778bab000dd50bf7fbee6bc59ee4 (diff) | |
download | SLOF-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/ofw.S')
-rw-r--r-- | slof/ofw.S | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ /****************************************************************************** - * Copyright (c) 2004, 2008 IBM Corporation + * Copyright (c) 2004, 2011 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License @@ -30,6 +30,11 @@ ori r31, r31, epapr_magic@l /* low level firmware; then r6 */ std r6, 0(r31) /* contains the epapr magic */ + /* this only works if paflof is running below 4GB */ + lis r31, epapr_ima_size@h + ori r31, r31, epapr_ima_size@l + std r7, 0(r31) /* r7 contains the IMA size */ + /* fill in handler address */ /* this only works if paflof is running below 4GB */ |