NetBSD/sys/arch/i386
lukem 455da8e60b Move mbr_bootsel from offset 404 to offset 400 in struct mbr_sector to
leave 4 bytes for the Windows NT Drive Serial Number (DSN) at 440-443
(as mbr_sector.mbr_dsn).

Ensure that all the MBR & PBR code reserves space for mbr_sector.mbr_dsn.

Leave the bootsel magic number at 444-445 as mbr_sector.mbr_bootsel_magic
(instead of mbr_sector.mbr_bootsel.mbrbs_magic), but use 0xb5e1 (MBR_BS_MAGIC)
instead of 0xaa55 (MBR_MAGIC) to indicate that this change has occurred.

Rework MBR_BS_NEWMBR to mean "mbr_bootsel has moved to 400".

Modify fdisk(8) to automatically relocate the mbr_bootsel from 404 to 400
if mbr_bootsel_magic is the old value (0xaa55), and unset MBR_BS_NEWMBR
to flag that new mbr_bootsel code must be used if updating the MBR.


These changes fixes a problem where Windows 2000 or Windows XP would corrupt
the last 3 bytes + NUL of MBR partition 3's bootsel name if the bootsel name
was 5 characters long, replacing bytes 6-9 with the DSN.
Also, by explicitly reserving the space for the DSN we prevent problems in the
future if non bootsel MBR or PBR code had other information at bytes 440-443.
2004-03-22 07:11:00 +00:00
..
acpi Use predefined macro rather than hardcoded value. 2003-11-20 12:30:34 +00:00
bios add __KERNEL_RCSID() 2003-07-14 22:13:09 +00:00
bioscall Partial fix for PR#14946. Make sure x86 symlinks exist also 2003-12-25 21:02:58 +00:00
compile
conf Add ichlpcib. 2004-03-14 08:09:42 +00:00
eisa * keep track of PCI buses that aren't known by firmware, but are found 2003-10-30 21:19:54 +00:00
gdbscripts
i386 AMD CPUID 0x6a0 is an Athlon XP processor model 10, revision A2. 2004-03-21 17:59:44 +00:00
include Drop trailing spaces. 2004-03-05 11:30:50 +00:00
isa Only initialise ksi if we use it. 2004-03-21 10:56:24 +00:00
mca print complete contents of the second feature byte; this also fixes 2003-12-15 08:38:01 +00:00
pci Fix typo. 2004-03-15 05:31:46 +00:00
pnpbios add dependency on isadma for atppc attachments 2004-01-31 13:59:20 +00:00
stand Move mbr_bootsel from offset 404 to offset 400 in struct mbr_sector to 2004-03-22 07:11:00 +00:00
Makefile Compute tags for *.[sS]' instead of *.s', only. 2004-01-16 10:08:42 +00:00