iPXE
|
x86 bootsector image format More...
#include <errno.h>
#include <realmode.h>
#include <biosint.h>
#include <bootsector.h>
#include <ipxe/console.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | bootsector_exec_fail (void) |
Restart point for INT 18 or 19. More... | |
int | call_bootsector (unsigned int segment, unsigned int offset, unsigned int drive) |
Jump to preloaded bootsector. More... | |
Variables | |
static struct segoff | int18_vector |
Vector for storing original INT 18 handler. More... | |
static struct segoff | int19_vector |
Vector for storing original INT 19 handler. More... | |
x86 bootsector image format
Definition in file bootsector.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void bootsector_exec_fail | ( | void | ) |
Restart point for INT 18 or 19.
Referenced by call_bootsector().
int call_bootsector | ( | unsigned int | segment, |
unsigned int | offset, | ||
unsigned int | drive | ||
) |
Jump to preloaded bootsector.
segment | Real-mode segment |
offset | Real-mode offset |
drive | Drive number to pass to boot sector |
rc | Return status code |
Definition at line 64 of file bootsector.c.
References __asm__(), __volatile__(), bootsector_exec_fail(), console_reset(), DBG, discard_D, drive, ECANCELED, hook_bios_interrupt(), int18_vector, int19_vector, offset, REAL_CODE, segment, and unhook_bios_interrupt().
Referenced by int13_boot().
|
static |
Vector for storing original INT 18 handler.
We do not chain to this vector, so there is no need to place it in .text16.
Definition at line 44 of file bootsector.c.
Referenced by call_bootsector().
|
static |
Vector for storing original INT 19 handler.
We do not chain to this vector, so there is no need to place it in .text16.
Definition at line 51 of file bootsector.c.
Referenced by call_bootsector().