Commit Graph

118463 Commits

Author SHA1 Message Date
bouyer adb3f1c3c5 Add atabus 2003-10-08 11:00:38 +00:00
bouyer b7d355a7b2 add atabus 2003-10-08 10:59:55 +00:00
bouyer 99d6009c2a Make the ATA mid-layer appears as atabus, as proposed in
http://mail-index.netbsd.org/tech-kern/2003/09/25/0006.html
This adds a device (atabus) between IDE controllers and wd or atapibus, to
have each ATA channel show up in the device tree. Later there will be atabus
devices in /dev, so that we can do IOCTL on them.
Each atabus has its own kernel thread, to handle operations that needs polling,
e.g. reset and others.

Device probing on each bus it defered to the atabus thread creation.
This allows to do the reset and basic device probes in parallel, which reduce
boot time on systems with several pciide controllers.
2003-10-08 10:58:12 +00:00
mycroft 32856df936 We really don't need to do 2 resets in wdc_channel_attach() -- the one done
by wdcprobe() is enough.
2003-10-08 08:47:58 +00:00
wiz 618a3a6591 Remove space that broke page. From Nicolas Joly in PR 23082. 2003-10-08 07:43:55 +00:00
lukem 8ff09e8ecf Remove the unused "hardcode the blocks of /boot" versions /boot and
i386-MD installboot.
They haven't been enabled for a while, keeping them here is just
confusing, and they're still going to be in the CVS repo attic...
2003-10-08 04:43:28 +00:00
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
lukem 1ea85577bc sort entries, and add a couple 2003-10-08 04:13:13 +00:00
lukem 2d6acee111 add bpbReserved fields 2003-10-08 04:11:43 +00:00
lukem 04a16dcc66 add some more detail to an error message 2003-10-08 03:56:21 +00:00
enami 8c172fb0e0 Adapt to recent ksiginfo change. 2003-10-08 03:10:41 +00:00
simonb db3d16f0e2 Remove some unneeded include files. 2003-10-08 01:43:28 +00:00
simonb 9c38f23cdb Add -D_STANDALONE to CPPFLAGS. 2003-10-08 01:42:37 +00:00
simonb 970b12080e Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
2003-10-08 01:40:22 +00:00
simonb fe200beac4 Use -ffreestanding.
Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
2003-10-08 01:38:49 +00:00
simonb f25f172d64 Use -ffreestanding.
Define LIBC as nothing, we don't need to link against it.
2003-10-08 01:37:35 +00:00
simonb 8ca32cb009 Use -ffreestanding. 2003-10-08 01:36:19 +00:00
simonb 27fbee2ad2 Don't use multi-line strings (keeps gcc331 happy). 2003-10-08 01:35:49 +00:00
simonb 07704f0a5a Use consistent type qualifiers for CPU1_alive (keeps gcc331 happy). 2003-10-08 01:33:54 +00:00
simonb 605b20c064 Use <lib/libkern/libkern.h> for str*() prototypes instead of the userland
header <string.h>.
2003-10-08 01:30:40 +00:00
simonb b00f4b8b66 Remove tokens at the end of #undef. 2003-10-08 01:27:22 +00:00
thorpej 9ed3b44b84 Use ksi_signo and ksi_code accessor macros. 2003-10-08 00:40:54 +00:00
thorpej 8321b2554f Use ksi_signo accessor macro. 2003-10-08 00:39:57 +00:00
thorpej 68723a995b * Shuffle some data structures so, and add a flags word to ksiginfo_t.
Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.
2003-10-08 00:28:40 +00:00
fvdl a7a118bf66 Backout previous for now, it breaks second CPU spinup. It'll be back later. 2003-10-07 21:47:57 +00:00
mycroft f2fc15d4b5 There is also no reason to use arc4random() here. 2003-10-07 21:24:56 +00:00
mycroft bef90cbfa4 There is NO reason to use arc4random() here, and it needlessly slows down the
forwarding path, so goodbye.
2003-10-07 21:22:11 +00:00
fvdl f4f3bc1663 OR in ahc->sc_dmaflags when passed to bus_dmamap_create() in ahc_alloc_scbs(),
in order to pass _ISADMA_32BIT if needed. Should fix SCB allocation
failure for 2842 VL cards.
2003-10-07 19:11:13 +00:00
martin 9e16642238 Adapt to recent PRI changes. 2003-10-07 19:02:36 +00:00
fvdl 9771ccbb32 Changes from Christos to fall back to MPBIOS for interrupt probing
if MPACPI fails, so that MPACPI can be used to only probe CPUs
if needed.
2003-10-07 18:10:36 +00:00
skd b3ec0a1d45 Siginfo libc changes for alpha. Approved by thorpej@netbsd.org. 2003-10-07 17:08:07 +00:00
skd 8d474d5a86 Siginfo changes for alpha kernel. Approved by thorpej@netbsd.org. 2003-10-07 17:04:18 +00:00
tsutsui 608b19ae28 Use proper mips_dcache_{wb,inv,wbinv}_range() ops in dmamap sync function
if possible. Tested on my O2 (with r5ksc patch).

