NetBSD/sys/arch/x86/include
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
..
acpi_machdep.h Moved here from sys/arch/i386/include. 2003-05-11 18:20:38 +00:00
aout_machdep.h
apicvar.h
bios32.h
bootinfo.h Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
bus.h Handle 64bit DMA addresses on PCI for platforms that can (currently only 2003-06-15 23:08:53 +00:00
cacheinfo.h Share some common cache info cpuid code between i386 and x86_64. 2003-04-25 21:54:29 +00:00
cpuvar.h Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
float.h Rename <sys/float_ieee.h> to <sys/float_ieee754.h>, following libc's 2003-05-12 15:22:53 +00:00
i8259.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
i82093reg.h
i82093var.h
i82489reg.h
i82489var.h change multiple include protection #define to match filename 2003-07-19 04:52:18 +00:00
ieee.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
ieeefp.h
intr.h Move the bulk of pci_intr_string into a seperate intr_string function. Use 2003-09-06 17:44:36 +00:00
intrdefs.h Rename IPL_IMP -> IPL_VM. 2003-06-16 20:00:56 +00:00
isa_machdep.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
lock.h Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h 2003-09-26 22:45:41 +00:00
Makefile Install cacheinfo.h 2003-04-26 10:49:54 +00:00
mpacpi.h Add the options MPBIOS_SCANPCI and MPACPI_SCANPCI to configure PCI roots 2003-05-29 20:22:28 +00:00
mpbiosreg.h Make the apic address unsigned, as it should be. 2003-03-04 23:27:32 +00:00
mpbiosvar.h Add the options MPBIOS_SCANPCI and MPACPI_SCANPCI to configure PCI roots 2003-05-29 20:22:28 +00:00
mpconfig.h When establishing the ACPI SCI, make sure it's always active low (as well 2003-09-06 14:38:41 +00:00
mtrr.h give >32 bit constants an "LL" prefix to appease gcc3.3 2003-07-28 10:29:00 +00:00
pci_machdep.h Handle 64bit DMA addresses on PCI for platforms that can (currently only 2003-06-15 23:08:53 +00:00
pic.h
pio.h Reinstate some const qualifiers I accidentally removed when moving this 2003-02-27 11:22:46 +00:00
psl.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
specialreg.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
trap.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00