diff options
author | Michael Brown | 2016-02-16 17:24:30 +0100 |
---|---|---|
committer | Michael Brown | 2016-02-16 20:32:32 +0100 |
commit | 15fadab5331f0588eac2d756d680ec65173ca079 (patch) | |
tree | 440440723190fc0d49934d285bf04d2257ccb6ca /src/arch/i386/firmware/pcbios/hidemem.c | |
parent | [libc] Split rmsetjmp() and rmlongjmp() into a separate rmsetjmp.h (diff) | |
download | ipxe-15fadab5331f0588eac2d756d680ec65173ca079.tar.gz ipxe-15fadab5331f0588eac2d756d680ec65173ca079.tar.xz ipxe-15fadab5331f0588eac2d756d680ec65173ca079.zip |
[bios] Use intptr_t when casting .text16 function pointers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386/firmware/pcbios/hidemem.c')
-rw-r--r-- | src/arch/i386/firmware/pcbios/hidemem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arch/i386/firmware/pcbios/hidemem.c b/src/arch/i386/firmware/pcbios/hidemem.c index 253c601f..9f9e4f5f 100644 --- a/src/arch/i386/firmware/pcbios/hidemem.c +++ b/src/arch/i386/firmware/pcbios/hidemem.c @@ -179,8 +179,7 @@ static void hide_etherboot ( void ) { } /* Hook INT 15 */ - hook_bios_interrupt ( 0x15, ( unsigned int ) int15, - &int15_vector ); + hook_bios_interrupt ( 0x15, ( intptr_t ) int15, &int15_vector ); /* Dump memory map after mangling */ DBG ( "Hidden iPXE from system memory map\n" ); @@ -210,7 +209,7 @@ static void unhide_etherboot ( int flags __unused ) { } /* Try to unhook INT 15 */ - if ( ( rc = unhook_bios_interrupt ( 0x15, ( unsigned int ) int15, + if ( ( rc = unhook_bios_interrupt ( 0x15, ( intptr_t ) int15, &int15_vector ) ) != 0 ) { DBG ( "Cannot unhook INT15: %s\n", strerror ( rc ) ); /* Leave it hooked; there's nothing else we can do, |