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/image | |
| 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/image')
| -rw-r--r-- | src/arch/i386/image/bootsector.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/i386/image/bootsector.c b/src/arch/i386/image/bootsector.c index dba87613c..67dad04f8 100644 --- a/src/arch/i386/image/bootsector.c +++ b/src/arch/i386/image/bootsector.c @@ -71,9 +71,9 @@ int call_bootsector ( unsigned int segment, unsigned int offset, DBG ( "Booting from boot sector at %04x:%04x\n", segment, offset ); /* Hook INTs 18 and 19 to capture failure paths */ - hook_bios_interrupt ( 0x18, ( unsigned int ) bootsector_exec_fail, + hook_bios_interrupt ( 0x18, ( intptr_t ) bootsector_exec_fail, &int18_vector ); - hook_bios_interrupt ( 0x19, ( unsigned int ) bootsector_exec_fail, + hook_bios_interrupt ( 0x19, ( intptr_t ) bootsector_exec_fail, &int19_vector ); /* Boot the loaded sector @@ -132,9 +132,9 @@ int call_bootsector ( unsigned int segment, unsigned int offset, DBG ( "Booted disk returned via INT 18 or 19\n" ); /* Unhook INTs 18 and 19 */ - unhook_bios_interrupt ( 0x18, ( unsigned int ) bootsector_exec_fail, + unhook_bios_interrupt ( 0x18, ( intptr_t ) bootsector_exec_fail, &int18_vector ); - unhook_bios_interrupt ( 0x19, ( unsigned int ) bootsector_exec_fail, + unhook_bios_interrupt ( 0x19, ( intptr_t ) bootsector_exec_fail, &int19_vector ); return -ECANCELED; |
