mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:45:43 +00:00
Fixed the EXT2/3 boot sector code so that it only uses the boot drive in the boot sector if it exists (i.e. not 0xff)
Otherwise it uses the boot drive passed in the DL register. Updated the EXT2/3 installer to reflect the changes in the boot sector code for EXT2/3. svn path=/trunk/; revision=4540
This commit is contained in:
parent
b4d0aca25a
commit
273b6dd69f
3 changed files with 23 additions and 9 deletions
|
@ -8,7 +8,7 @@ typedef struct
|
|||
{
|
||||
unsigned char JmpBoot[3];
|
||||
unsigned char BootDrive;
|
||||
unsigned char BootPartition;
|
||||
//unsigned char BootPartition;
|
||||
//unsigned char SectorsPerTrack;
|
||||
//unsigned short NumberOfHeads;
|
||||
//unsigned long Reserved1;
|
||||
|
@ -22,6 +22,12 @@ typedef struct
|
|||
unsigned long Ext2FirstDataBlock; // First data block (1 for 1024-byte blocks, 0 for bigger sizes)
|
||||
unsigned long Ext2InodesPerGroup; // Number of inodes per group
|
||||
unsigned long Ext2InodesPerBlock; // Number of inodes per block
|
||||
|
||||
unsigned char BootCodeAndData[459];
|
||||
|
||||
unsigned char BootPartition;
|
||||
unsigned short BootSignature;
|
||||
|
||||
} PACKED EXT2_BOOTCODE, *PEXT2_BOOTCODE;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue