NetBSD/sys/kern
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
..
Make.tags.inc
Makefile
cnmagic.c TNF & remove trailing spaces. 2003-08-22 02:01:32 +00:00
core_elf32.c handle siginfo for deferred signals. Allocate a ksiginfo pool, and store 2003-09-14 06:59:13 +00:00
core_elf64.c
core_netbsd.c handle siginfo for deferred signals. Allocate a ksiginfo pool, and store 2003-09-14 06:59:13 +00:00
exec_aout.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_conf.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_ecoff.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_elf32.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_elf64.c
exec_macho.c Correctly check Mach-O fat header so that fat binaries get launched. 2003-09-07 11:16:59 +00:00
exec_script.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
exec_subr.c Expand NEW_VMCMD() macro to a real function new_vmcmd() for the 2003-08-29 01:44:02 +00:00
genassym.awk
genassym.sh
genlintstub.awk This program is called genlintstub.awk 2003-05-20 20:25:31 +00:00
init_main.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
init_sysent.c Regen 2003-09-30 20:36:40 +00:00
kern_acct.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_allocsys.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_clock.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_descrip.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
kern_event.c Unlock kq_lock in the case of a timeout. 2003-07-18 17:34:07 +00:00
kern_exec.c include opt_compat_netbsd.h, otherwise we don't get the right signal 2003-09-15 00:33:35 +00:00
kern_exit.c fix SA/pthread pagefault failure: 2003-09-16 13:46:24 +00:00
kern_fork.c add siginfo lock and siginfo queue initialization. 2003-09-16 12:06:07 +00:00
kern_ksyms.c long -> unsigned long. 2003-09-03 10:55:22 +00:00
kern_kthread.c Merge the nathanw_sa branch. 2003-01-18 10:06:22 +00:00
kern_ktrace.c * Shuffle some data structures so, and add a flags word to ksiginfo_t. 2003-10-08 00:28:40 +00:00
kern_lkm.c Embed information about kernel version and some of used kernel options 2003-09-06 19:08:53 +00:00
kern_lock.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_lwp.c Improve _lwp_wakeup so when it wakes a thread, the target thread thinks 2003-07-28 23:35:20 +00:00
kern_malloc.c A nit I ran into while copying this code for something else... 2003-09-27 23:10:47 +00:00
kern_malloc_debug.c Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
kern_microtime.c Remove an unnecessary local variable (and save a read of the "time" 2003-06-28 15:02:24 +00:00
kern_ntptime.c Remember if ntp has adjusted clock rate, hardware RTC may be wrong. 2003-04-16 21:35:07 +00:00
kern_physio.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_proc.c add initialization of siginfo lock and queue. 2003-09-16 12:05:49 +00:00
kern_prot.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_ras.c Declare ras_pool in <sys/ras.h> instead of an extern declaration in 2003-06-28 14:52:10 +00:00
kern_resource.c add support for non-executable mappings (where the hardware allows this) 2003-08-24 17:52:28 +00:00
kern_sa.c make sa_vp_donate update p_nrlwps when it retires an LWP 2003-10-01 14:50:06 +00:00
kern_sig.c * Shuffle some data structures so, and add a flags word to ksiginfo_t. 2003-10-08 00:28:40 +00:00
kern_subr.c assert that uio passed to uiomove() has valid uio_iovcnt. 2003-09-14 11:12:14 +00:00
kern_synch.c truncated output from pty problem. fix by enami 2003-09-08 11:14:18 +00:00
kern_sysctl.c If the user passes enough space, output the per cpu states instead of 2003-10-03 15:33:42 +00:00
kern_systrace.c move dupfd from struct proc to struct lwp - it's per-LWP, not per-process; we 2003-09-13 08:32:10 +00:00
kern_time.c * Shuffle some data structures so, and add a flags word to ksiginfo_t. 2003-10-08 00:28:40 +00:00
kern_timeout.c Fix for PR kern/22933 2003-09-25 10:44:11 +00:00
kern_verifiedexec.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
kern_xxx.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kgdb_stub.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
makesyscalls.sh Keep track of which prototypes we declared already so that we don't 2003-09-30 20:34:28 +00:00
subr_autoconf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_devsw.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
subr_disk.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_disk_mbr.c Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
subr_extent.c Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
subr_log.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
subr_pool.c Add the ability for pool caches to cache the physical address of 2003-04-09 18:22:13 +00:00
subr_prf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_prof.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_prop.c avoid constant, use sizeof 2003-05-17 03:12:08 +00:00
subr_userconf.c
subr_xxx.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
sys_generic.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
sys_pipe.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
sys_pmc.c Make this compile again on i386 by avoiding an unused variable 2003-01-20 01:40:48 +00:00
sys_process.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
sys_socket.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
syscalls.c Regen 2003-09-30 20:36:40 +00:00
syscalls.conf we don't need sigreturn and sigcode glue if we are not compat_16 anymore. 2003-09-10 16:43:34 +00:00
syscalls.master #ifdef _LIBC the semid_t syscalls since we don't define semid_t in userland 2003-09-30 20:36:10 +00:00
sysv_ipc.c
sysv_msg.c Merge the nathanw_sa branch. 2003-01-18 10:06:22 +00:00
sysv_sem.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
sysv_shm.c Fix the "COW" case if a process does a detach() between fork() 2003-09-10 17:01:04 +00:00
tty.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
tty_conf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
tty_pty.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
tty_subr.c Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
tty_tb.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
tty_tty.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_domain.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_mbuf.c when dropping M_PKTHDR, need to free m_tag associated with it. 2003-10-03 20:56:11 +00:00
uipc_mbuf2.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_proto.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_sem.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
uipc_socket.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
uipc_socket2.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
uipc_syscalls.c Adapt to the new calling conventions of unp_connect2 2003-09-04 04:33:49 +00:00
uipc_usrreq.c Fix typo. 2003-09-03 22:20:34 +00:00
vfs_bio.c in getblk(), don't call allocbuf() for B_LOCKED buffers. 2003-09-24 10:44:44 +00:00
vfs_cache.c remove an obsolete comment. pointed by enami@ 2003-09-01 12:13:55 +00:00
vfs_getcwd.c eliminate v_id. 2003-07-30 12:10:57 +00:00
vfs_init.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vfs_lockf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vfs_lookup.c PR/15397: Jason Thorpe: directory operations on pathnames that refer to 2003-09-11 17:33:42 +00:00
vfs_subr.c when allocating a new vnode, 2003-09-14 11:09:48 +00:00
vfs_syscalls.c move dupfd from struct proc to struct lwp - it's per-LWP, not per-process; we 2003-09-13 08:32:10 +00:00
vfs_vnops.c fix O_NOFOLLOW for non-O_CREAT case. 2003-09-29 10:04:03 +00:00
vnode_if.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vnode_if.sh Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vnode_if.src Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00