[bios] Use intptr_t when casting .text16 function pointers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2016-02-16 19:32:32 +00:00
parent b9c4c2676b
commit 15fadab533
9 changed files with 24 additions and 32 deletions
+2 -2
View File
@@ -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 );
}