mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 17:42:47 +03:00
Added more verbose memory-map debugging.
Added redundant call to get_memmap() in int13_boot() immediately before jumping to boot sector, to assist in debugging.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <assert.h>
|
||||
#include <gpxe/list.h>
|
||||
#include <gpxe/blockdev.h>
|
||||
#include <gpxe/memmap.h>
|
||||
#include <realmode.h>
|
||||
#include <bios.h>
|
||||
#include <biosint.h>
|
||||
@@ -601,6 +602,7 @@ void unregister_int13_drive ( struct int13_drive *drive ) {
|
||||
* Note that this function can never return success, by definition.
|
||||
*/
|
||||
int int13_boot ( unsigned int drive ) {
|
||||
struct memory_map memmap;
|
||||
int status, signature;
|
||||
int discard_c, discard_d;
|
||||
int rc;
|
||||
@@ -634,6 +636,13 @@ int int13_boot ( unsigned int drive ) {
|
||||
return -ENOEXEC;
|
||||
}
|
||||
|
||||
/* Dump out memory map prior to boot, if memmap debugging is
|
||||
* enabled. Not required for program flow, but we have so
|
||||
* many problems that turn out to be memory-map related that
|
||||
* it's worth doing.
|
||||
*/
|
||||
get_memmap ( &memmap );
|
||||
|
||||
/* Jump to boot sector */
|
||||
if ( ( rc = call_bootsector ( 0x0, 0x7c00, drive ) ) != 0 ) {
|
||||
DBG ( "INT 13 drive %02x boot returned\n", drive );
|
||||
|
||||
Reference in New Issue
Block a user