summaryrefslogtreecommitdiffstats
path: root/qemu/roms/SLOF/slof/fs/available.fs
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/SLOF/slof/fs/available.fs
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/SLOF/slof/fs/available.fs')
-rw-r--r--qemu/roms/SLOF/slof/fs/available.fs72
1 files changed, 0 insertions, 72 deletions
diff --git a/qemu/roms/SLOF/slof/fs/available.fs b/qemu/roms/SLOF/slof/fs/available.fs
deleted file mode 100644
index 5eb8fa93a..000000000
--- a/qemu/roms/SLOF/slof/fs/available.fs
+++ /dev/null
@@ -1,72 +0,0 @@
-\ *****************************************************************************
-\ * Copyright (c) 2004, 2008 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
-\ ****************************************************************************/
-
-VARIABLE chosen-memory-ih 0 chosen-memory-ih !
-
-\ +
-\ Maintain "available" property.
-\ Sun has a single memory node with "available" property
-\ and separate memory controller nodes.
-\ We corespond memory nodes with their respective memory controllers
-\ and use /chosen/memory as default memory node to hold the "available" map
-\ NOTE -> /chosen/memory is expected 2B initialized before using claim/release
-\ +
-
-: (chosen-memory-ph) ( -- phandle )
- chosen-memory-ih @ ?dup 0= IF
- s" memory" get-chosen IF
- decode-int nip nip dup chosen-memory-ih !
- ihandle>phandle
- ELSE 0 THEN
- ELSE ihandle>phandle THEN
-;
-
-: (set-available-prop) ( prop plen -- )
- s" available"
- (chosen-memory-ph) ?dup 0<> IF set-property ELSE
- cr ." Can't find chosen memory node - "
- ." no available property created" cr
- 2dup 2dup
- THEN
-;
-
-: update-available-property ( available-ptr -- )
- dup >r available>size@
- 0= r@ available AVAILABLE-SIZE /available * + >= or IF
- available r> available - encode-bytes (set-available-prop)
- ELSE
- r> /available + RECURSE
- THEN
-;
-
-: update-available-property available update-available-property ;
-
-\ \\\\\\\\\\\\\\ Exported Interface:
-\ +
-\ IEEE 1275 implementation:
-\ claim
-\ Claim the region with given start address and size (if align parameter is 0);
-\ alternatively claim any region of given alignment
-\ +
-\ Throw an exception if failed
-\ +
-: claim ( [ addr ] len align -- base ) claim update-available-property ;
-
-\ +
-\ IEEE 1275 implementation:
-\ release
-\ Free the region with given start address and size
-\ +
-: release ( addr len -- ) release update-available-property ;
-
-update-available-property
-