projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1407bc
)
com32.h: Fix MK_PTR() for 64-bit
author
Matt Fleming
<matt.fleming@intel.com>
Fri, 19 Oct 2012 16:02:37 +0000
(17:02 +0100)
committer
Matt Fleming
<matt.fleming@intel.com>
Fri, 26 Oct 2012 15:35:48 +0000
(16:35 +0100)
In the future we need 32/64-bit EFI to simply not include this file at
all. For now, just fixup the warning about casting integers to
pointers of different size.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/include/com32.h
patch
|
blob
|
history
diff --git
a/com32/include/com32.h
b/com32/include/com32.h
index
7ca187a
..
c5d6017
100644
(file)
--- a/
com32/include/com32.h
+++ b/
com32/include/com32.h
@@
-176,7
+176,7
@@
static inline bool _OFFS_VALID(const volatile void *__p, size_t __s,
static inline void *MK_PTR(uint16_t __seg, uint16_t __offs)
{
- return (void *)((__seg << 4) + __offs);
+ return (void *)(
unsigned long)(
(__seg << 4) + __offs);
}
/* Some tools to handle 16:16 far pointers in memory */