From cb4e9e99ebe5d63bc57b518b7de026ee62a21688 Mon Sep 17 00:00:00 2001 From: Nikunj A Dadhania Date: Fri, 24 Apr 2015 11:13:20 +0530 Subject: [PATCH] pci: Support 64-bit address translation Signed-off-by: Nikunj A Dadhania Reviewed-by: Thomas Huth Signed-off-by: Alexey Kardashevskiy --- slof/fs/translate.fs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/slof/fs/translate.fs b/slof/fs/translate.fs index e2633e5..9654f24 100644 --- a/slof/fs/translate.fs +++ b/slof/fs/translate.fs @@ -33,11 +33,9 @@ dup l@ FF AND 0<> ( prop_type address data cfgspace_offset? ) 3 pick 0= ( prop_type address data cfgspace_offset? reg_prop? ) AND NOT IF - 2dup 8 + ( prop_type address data address data' ) - 2dup l@ 2 pick 8 + l@ + <= -rot l@ >= and IF + 2dup 4 + ( prop_type address data address data' ) + 2dup @ 2 pick 8 + @ + <= -rot @ >= and IF l@ 03000000 and 18 rshift nip - \ no 64bit translations supported pretend it is 32bit - dup 3 = IF 1- THEN ( prop_type type ) swap drop ( type ) UNLOOP EXIT