mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 18:03:36 +03:00
[bios] Use intptr_t when casting .text16 function pointers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -278,7 +278,7 @@ void pxe_activate ( struct net_device *netdev ) {
|
||||
|
||||
/* Ensure INT 1A is hooked */
|
||||
if ( ! int_1a_hooked ) {
|
||||
hook_bios_interrupt ( 0x1a, ( unsigned int ) pxe_int_1a,
|
||||
hook_bios_interrupt ( 0x1a, ( intptr_t ) pxe_int_1a,
|
||||
&pxe_int_1a_vector );
|
||||
devices_get();
|
||||
int_1a_hooked = 1;
|
||||
@@ -311,7 +311,7 @@ int pxe_deactivate ( void ) {
|
||||
/* Ensure INT 1A is unhooked, if possible */
|
||||
if ( int_1a_hooked ) {
|
||||
if ( ( rc = unhook_bios_interrupt ( 0x1a,
|
||||
(unsigned int) pxe_int_1a,
|
||||
( intptr_t ) pxe_int_1a,
|
||||
&pxe_int_1a_vector ))!= 0){
|
||||
DBGC ( &pxe_netdev, "PXE could not unhook INT 1A: %s\n",
|
||||
strerror ( rc ) );
|
||||
|
||||
Reference in New Issue
Block a user