aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-11-18 14:01:54 +0530
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-11-18 14:53:09 +0530
commitde0e80e03ecc4e076ebbdc845589537f23d9e5f6 (patch)
treeeb3a6de669d37196cf5e53be2f3cb44776dea6ba
parent568af4b578eba3cc85a04bf1b0a228cdb6ebd5ff (diff)
downloadSLOF-de0e80e03ecc4e076ebbdc845589537f23d9e5f6.zip
SLOF-de0e80e03ecc4e076ebbdc845589537f23d9e5f6.tar.gz
SLOF-de0e80e03ecc4e076ebbdc845589537f23d9e5f6.tar.bz2
e1000: remember node handleqemu-slof-20131118
While netbooting with yaboot, code was failing at dma-map-out. Remember my-handle and store for further reference, which is needed for dma-map-out during close. yaboot for some reason does not set the current-node while calling close. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
-rw-r--r--board-qemu/slof/e1k.fs2
1 files changed, 2 insertions, 0 deletions
diff --git a/board-qemu/slof/e1k.fs b/board-qemu/slof/e1k.fs
index 1f2b192..e5596b0 100644
--- a/board-qemu/slof/e1k.fs
+++ b/board-qemu/slof/e1k.fs
@@ -15,6 +15,7 @@
s" network" device-type
INSTANCE VARIABLE obp-tftp-package
+get-node CONSTANT my-phandle
0 VALUE e1k-priv
0 VALUE open-count
@@ -37,6 +38,7 @@ INSTANCE VARIABLE obp-tftp-package
: close ( -- )
+ my-phandle set-node
open-count 0> IF
open-count 1 - dup to open-count
0= IF