[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:
Michael Brown
2008-09-25 03:34:26 +01:00
parent 9c71949d1f
commit c24bc349ea
3 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#ifndef _FAKEE820_H
#define _FAKEE820_H
extern void fake_e820 ( void );
extern void unfake_e820 ( void );
#endif /* _FAKEE820_H */