[PATCH 1/2] this fix compile error in 64bit system
xiangfu at sharism.cc
Mon Jul 12 06:00:01 EDT 2010
the IRIS compile fine in 32bit system. but I got a compile error in 64bit system.
iris.hhp:552: error: cast from âvoid*â to âunsigned intâ loses precision
I search a little bit. change it to "unsigned long". I am not sure if this is ok.
I don't know what happen in "icall" :(.
but after change to "unsigned long", I have test in 32bit system. the usbserver works fine.
just for your information.
Signed-off-by: Xiangfu Liu <xiangfu at sharism.cc>
iris.hhp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/iris.hhp b/iris.hhp
index a839c53..ccbb14a 100644
@@ -549,7 +549,7 @@ namespace Iris:
bool unmap (Cap page):
return map (page, ~0)
Page mapping (void *address):
- icall (CAP_MASTER_DIRECT | MAPPING, Num ((unsigned)address))
+ icall (CAP_MASTER_DIRECT | MAPPING, Num ((unsigned long)address))
return get_arg ()
unsigned get_limit ():
return call (CAP_MASTER_DIRECT | GET_LIMIT).l
More information about the discussion