mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 18:12:36 +03:00
[i386] Free allocated base memory on exit, if possible
Code paths that automatically allocate memory from the FBMS at 40:13 should also free it, if possible. Freeing this memory will not be possible if either 1. The FBMS has been modified since our allocation, or 2. We have not been able to unhook one or more BIOS interrupt vectors.
This commit is contained in:
@@ -7,17 +7,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Hooked interrupt count
|
||||
*
|
||||
* At exit, after unhooking all possible interrupts, this counter
|
||||
* should be examined. If it is non-zero, it means that we failed to
|
||||
* unhook at least one interrupt vector, and so must not free up the
|
||||
* memory we are using. (Note that this also implies that we should
|
||||
* re-hook INT 15 in order to hide ourselves from the memory map).
|
||||
*/
|
||||
int hooked_bios_interrupts = 0;
|
||||
|
||||
/**
|
||||
* Hook INT vector
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user