XXX should we apply similar changes to mips/bus_dma.c and use it?
2003-10-07 16:03:09 +00:00
jmmv 24679f3c3d + CAD, CGA, CRT, DAC, DDC, DDWG, DVI, EDID, EGA, HDCP, LCD, POST, SVGA, TFT,
TMDS, VESA, VGA, XGA
2003-10-07 15:05:14 +00:00
tsutsui fd316d7ac1 Use proper macros. 2003-10-07 14:37:06 +00:00
skd 6347eb786e Support for proper siginfo FP codes. Also, set si_trap to fp status word.
Approved by fvdl.
2003-10-07 14:35:37 +00:00
dbj 2fe0adbe32 set HOST_CFLAGS+= -no-cpp-precomp when configuring gnu software on Darwin 2003-10-07 14:12:36 +00:00
ragge 4728b0483f The last commit broke the boot code (memset may be larger than 64k).
Johnny Billquist fixed it and bugfixed some routines.
2003-10-07 12:01:27 +00:00
tron ebbe253d6d Add COMPAT_16. 2003-10-07 09:43:58 +00:00
lukem 53a9d2856c fix typo that prevented ${PROG}.unstripped from being removed in "clean" 2003-10-07 07:08:20 +00:00
dyoung bb0e5a9ce9 Initial import of ath(4) from FreeBSD. 2003-10-07 06:04:00 +00:00
dyoung 0920174533 Initial import of ath(4) from FreeBSD, try #2. (Thanks,
Thomas Klausner.)
2003-10-07 06:01:16 +00:00
dyoung 730fb96e83 Initial import of ath(4) from FreeBSD. 2003-10-07 05:48:56 +00:00
dyoung c3139592cc Initial import of ath(4) from FreeBSD. 2003-10-07 05:27:17 +00:00
matt 926373d2c9 Turn on HAVE_GAS_HIDDEN. 2003-10-07 02:19:18 +00:00
matt 9fbbfac1b2 Pull in ld_vers / ld_date methods from gcc-current. (avoid GNU sed'isms).
This allows configure to correctly determine that gas supports .hidden.
2003-10-07 02:13:49 +00:00
uwe 576576bafb Add definitions for IRR0 bits. 2003-10-07 01:24:32 +00:00
thorpej bcf389773b Whitespace nits. 2003-10-07 00:23:17 +00:00
thorpej 8655c7d7eb Add a MAP_WIRED flag to mmap(2), which causes the new mapping to be
wired as if by mlock(2).
2003-10-07 00:17:09 +00:00
fvdl 4da2d7565d Userland amd64 siginfo support. 2003-10-06 22:57:23 +00:00