mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-05-19 01:35:15 -04:00
1.0.14 release
This commit is contained in:
parent
42990058ed
commit
1cbe4c81b4
58 changed files with 1079 additions and 331 deletions
|
@ -1057,6 +1057,28 @@ static __asmcall void int13 ( struct i386_all_regs *ix86 ) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (VENTOY_BOOT_FIXBIN_DRIVE == bios_drive && INT13_READ_SECTORS == command)
|
||||
{
|
||||
/* read sector 0 0x80 */
|
||||
if (ix86->regs.dh == 0 && (ix86->regs.cl & 0x3f) == 1 && ix86->regs.al == 1)
|
||||
{
|
||||
userptr_t buffer;
|
||||
|
||||
buffer = real_to_user(ix86->segs.es, ix86->regs.bx);
|
||||
if (buffer)
|
||||
{
|
||||
memset((void *)buffer, 0, 512);
|
||||
}
|
||||
|
||||
ix86->regs.dl = 0x80;
|
||||
ix86->regs.ah = 0;
|
||||
|
||||
/* Set OF to indicate to wrapper not to chain this call */
|
||||
ix86->flags |= OF;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// drive swap
|
||||
if (g_drive_map1 >= 0x80 && g_drive_map2 >= 0x80)
|
||||
{
|
||||
|
|
|
@ -92,7 +92,7 @@ struct san_device {
|
|||
uint8_t boot_catalog_sector[2048];
|
||||
|
||||
/** SAN paths */
|
||||
struct san_path path[0];
|
||||
struct san_path path[0];
|
||||
};
|
||||
|
||||
/** SAN device flags */
|
||||
|
|
|
@ -170,6 +170,7 @@ typedef struct ventoy_sector_flag
|
|||
}ventoy_sector_flag;
|
||||
|
||||
#define VENTOY_BIOS_FAKE_DRIVE 0xFE
|
||||
#define VENTOY_BOOT_FIXBIN_DRIVE 0xFD
|
||||
|
||||
extern int g_debug;
|
||||
extern char *g_cmdline_copy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue