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/bios_console.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/bios_console.c')
-rw-r--r-- | src/arch/i386/firmware/pcbios/bios_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/firmware/pcbios/bios_console.c b/src/arch/i386/firmware/pcbios/bios_console.c index 2e252ecb..ee6cdce2 100644 --- a/src/arch/i386/firmware/pcbios/bios_console.c +++ b/src/arch/i386/firmware/pcbios/bios_console.c @@ -543,7 +543,7 @@ static void bios_inject_startup ( void ) { : : "i" ( bios_inject ) ); /* Hook INT 16 */ - hook_bios_interrupt ( 0x16, ( ( unsigned int ) int16_wrapper ), + hook_bios_interrupt ( 0x16, ( ( intptr_t ) int16_wrapper ), &int16_vector ); } @@ -555,7 +555,7 @@ static void bios_inject_startup ( void ) { static void bios_inject_shutdown ( int booting __unused ) { /* Unhook INT 16 */ - unhook_bios_interrupt ( 0x16, ( ( unsigned int ) int16_wrapper ), + unhook_bios_interrupt ( 0x16, ( ( intptr_t ) int16_wrapper ), &int16_vector ); } |