mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 17:12:40 +03:00
[pcbios] Add facility for testing arbitrary E820 memory maps
We seem to be having issues with various E820 memory maps. These problems are often difficult to reproduce, requiring access to the specific system exhibiting the problem. Add a facility for hooking in a fake E820 map generator, using an arbitrary map defined in a C array, solely in order to be able to test the map-mangling code against arbitrary E820 maps.
This commit is contained in:
7
src/arch/i386/include/fakee820.h
Normal file
7
src/arch/i386/include/fakee820.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef _FAKEE820_H
|
||||
#define _FAKEE820_H
|
||||
|
||||
extern void fake_e820 ( void );
|
||||
extern void unfake_e820 ( void );
|
||||
|
||||
#endif /* _FAKEE820_H */
|
||||
Reference in New Issue
Block a user