aboutsummaryrefslogtreecommitdiff
path: root/board-qemu/slof/pci-phb.fs
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-11-15 10:41:10 +0530
committerNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2013-11-15 10:44:58 +0530
commitf22b96d422875c495f36730191176d4bac4a4457 (patch)
treeb6cc53b5d702dc05318cc6427df4d8a3f60de52a /board-qemu/slof/pci-phb.fs
parentb5ee6147f35fe1368f74f80bfd640beedba8500d (diff)
downloadSLOF-f22b96d422875c495f36730191176d4bac4a4457.zip
SLOF-f22b96d422875c495f36730191176d4bac4a4457.tar.gz
SLOF-f22b96d422875c495f36730191176d4bac4a4457.tar.bz2
block 0 address in the allocator
PCI window bars sometimes returns 0 as the a start address. This will be used by the allocator. Devices or Software can take it as null address. Mark 0 address as always allocated during initialization. Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'board-qemu/slof/pci-phb.fs')
-rw-r--r--board-qemu/slof/pci-phb.fs5
1 files changed, 5 insertions, 0 deletions
diff --git a/board-qemu/slof/pci-phb.fs b/board-qemu/slof/pci-phb.fs
index 4b002c6..57e778a 100644
--- a/board-qemu/slof/pci-phb.fs
+++ b/board-qemu/slof/pci-phb.fs
@@ -131,6 +131,11 @@ setup-puid
2drop
bm-handle 0= IF
dma-window-base dma-window-size 1000 bm-allocator-init to bm-handle
+ \ Sometimes the window-base appears as zero, that does not
+ \ go well with NULL pointers. So block this address
+ dma-window-base 0= IF
+ bm-handle 1000 bm-alloc drop
+ THEN
THEN
;