aboutsummaryrefslogtreecommitdiff
path: root/slof/fs
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-09-12 13:47:52 +0530
committerAlexey Kardashevskiy <aik@ozlabs.ru>2013-10-09 14:07:14 +1100
commit7761eefbf4180e4a37e5be87e330b81a9c645a69 (patch)
tree9e5d50882aba6238b33fe5b2660ea15a7e5cbc49 /slof/fs
parentee2dfa308633ee107574923166b3981d72f92f05 (diff)
downloadSLOF-list.zip
SLOF-list.tar.gz
SLOF-list.tar.bz2
Update device tree returned by CAS hypercallqemu-slof-20131009list
Add device tree parsing code and setting properties. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'slof/fs')
-rw-r--r--slof/fs/archsupport.fs32
1 files changed, 23 insertions, 9 deletions
diff --git a/slof/fs/archsupport.fs b/slof/fs/archsupport.fs
index 4d18c74..6964620 100644
--- a/slof/fs/archsupport.fs
+++ b/slof/fs/archsupport.fs
@@ -1,18 +1,32 @@
-4096 VALUE size
+\ *****************************************************************************
+\ * Copyright (c) 2011 IBM Corporation
+\ * All rights reserved.
+\ * This program and the accompanying materials
+\ * are made available under the terms of the BSD License
+\ * which accompanies this distribution, and is available at
+\ * http://www.opensource.org/licenses/bsd-license.php
+\ *
+\ * Contributors:
+\ * IBM Corporation - initial implementation
+\ ****************************************************************************/
+
+1000 VALUE size
: ibm,client-architecture-support ( vec -- err? )
\ Store require parameters in nvram
\ to come back to right boot device
-
\ Allocate memory for H_CALL
size alloc-mem ( vec memaddr )
- swap over
- \ FIXME: convert memaddr to phys
- size ( memaddr vec memaddr size )
+ swap over size ( memaddr vec memaddr size )
\ make h_call to hypervisor
- hv-cas 0= IF
- ." hv-cas succeeded " cr
- \ Make required changes
- FALSE
+ hv-cas 0= IF ( memaddr )
+ dup @ 1 >= IF \ Version number >= 1
+ \ Make required changes
+ " /" find-node set-node
+ dup 4 + fdt-init
+ fdt-check-header
+ fdt-struct fdt-fix-cas-node
+ THEN
+ drop FALSE
ELSE
." hv-cas failed " TRUE
THEN