mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 06:22:59 +03:00
[bios] Use intptr_t when casting .text16 function pointers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user