Skip to content

Commit

Permalink
Move sect_offset into EPB for MINIX boot sector
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Nov 9, 2020
1 parent 8d81130 commit 1dbec2d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bootblocks/boot_sect.S
Original file line number Diff line number Diff line change
Expand Up @@ -548,20 +548,20 @@ msg_reboot:
end_of_code:
//------------------------------------------------------------------------------

#ifndef BOOT_FAT
.org 0x1F3 // Fixed address of sect_offset for MINIX boot sector
.global sect_offset
sect_offset:
.long 0
#endif

// ELKS disk parameter structure
// For future expansion, fields should be added at the _front_ of structure

.org 0x1F7

elks_parms_start:

#ifdef BOOT_FAT
.org 0x1F7 // FAT boot sectors use older EPB for now
#else
.org 0x1F3
.global sect_offset
sect_offset:
.long 0 // Partition start sector of MINIX boot block
#endif

// Disk geometry (CHS)

.global sect_max
Expand Down

0 comments on commit 1dbec2d

Please sign in to comment.