|
@@ -616,3 +616,18 @@ void hook_comboot_interrupts ( ) {
|
616
|
616
|
hook_bios_interrupt ( 0x22, ( unsigned int ) int22_wrapper,
|
617
|
617
|
&int22_vector );
|
618
|
618
|
}
|
|
619
|
+
|
|
620
|
+/**
|
|
621
|
+ * Unhook BIOS interrupts related to COMBOOT API (INT 20h, 21h, 22h)
|
|
622
|
+ */
|
|
623
|
+void unhook_comboot_interrupts ( ) {
|
|
624
|
+
|
|
625
|
+ unhook_bios_interrupt ( 0x20, ( unsigned int ) int20_wrapper,
|
|
626
|
+ &int20_vector );
|
|
627
|
+
|
|
628
|
+ unhook_bios_interrupt ( 0x21, ( unsigned int ) int21_wrapper,
|
|
629
|
+ &int21_vector );
|
|
630
|
+
|
|
631
|
+ unhook_bios_interrupt ( 0x22, ( unsigned int ) int22_wrapper,
|
|
632
|
+ &int22_vector );
|
|
633
|
+}
|