fvdl
c6019338cd
Correct preempt() calls.
2003-10-21 00:39:03 +00:00
uwe
62c7814709
Add missing NetBSD/hpcsh devices.
2003-10-21 00:33:12 +00:00
fvdl
86c363960e
Correct NULL abuse.
2003-10-21 00:25:59 +00:00
fvdl
2a11316bc0
Correct NULL abuse.
2003-10-21 00:22:04 +00:00
thorpej
e2d086d69d
- Do better error checking on EEPROM access.
...
- Let the EEPROM wire-protocol handler perform the loop.
2003-10-20 22:52:19 +00:00
manu
a591d65ec7
One more section type in the Mach-O format. Now /usr/X11R6/bin/quartz-wm links
...
and run (it aborts because the dock is not launched).
2003-10-20 22:42:40 +00:00
kleink
36a2ba5ccd
Need to make sure __sysconf() has C linkage.
2003-10-20 22:16:33 +00:00
thorpej
12c5273afa
Move all the code that handles the MicroWire EEPROM protocol into
...
a separate function.
2003-10-20 16:28:23 +00:00
briggs
1ce6ced119
As suggested by Jason Thorpe, rename m41t to m41trtc.
2003-10-20 16:24:10 +00:00
jdolecek
bf6449bbff
add major for wsfont
2003-10-20 16:20:53 +00:00
briggs
795751a888
Add i2c and the m41t00 RTC on the i2c bus.
2003-10-20 15:37:46 +00:00
thorpej
fedb07bc8d
Fix a typo in the "failed to acquire eeprom" case.
2003-10-20 15:34:25 +00:00
thorpej
0ebc93fe43
Move the code that reads a series of bits from the EEPROM into a
...
separate function.
2003-10-20 15:33:48 +00:00
yamt
f3f1661306
set READres EOF flag correctly.
2003-10-20 13:53:47 +00:00
dsl
b203df0726
Include FS_VINUM in FS_MAXTYPES.
...
Note there are discrepencies between this list, and that of Free/OpenBSD.
2003-10-20 13:41:28 +00:00
wiz
48f28cea9e
sa_vp_faultaddr, sa_vp_ofaultaddr, sa_vp_stacks_low, and sa_vp_stacks_high
...
are vaddr_t (and thus unsigned long).
Initialize them with 0 instead of NULL.
Closes PR 23204 by Dheeraj Reddy.
2003-10-20 07:15:26 +00:00
thorpej
17aaa92402
Make all of the functions in this file static.
2003-10-20 06:00:26 +00:00
thorpej
10926a6056
Factor out the code that sends bits to the EEPROM into a separate function.
2003-10-20 05:56:17 +00:00
simonb
d4b0d4911f
Remove some numeric asm labels that aren't used.
2003-10-20 05:52:55 +00:00
simonb
066683efa3
Need Data Relocate in the MSR for the dcbf in pmap_procwr().
...
From Matt Thomas.
2003-10-20 05:47:52 +00:00
thorpej
f5fc41219d
Move the code that handle the EEPROM handshake into separate functions.
2003-10-20 05:40:03 +00:00
matt
421dd6cc28
Reorganize the way powerpc port install machine specific headers.
...
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and
<powerpc/bat.h>. Remove unneeded <machine/cpufunc.h>. To insure
1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include
"../../powerpc/include/Makefile" in "arch/FOO/include/Makefile".
Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-20 00:12:09 +00:00
dyoung
ab4a574ce1
Don't take the 802.11 header off of a frame until after we've given
...
it to the driver's BPF tap.
2003-10-19 22:00:54 +00:00
kleink
bb07f8defb
Add COMPAT_16.
2003-10-19 22:00:01 +00:00
he
536bcfc87a
Adapt to the new wdcattach() signature.
2003-10-19 19:29:50 +00:00
matt
e43846141a
Remove unused header.
...
Don't install kernel-only headers.
2003-10-19 18:56:39 +00:00
he
d37f50098a
Adapt to the new wdcattach() signature.
2003-10-19 18:49:25 +00:00
fvdl
e9ee9a82c7
Don't use err and trapno from a copied in mcontext.
2003-10-19 18:14:42 +00:00
cl
ed9c2d7075
don't uvm_swapout LWPs which are LSONPROC on another cpu.
...
uvm_swapout_threads will swapout LWPs which are running on another CPU:
- uvm_swapout_threads considers LWPs running on another CPU for swapout
if their l_swtime is high
- uvm_swapout_threads considers LWPs on the runqueue for swapout if their
l_swtime is high but these LWPs might be running by the time uvm_swapout
is called
symptoms of failure: panic in setrunqueue
fixes PR kern/23095
2003-10-19 17:45:35 +00:00
jdolecek
e66b4221b3
add major for ksyms, and add the comment about MD major range
2003-10-19 16:51:04 +00:00
bouyer
0ca33bf011
Better late than never, add the chip-specific PCI ide controllers.
2003-10-19 15:41:23 +00:00
ragge
9cbcd57e32
Add lcspx.
2003-10-19 15:04:08 +00:00
ragge
90f561b5ff
Add lcspx console device driver.
2003-10-19 15:03:25 +00:00
ragge
a893520c07
Add console text device driver for the LCSPX framebuffer. Really dump,
...
cannot change colours, and is really slow; I haven't found how to buffer
writes to the console yet.
2003-10-19 15:02:17 +00:00
ragge
9fb208fc0a
Avoid the pvtable when devices are mapped. Fixes panics when unmapping
...
framebuffers. Set aside space in kernel map for framebuffer on VS4k.
2003-10-19 14:58:22 +00:00
ragge
836c5d5ec4
Allow mmap() of /dev/mem.
2003-10-19 14:56:28 +00:00
ragge
89d60ed8ea
Fetch SCSI controller ID from nvram for VS4k90 also.
2003-10-19 14:54:24 +00:00
he
5e5a2bb96f
Make this compile as a tool; we need to pick up the target's
...
sys/bootblock.h header in that case.
2003-10-19 11:34:27 +00:00
tsutsui
8d36037f37
Utilize bus_dma(9) functions more efficiently.
...
pcscp(4) is the first device driver I wrote about five years ago,
but I still have to learn about bus_dma(9) implementation...
2003-10-19 10:25:42 +00:00
manu
d77ec799a5
Support Darwin static binaries (I should say: support the only Darwin
...
static binary: otool). Dynamic binaires have a pointer to the Mach-O
header on the top of the stack, static binaries don't have this, and
having it produced a crash.
One bugfix: the EXEC_MACHO code assumes that entry = NULL means that
the entry point has not been found in the load commands seen so far.
Therefore we need to initialized entry to NULL if we want a static binary
to discover it. (dynamic binaries were forced to iscover it because when
the intepreter load command is found, entry is updated whatever its
value was before).
One hack: Both COMPAT_MACH and COMPAT_DARWIN are willing to run Mach-O
binaries. COMPAT_MACH fails for dynamic binaries because it cannot find
the interpreter in /emul/mach. For static binaires, it will accept them
(and for Darwin static binaries, this will cause a failure). Until we
rite a test for matchinf Darwin static binaries, just swap the order of
COMPAT_MACH and COMPAT_DARWIN in the exec switch so that COMPAT_DARWIN
is tried first (this will have the advantage of speeding up program
startup). EXECSW_PRIO_{FIRST_LAST} does not seem to work...
2003-10-19 07:52:22 +00:00
scw
175f717bf5
Be more careful about validating the user-specified geometry, otherwise
...
it's too easy to specify a geometry which will cause a divide by zero
elsewhere in the disklabel code.
2003-10-19 07:41:19 +00:00
matt
3dc55c1216
Add IBM Network Station 1000 port. From John Gordon and updated by me.
2003-10-19 03:33:49 +00:00
matt
3642aa4ccc
Add PCN_NO_PROM flag. (read the macaddr from the chip assuming the "BIOS"
...
has properly written it). From John Gordon.
2003-10-19 03:32:25 +00:00
matt
ba34947f80
Add powerpc-specific isa and isadma machdep code. (Merge common code from
...
prep and sandpoint and ...)
2003-10-19 03:19:32 +00:00
uwe
437e63c180
__KERNEL_RCSID.
2003-10-19 02:22:56 +00:00
uwe
738a5e234e
Config glue for j6x0tp(4).
2003-10-19 02:21:40 +00:00
uwe
e4bd58b011
Driver for Jornada 680 touch screen.
2003-10-19 02:20:25 +00:00
simonb
9833c17169
Remove some unreachable code with the comment "To shut up compiler"
...
that neither gcc 2.95.3 or 3.3.1 complains about if that bit of code
is missing...
2003-10-19 01:49:03 +00:00
simonb
59fb31d7cc
Remove unreachable break after return and goto statements.
2003-10-19 01:44:48 +00:00
itohy
29f0f3babf
Change the location of BSD disklabel not to overlap with LIF header.
...
LABELSECTOR: 0 -> 1
LABELOFFSET: 64 -> 0
per discussion on NetBSD mailing lists: port-hp700 and tech-kern.
2003-10-18 23:45:30 +00:00
uwe
a2a5c1629e
Make intc_intr_priority() return old level. While here, make the code
...
more compact by factoring out register update to happen in one place,
outside the switch statements.
Add intc_intr_disable() and intc_intr_enable().
2003-10-18 23:21:35 +00:00
cdi
492c11116f
Revert previous change as it breaks the build on a number of ports.
2003-10-18 21:26:22 +00:00
matt
3109d133ea
Regen.
2003-10-18 18:53:09 +00:00
matt
0d7c37b872
Add Philips SAA7146AH
2003-10-18 18:51:29 +00:00
christos
3825627f57
define SIGTRAMP_VALID()
2003-10-18 18:34:10 +00:00
briggs
1c36c6dcdb
Add SIGTRAMP_VALID().
2003-10-18 18:34:09 +00:00
briggs
11088af0ac
Add SIGTRAMP_VALID().
2003-10-18 18:29:53 +00:00
briggs
093821886e
Define SIGTRAMP_VALID(v).
2003-10-18 17:57:06 +00:00
yamt
4e9f921204
be more strict about sa->vp.
...
(make sure the last lfs_updatemata in lfs_putpages takes effect.)
2003-10-18 15:52:42 +00:00
manu
8c5377c3b8
Remove references to wsmux_cdevsw and wsdisplay_cdevsw (how to remove
...
them completely?)
Add SETCURSORPOSITION operation
2003-10-18 13:27:17 +00:00
manu
3b556e0bb2
Fix error in struct definition
2003-10-18 13:25:27 +00:00
enami
e51f5c64e5
Fix indent.
2003-10-18 13:05:45 +00:00
enami
e7533e9811
Don't limit xfer size to SBP2_MAXPHYS. Its not transfer size limit
...
but just a threshold how to describe transfer.
2003-10-18 12:47:28 +00:00
enami
145fb5989c
Factor out common code.
2003-10-18 12:40:09 +00:00
enami
3072a86cf0
Whitespace nits.
2003-10-18 12:31:37 +00:00
ragge
895d584f93
Add cnmagic support to the DZ driver. Pmax should also use cnmagic instead
...
of it's homwgrown tests.
2003-10-18 12:10:53 +00:00
ragge
c862115a9d
Use the vax confdata to determine whether to use serial console.
...
Do cn_set_magic() for the VAX DDB escape sequence (ESC-D).
2003-10-18 12:09:18 +00:00
ragge
7b77aca6ae
Do not try to fetch the current proc if curlwp == NULL. This caused
...
DDB to fail if no process were running.
2003-10-18 12:07:44 +00:00
ragge
f545d1a885
Read out confdata for the VS4000/90 also.
2003-10-18 12:06:11 +00:00
manu
15af059557
On some machines, the keyboard is not enabled after a reset, rendering the
...
console useless. Fix that by explicitely enabling the keyboard when it is
attached.
2003-10-18 09:19:04 +00:00
lukem
7d84b90c92
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
...
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-18 08:30:12 +00:00
lukem
184141db07
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
2003-10-18 08:12:07 +00:00
lukem
e1616bdc8a
use 'atabus* at ata?'
...
use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
2003-10-18 08:11:02 +00:00
tsutsui
fd5c63296f
Fix some attach messages for new ahc(4).
2003-10-18 07:44:51 +00:00
wiz
810d184699
Fix typo in comment.
2003-10-18 07:41:26 +00:00
petrov
b8454aaa52
cpu_getmcontext: get fsr from correct place.
2003-10-18 06:51:42 +00:00
itohy
faf6cfae4c
Rename local variables read' to
nread' to shut up -Wshadow.
2003-10-18 06:39:12 +00:00
itojun
e0c9ee7f93
print "association failed" message only if IFF_DEBUG
2003-10-18 05:06:43 +00:00
simonb
78c2103e34
Remove assigned-to but otherwise unused variables.
...
Remove unreachable break after return statements.
2003-10-18 04:50:35 +00:00
simonb
513b330566
Tell the Alchemy Au1x00 on-chip ohci that we're in big-endian mode if
...
necessary.
2003-10-18 04:34:30 +00:00
simonb
136dd90b25
Remove unused ohci stub.
2003-10-18 04:31:37 +00:00
simonb
c25af55e8c
Remove assigned-to but otherwise unused variable.
2003-10-18 04:03:22 +00:00
onoe
ba543e3743
Do not update SSID by beacon, because hidden SSID implementation is vary.
...
ex. 0-length, single space, 0x00 with correct length.
So, we don't update SSID in node table by beacon, but always update by
Probe Response.
2003-10-18 03:33:51 +00:00
uwe
b78fce9820
Config glue for j6x0pwr(4).
2003-10-18 01:40:05 +00:00
uwe
8b50c662e8
Jornada 680/690 power &c. Doesn't do much useful at the moment, but
...
provides RTFS documentation on how things are wired in Jornada.
Listens to "switch off" interrupt generated when On/Off button is
pressed, or the lid is closed.
Polls the status of main and backup batteries and warns if main
battery is low.
2003-10-18 01:38:39 +00:00
lukem
6ba1832265
regen for more ServerWorks devices
2003-10-18 01:33:16 +00:00
lukem
f1b836d0c9
Remove http://members.hyperlink.net.au/~chart/pci.htm link; it doesn't
...
exist anymore.
Add some more ServerWorks devices
2003-10-18 01:32:30 +00:00
uwe
15e3e96e71
Config glue for adc(4).
2003-10-18 01:29:05 +00:00
uwe
721e6868b8
Driver for analog->digital converter in sh7709.
2003-10-18 01:27:18 +00:00
matt
3575370e0a
Remove worthless load.
...
Save curcpu before doing uniprocessor dispatch.
2003-10-17 22:21:38 +00:00
thorpej
b0bced8029
Store the number of EEPROM address bits in the softc.
2003-10-17 21:12:48 +00:00
matt
12ecf72b47
Don't zero curlwp/curpcb in cpu_switchto.
...
Use correct register in the store conditional.
Add DIAGNOSTIC check for null curpcb on cpu_switch exit.
2003-10-17 21:08:57 +00:00
thorpej
2d858d3912
Add internal representation for i82545 rev 3, i82546 rev3, i82541,
...
i82541 rev 2, i82547, and i82547 rev 2.
2003-10-17 20:57:32 +00:00
thorpej
e3ca7c2c73
Make the "align tweak" factor per-interface (since the MTU is per-interface).
2003-10-17 20:41:21 +00:00
enami
bae9643b84
Increment stats when packet is dropped since there is no room
...
to put all fragments in the interfaces's send queue. Some large
UDP packets are dropped here and administrator may want to bump ifqmaxlen.
2003-10-17 20:31:12 +00:00
cdi
61da4642b8
Introduce null console. This pseudo device acts as a normal console with the
...
exception that it discards any output, and is useful for booting the kernel
on headless boxes.
2003-10-17 20:27:38 +00:00
fvdl
c8c91c50dd
Correct VM_MAXUSER_ADDRESS definitions, it was wasting a few pages.
2003-10-17 20:27:00 +00:00
matt
67ab911529
Add a KASSERT() to verify the pcb is not NULL.
2003-10-17 19:56:18 +00:00
cdi
d65b10404c
Change console code to use cninit() and null console. Add serial console
...
check.
2003-10-17 18:20:10 +00:00
cdi
2b3e81f067
Introduce null console. This pseudo device acts as a normal console with the
...
exception that it discards any output, and is useful for booting the kernel
on headless boxes.
2003-10-17 18:16:42 +00:00
tsutsui
3a646e9b6c
Add some delay before calling comcnattach() to wait
...
previous console output to complete.
2003-10-17 18:15:52 +00:00
tsutsui
f7772c7c77
- No need to set VR_TXCTL_TLINK in vr_start() because all TX buffers have
...
only single segment.
- No need to set VR_CMD_TX_ON in vr_start().
- Initialize BCR0 and BCR1 registers.
- Change RX DMA threshold 128bytes.
Mostly from FreeBSD via OpenBSD.
2003-10-17 17:42:35 +00:00
tsutsui
19e183345a
Add vr at pci and dmphy at mii. Tested on my O2.
2003-10-17 17:18:16 +00:00
mycroft
568ccf202d
Add a comment explaining the INQUIRE behavior.
2003-10-17 16:44:48 +00:00
tsutsui
631fad8686
Misc cosmetics.
2003-10-17 16:39:09 +00:00
fvdl
5b12e0425d
Put the ucontext pointer in %r15 for signal delivery, so that it is
...
saved across the handler call.
2003-10-17 16:24:31 +00:00
tsutsui
0a3ddecb47
Use common PCI macro/functions for PWRMGMT.
2003-10-17 16:00:43 +00:00
yamt
818ef92da6
add comments and tweak code a little for readability.
...
(no behaviour changes)
2003-10-17 14:20:12 +00:00
sekiya
a747a8f16d
Mouse port offset was incorrect.
2003-10-17 12:43:08 +00:00
sekiya
af12cdb68a
Compile dsclock_hpc.c only if dsclock is present in config file.
2003-10-17 06:49:34 +00:00
lukem
0b441623fe
Add user flag CCDF_NOLABEL to prevent the on-disk label from being read
...
during CCDIOCSET.
Use this when creating a new ccd to ignore any existing disklabel
which is probably wrong.
2003-10-17 05:16:15 +00:00
dyoung
5dca575ce1
ieee80211_newstate() wants for ic->ic_state to equal the previous
...
state, so do not update ic->ic_state in wi_newstate() before calling
ieee80211_newstate(). Instead, update ic->ic_state when we do not
let ieee80211_newstate() run.
2003-10-17 03:58:23 +00:00
mycroft
e879d3a728
PQUIRK_NOSENSE is dead here. Remove the code supporting it.
2003-10-17 00:20:28 +00:00
mycroft
f8a10571e5
Remove the Fuji quirk from here, too.
2003-10-17 00:19:46 +00:00
mycroft
3fd37812f4
The Yano quirk was intended to do FORCE_SHORT_INQUIRY. Not that that's gone,
...
we shouldn't need this any more, so nuke it.
2003-10-17 00:12:58 +00:00
mycroft
ecb8d5d482
Set the REQUEST SENSE command length to 12 for ATAPI, too. (UFI and ATAPI are
...
really the same...)
Fixes problems with Sony Vaio memory stick slots, which advertise themselves as
"ATAPI over CBI".
Remove the quirk for Fuji cameras, since this is almost certainly the same bug.
2003-10-16 23:39:40 +00:00
fvdl
6a6db3cbd9
Add hooks and structures to allow the MP table intr mapping code a
...
better shot at finding a mapping. For PCI interrupts, if a bus
has no mappings, try its parent, with the swizzled pin, and the
bridge's device number.
2003-10-16 22:56:29 +00:00
mycroft
055625357d
Whoops, set cmd_length correctly for the 36-byte INQUIRE.
2003-10-16 22:46:07 +00:00
matt
f90b1121c4
bpfattach/bpfdetach need to be protected with NBPFILTER > 0
2003-10-16 22:25:00 +00:00
mycroft
19ef8301a7
Switch back to UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO in a few cases. Not that
...
it really matters, but UMATCH_VENDOR_PRODUCT effectively overrides the class
code, and that is not supposed to be part of the "quirk".
2003-10-16 20:01:06 +00:00
mycroft
f8c8ef3b63
Document the Olympus, ScanLogic and Sony "quirks" better. Also, the ScanLogic
...
correctly reports itself as SCSI -- it is *not* UFI.
2003-10-16 19:54:01 +00:00
mycroft
0f1275cee2
Do a 36-byte SCSI 2 inquiry first, and iff that returns an additional length
...
>32 do a 74-byte inquiry. Fixes problems with devices that barf on longer
inquiries. (Linux uses 36 bytes almost everywhere, as a data point.)
2003-10-16 17:34:43 +00:00
christos
cd026bf62c
Sprinkle more COMPAT_NETBSD32 for good cheer.
2003-10-16 16:06:43 +00:00
christos
b51967d220
add -DCOMPAT_NETBSD32 so that it builds.
2003-10-16 15:59:01 +00:00
christos
74e287ff04
Add more compat options until this builds.
2003-10-16 15:57:12 +00:00
jdolecek
4bb42bc621
switch ARM to use same minor for /dev/zero as other archs
...
as discussed on tech-arm@
2003-10-16 12:02:58 +00:00
dyoung
d531221c67
Prepare for wi rate adaptation. Add wi_write_txrate, which only
...
writes a hardware register when the data rate selection actually
changes. Add wi_cfg_txrate, which writes the data rate selection
regardless.
Name some fields in the wi Tx buffer which we will use for rate
adaptation.
Name the Prism "Alternate Retry Count" RID, WI_RID_ALT_RETRY_COUNT.
2003-10-16 10:57:35 +00:00
dyoung
50daf0a217
The upper & lower bounds on wi RSSI are completely bogus, AFAICT.
2003-10-16 10:38:07 +00:00
dyoung
7c0b454d52
Cosmetic change: shorten 6 lines to 2.
2003-10-16 10:04:14 +00:00
dyoung
1ff3c191c9
Fix WEP transmission, too. From FreeBSD/Sam Leffler.
2003-10-16 09:31:08 +00:00
dyoung
bcde77e394
ath(4) failed to detect when the number of DMA segments exceeded
...
the number of descriptors, because of a disparity between the
bus_dmamap_load_mbuf implementation in FreeBSD and NetBSD. Now I
cover up the difference using ath_dmamap_load_mbuf.
Thanks Enami Tsugutomo for diagnosing this.
2003-10-16 09:13:30 +00:00
wiz
68f5a56945
regen
2003-10-16 08:05:54 +00:00
wiz
7127923ca9
According to Linux USB Ids list, 0b7a belongs to zeevo, inc.
2003-10-16 08:05:42 +00:00
ichiro
581dfca276
add {shutdownhook,powerhook}disestablish()
2003-10-16 07:55:18 +00:00
pk
f845a339ac
Enable VLAN encapsulation.
2003-10-16 07:20:54 +00:00
mycroft
d7b6d72e8c
Deal with the damn DiskOnKey devices. See the comment for an explanation.
2003-10-16 00:36:46 +00:00
itojun
5f3342505f
$NetBSD$
2003-10-15 23:24:36 +00:00
itojun
a4a1466cb5
add $NetBSD$
2003-10-15 23:23:39 +00:00
itojun
ba71e93c60
backout previous (ENETREST special handlng)
2003-10-15 22:55:34 +00:00
uwe
390e87a8b6
Use 'CH' for channel select in the ADCSR bits format string for consistency.
2003-10-15 22:55:07 +00:00
enami
73473f6883
Return 0 on SIOC{ADD,DEL}MULTI.
2003-10-15 22:41:22 +00:00
itojun
d587f445de
s/printf/DPRINTF/ for ath_rate_ctl()
2003-10-15 22:19:31 +00:00
itojun
90d92fe2d9
ignore ENETRESET on ADDMULTI
2003-10-15 22:16:35 +00:00
itojun
018cb094b4
ignore ENETRESET on ADDMULTI.
2003-10-15 22:15:25 +00:00
itojun
ea0e5abff9
translate pci device ID until HAL gets updated. suggested by sam leffler
2003-10-15 20:33:30 +00:00
itojun
5f3b1ef5ad
regen
2003-10-15 20:31:52 +00:00
itojun
809ac79214
add Atheros product IDs from athhal_devid.h
2003-10-15 20:31:38 +00:00
bouyer
70b50b0608
Make sure chp->atabus is initialised, and wakeup the right address when
...
shutting down the kernel thread.
2003-10-15 20:29:26 +00:00
bouyer
ea6912c52d
- don't ignore last bit when checking for floating bus value on slave
...
device; some ATAPI devices as master will report 0x7f in all registers
for slave before reset
- For the same reason, remove the er1 check.
Makes slave device with a "strange" ATAPI master probe again.
Problem reported and fix tested by Gary Duzan on current-users.
2003-10-15 20:26:33 +00:00
bouyer
3d6919754d
Clear chp->ch_drive[i].drive_flags if we didn't find a driver for the
...
drive.
2003-10-15 19:54:30 +00:00
jdolecek
6b5eef9a33
add major for nsmb, at #98 to be in sync with i386
2003-10-15 18:27:20 +00:00
jdolecek
79ebb210fa
add majors for ipfilter, lkm, vnd, tun, raid, cgd, ccd, and md
...
where missing
2003-10-15 18:20:19 +00:00
thorpej
eea31306c8
Remove the superuser check for MNT_FORCE on new mounts. It's been
...
pointed out by several people that it offers no real protection.
2003-10-15 17:26:38 +00:00
scw
def6ab457b
Remove the #ifdef __XSCALE__ around the strd test as the instruction
...
is available on any v5E processor.
Pointed out by Richard Earnshaw.
2003-10-15 14:07:03 +00:00
fvdl
4b84b8d930
Don't put the netbsd32_compat*.c files in the 'compat library'. Unconditionally
...
compiling these causes a ripple effect making it hard to conditionalize
anything on COMPAT_* in the kernel.
2003-10-15 13:32:14 +00:00
pk
7dceb5fbf9
obp_v2_getbootfile: we might as well be complete by also considering the
...
PROM environment variables `diag-switch?' and `diag-file'.
2003-10-15 11:51:48 +00:00
dyoung
db0e43b296
Add WEP shared-key authentication.
2003-10-15 11:43:51 +00:00
dyoung
e86c830f2a
Fix WEP reception.
2003-10-15 11:40:07 +00:00
hannken
a3a898ff0f
Add the gating of system calls that cause modifications to the underlying
...
file system.
The function vfs_write_suspend stops all new write operations to a file
system, allows any file system modifying system calls already in progress
to complete, then sync's the file system to disk and returns. The
function vfs_write_resume allows the suspended write operations to
complete.
From FreeBSD with slight modifications.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-10-15 11:28:59 +00:00
rjs
9f105a9400
Regen.
2003-10-15 11:11:55 +00:00
rjs
41929af1e0
Add more IDs.
2003-10-15 11:10:45 +00:00
drochner
ecbadcc56c
fix typo (harmless as long as pmap_update() is a noop)
2003-10-15 09:44:55 +00:00
dsl
b03412ca14
Set vnode size of character disk devices to that of the partition when they
...
are opened (was always done for block devices).
This means that fstat will report the partition size and hence newfs
needn't grovel into the disklabel to find the filesystem size.
2003-10-15 08:41:26 +00:00
tron
d8c9e38848
Fix build error caused by last change.
2003-10-15 08:28:29 +00:00
itojun
5752b1f9ee
add __attribute__((__format__)) to if_printf
2003-10-15 08:13:28 +00:00
pk
a2fbe60ed4
sun4m_access_fault: Treat text/data error traps as if they were text/data
...
exception traps, except that they're logged on the console.
2003-10-15 07:49:41 +00:00
simonb
662c7128cd
Re-order a little so that there's no unreachable code in this block.
2003-10-15 07:18:17 +00:00
simonb
07c9a24e6a
One defintion of OP_SYNC should be enough.
2003-10-15 06:46:46 +00:00
simonb
9606d846fa
Don't check an uninitialsed error variable before printing an error
...
message.
2003-10-15 06:43:36 +00:00
simonb
20178cc3db
Fix obvious typos in a call to pci_mapreg_map().
2003-10-15 06:32:35 +00:00
petrov
7b20d2185b
Set CPU_UPAID when enabling timer interrupts.
2003-10-15 05:16:36 +00:00
gson
d1298fd2a7
If a bootxx program already happened to be a multiple of 512 bytes in
...
length before padding, the shell command to conditionally pad it to
a multiple of 512 bytes returned a nonzero exit status, causing the
build to fail.
2003-10-15 03:49:57 +00:00
enami
8823a8da9a
Port multicast handling to NetBSD. Addresses PR23151.
2003-10-15 03:04:03 +00:00
briggs
f2f02bc9da
Make sure descriptors get bus_dmamap_sync()ed.
...
Restructure a little to make this a little easier.
Also try to avoid allocating things at reset time.
2003-10-15 02:18:52 +00:00
simonb
ef41f16231
Correct a test for setting IFF_OACTIVE on the interface.
2003-10-15 02:10:00 +00:00
grog
b95a3b2e71
Change definitions to compile correctly without VINUMDEBUG flag.
...
Reported by: hubertf
Remove $FreeBSD$ ID string.
2003-10-15 01:31:39 +00:00
lukem
1fa9c076ee
Use a shell variable instead of a cpp #define to provide the full
...
version string; it's more consistent.
2003-10-15 01:28:49 +00:00
itojun
a8d71f892f
define struct prf_ra outside of in6_prflags, to be c++ friendly. sync w/kame
2003-10-15 01:28:28 +00:00
dyoung
f2a9708c75
Do not index arrays using enum constants, since enums can be
...
re-ordered and extended. Instead, use a switch-statement or a
key->value table with appropriate bounds-checking.
2003-10-14 23:13:44 +00:00
dyoung
0fc2b8e13f
Add missing pktattr declaration. Should compile w/ ALTQ, now.
2003-10-14 23:02:52 +00:00
fvdl
14cdf7ae6d
Proper checks for kmem reads beyond _end
2003-10-14 22:33:29 +00:00
nathanw
768b79db69
Catch up to ata/ide changes; look for a parent device of wd named "atabus"
...
instead of "pciide", and check one layer farther up in the device hierarchy
for the scsipidev device.
From Manuel Bouyer, tested by me on a up1500 (identical changes to other
ide-booting code).
2003-10-14 22:01:02 +00:00
fvdl
8639708413
Pass the right argument pointer to trace_enter/trace_exit.
2003-10-14 18:54:34 +00:00
ichiro
f4f7b1ae5c
add support ath on cardbus
...
- implement power management
2003-10-14 17:47:03 +00:00
ichiro
6fc4a5549a
regen
2003-10-14 17:44:09 +00:00
ichiro
5e3d3508b6
add ATHEROS AR5001 WirelessLAN 802.11a/b/g CardBus
2003-10-14 17:43:55 +00:00
christos
bd5d984311
Check for file existance, not readability. Remove extra touch.
2003-10-14 16:59:54 +00:00
tsutsui
53cbca2fa2
Add options COMPAT_16.
2003-10-14 16:16:04 +00:00
lukem
5ab4225f2d
assign the variables on separate lines; makes it easier to read and
...
easier to change one locally with minimal cvs merge issues
2003-10-14 14:23:10 +00:00
dbj
fe7c786886
add mnt_iflag field to struct mount for internal flags
...
mv MNT_GONE, MNT_UNMOUNT and MNT_WANTRDWR to this field
additonally add mnt_writeopcountupper and mnt_writeopcountlower fields
in preparation for pending write suspension support work
bump kernel version to 1.6ZD
2003-10-14 14:02:56 +00:00
yamt
1fb76f9bad
add a prototype of check_segsum().
2003-10-14 13:51:51 +00:00
yamt
d457c892fa
when roll-forwarding, check segment serial numbers correctly.
2003-10-14 13:46:30 +00:00
wiz
09d05922dc
Fix mixer wraparound. Closes PR 16652.
...
Patch from Sergey Svishchev. mycroft says "looks ok".
2003-10-14 13:12:19 +00:00
yamt
73e762ca69
add a missing fsbtodb() to read a correct block for roll-forwarding.
2003-10-14 12:52:28 +00:00
yamt
1508246f38
remove a redundant definition of LFS_MAX_ACTIVE.
2003-10-14 12:51:31 +00:00
tron
162ada1c8b
Replace symbolic link "/usr/include/varargs.h" (pointing to
...
"/usr/include/machine/varargs.h") by a stub include file which will
emit an error if GCC 3.3 or newer is used and include "machine/varargs.h"
otherwise.
Based on a suggestion by Richard Earnshaw. This fixes PR toolchain/22888
by myself.
2003-10-14 12:46:44 +00:00
martti
fd34f3d937
Added another Dell PERC 4/Di
2003-10-14 11:33:36 +00:00
martti
a027ea5f33
Regen: Dell PERC 4/Di
2003-10-14 11:32:19 +00:00
martti
f4ae717ace
Added another Dell Perc 4/DI
2003-10-14 11:30:36 +00:00
lukem
6fc70a0f8c
clean up the method to initialize sccs[] and version[] to remove
...
unnecessary duplication in the source
2003-10-14 06:46:57 +00:00
itojun
5e7b0c710b
more correction to ip_fragment; free mbuf correctly if ENOBUFS is raised
...
during fragmenting.
2003-10-14 06:36:48 +00:00
itojun
40e6b63c60
fix endian bug in fragment header scanning.
2003-10-14 05:33:04 +00:00
itojun
00af50df1b
avoid mbuf leak on ip_fragment(); obey 4.4bsd mbuf passing rule (mbuf passed
...
to a function must be freed by the called function on error).
pointed out by enami
2003-10-14 03:38:49 +00:00
christos
5a36293740
Make COMPAT_NETBSD32 compile again (untested)
2003-10-14 00:28:19 +00:00
christos
d0e3551301
Add mcontext32_t and friends. This is WIP.
2003-10-13 23:45:14 +00:00
augustss
359109cff2
Regen.
2003-10-13 22:34:32 +00:00
augustss
6c07c4466a
Another Logitech camera.
2003-10-13 22:34:10 +00:00
nathanw
b5b9ca33d7
Catch up DEBUG printfs to siginfo changes.
2003-10-13 22:19:15 +00:00
scw
9be5d4cbe9
Document the need for pcb32_r8 to be quad-aligned, now that cpuswitch()
...
uses Xscale's "strd" instruction.
2003-10-13 21:46:39 +00:00
scw
63d24b09fd
A couple of Xscale tweaks:
...
- Use the "clz" instruction to pick a run-queue, instead of using the
ffs-by-table-lookup method.
- Use strd instead of stmia where possible.
- Use multiple ldr instructions instead of ldmia where possible.
2003-10-13 21:44:27 +00:00
scw
100d67ec52
Xscale-optimised bcopyinout.
...
Contributed by Wasabi Systems.
2003-10-13 21:22:40 +00:00
scw
3bf49b3ae8
Tweak the read/write data abort check to recognise Xscale's strd/ldrd
...
instructions.
While the original code matched "strd" just fine, it also matched
the "ldrd" instruction ...
2003-10-13 21:13:30 +00:00
cl
1f11f69f25
add MD part of SA/pthread pagefault handling on hppa
2003-10-13 21:12:12 +00:00
scw
9d9ddf0409
Xscale-optimised b{copy,zero}_page().
...
Contributed by Wasabi Systems.
2003-10-13 21:03:13 +00:00
scw
063066a055
On Xscale, define PMAP_UAREA() and use it to tweak uarea mappings so
...
they use the mini D$.
This results in a small performance boost on xscale platforms, since
flushing the main cache on a context switch won't affect the kernel
stack/pcb.
2003-10-13 20:50:34 +00:00
scw
4355b16f71
In uvm_lwp_fork(), check if PMAP_UAREA() is defined and if so, invoke it
...
with the KVA of the newly-wired uarea.
This is useful on some architectures (e.g. xscale) where the uarea mapping
can be tweaked to use the mini-data cache instead of the main cache.
2003-10-13 20:43:03 +00:00
ad
1e3b781fed
Make this work with the newer 'Quartz' controllers.
2003-10-13 20:35:53 +00:00
dyoung
193ac59e63
Fix PR 23146 (sys/net80211/ intergration break WEP/power management
...
function) from FUKAUMI Naoki.
2003-10-13 20:05:09 +00:00
scw
5e7e19ec12
Xscale-optimised mem* functions, contributed by Wasabi Systems.
...
(Note: memcmp/memset improvements also benefit non-Xscale).
memcmp() - Compare 32-bits at a time if possible. Special-case 6-byte
comparisons, for the benefit of the network stack.
memset() - More loop unrolling, plus use of 'strd' instruction,
results in > 100% speedup on Xscale.
memcpy() - Big-endian support, unrolled loops, 'strd/ldrd/pld', plus
special-cases for very common length/alignment combinations
(at least in the kernel). Benchmarks show ~50% improvment on
Xscale.
memmove() - Big-endian support. Use fast memcpy(), above, if the regions
don't overlap. Otherwise unchanged.
2003-10-13 19:59:24 +00:00
fvdl
ff376b0763
Implement 32bit get/setcontext entry points.
2003-10-13 18:55:30 +00:00
fvdl
fd1fb232de
Regenerate.
2003-10-13 18:54:57 +00:00
fvdl
4a68d0f9cb
Define compat_16 as valid prefix; define the 1.6 compat sigreturn.
2003-10-13 18:53:35 +00:00
fvdl
f7ae3d4536
Define a few 32bit compat types (if COMPAT_NETBSD32, not exported to
...
userspace). Having them here is both good and bad. Good because they're
close to the actual native ones, bad because it exposes things out
of compat/netbsd32. However, putting the exclusively in the latter
requires a lot of reshuffling in the includes there, so this will
do for now.
2003-10-13 18:50:43 +00:00
fvdl
759027f9ca
Define a 32bit compat version of the siginfo sendsig, and rename the
...
old one to reflect it's COMPAT_16 status.
2003-10-13 18:47:10 +00:00
fvdl
6781db3e2a
Do checks on passed in context values (sigreturn/setcontext) explicitly;
...
can't rely on catching the trap on iret for a few reasons.
2003-10-13 18:45:59 +00:00
fvdl
0deb20a334
Define 32bit versions of signal frames and contexts.
2003-10-13 18:41:11 +00:00
fvdl
ef0bb54192
Define a few macros to validate userspace selectors.
2003-10-13 18:40:16 +00:00
fvdl
dc921bb48e
Define mcontext32_t (if COMPAT_NETBSD32).
2003-10-13 18:38:34 +00:00
fvdl
4505ad3141
Define all frame members as unsigned, to avoid any possibility of
...
sign extension on these values.
2003-10-13 18:38:02 +00:00
cl
e9de14a4d3
add MD part of SA/pthread pagefault handling on sh3
2003-10-13 18:08:45 +00:00
thorpej
a58b40631e
* Shuffle some flags to make it easier to visually compare lists
...
of flags.
* In the new mount case, make sure to clear the mount "action" flags.
* Allow MNT_FORCE to be set by root on new mounts.
2003-10-13 18:02:20 +00:00
pk
595fb05c30
obp_v2_getbootfile: use the value of the `boot-file' prom environment
...
variable if we determine that the boot arguments presented to us by the
PROM do not contain a boot file name.
Idea from Greg Woods on port-sparc@netbsd.org .
2003-10-13 17:59:19 +00:00
augustss
32ee02b1f9
Regen.
2003-10-13 17:16:55 +00:00
augustss
c88ef72c1d
Add some IOMEGA products.
2003-10-13 17:15:03 +00:00
thorpej
f7840303a1
Whitespace nits.
2003-10-13 17:07:55 +00:00
thorpej
1bdc80d6cc
Whitespace.
2003-10-13 16:55:10 +00:00
dyoung
031c2c9baa
Why don't I make up my mind? No need to left-shift the country
...
codes when I right-shift the country-code register! Fixes a bug
reported by Dan Carosone: regulatory domain "ETSI" registered as
domain "Spain/Other", so he could only tune channels 10 and 11.
2003-10-13 16:35:49 +00:00
agc
b2b49933f4
Move Matt Green's code from a 4-clause to a 3-clause licence by removing
...
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
itojun
e6d129819b
update m_pkthdr.len
2003-10-13 08:55:59 +00:00
dyoung
5cea02e6fe
Complete replacement of the old 802.11 layer with the new.
2003-10-13 08:34:15 +00:00
dyoung
2295b27590
Install athioctl.h, defining ioctls for Atheros 802.11a/b/g radios.
2003-10-13 08:29:48 +00:00
dyoung
372fd2b92a
Adapt atw(4) to the new 802.11 layer.
...
Simplify atw_start, atw_newstate.
Synchronize access to atw_start by bracketing the call to
ieee80211_next_scan in atw_next_scan with splnet()/splx().
2003-10-13 08:22:19 +00:00
dyoung
e31cc884ed
Adapt awi(4) to the new 802.11 layer.
2003-10-13 08:10:48 +00:00
dyoung
ef743c64b6
Switch wi(4) to the new 802.11 layer.
2003-10-13 08:07:21 +00:00
dyoung
690ab87058
Use new 802.11 header files.
2003-10-13 08:02:02 +00:00
dsl
ca9f17c96d
Add bsd.obj.mk so these directories get their own obj directory (for the
...
library objects shared by their subdirectories).
Needed when the obj directory isn't a parent of the subdirectories obj directory
2003-10-13 06:56:47 +00:00
dyoung
c2ca61c2e6
Build net80211/.
2003-10-13 06:49:14 +00:00
dyoung
2459b02669
Switch an(4) to using the header files in the new 802.11 layer.
2003-10-13 06:45:32 +00:00
dyoung
5dbbaac41d
Switch to the new 802.11 layer.
2003-10-13 06:43:22 +00:00
dyoung
18cc6db280
For PCI attachment, ath(4) needs both the HAL binary and the files
...
listed in dev/pci/files.ath.
2003-10-13 06:40:14 +00:00
lukem
e076c47767
Instead of defining TERSE_ERROR by default (due to space constraints),
...
define NO_LBA_CHECK. bootxx_msdos still needs TERSE_ERROR because its
BPB is larger than the default.
2003-10-13 06:15:00 +00:00
lukem
af93a5c749
The reserved space for the BIOS Parameter Block (BPB) only needs to be for
...
FAT16 (11+51) except when booting from FAT{12,16,32}, which needs FAT32 (11+79).
We still reserve the BPB for non-bootxx_msdos PBR bootblocks because
they may be installed as a floppy boot record (and those need a BPB).
Remove some redundant wording in an error messsage, saving 6 bytes.
2003-10-13 06:08:28 +00:00
dyoung
8a58dbfd9a
Add atw at cardbus (ADMtek ADM8211 802.11).
2003-10-13 05:46:26 +00:00
dyoung
f39f5e0652
Add atw (ADMtek ADM8211 802.11).
2003-10-13 05:45:59 +00:00
dyoung
2f8d4622dd
Add atw at cardbus (ADMtek ADM8211).
2003-10-13 05:43:14 +00:00
dyoung
a71225fe22
NetBSD/FreeBSD compatibility changes NetBSD, especially
...
locking, mbuf
2003-10-13 05:34:30 +00:00
dyoung
ae577fc6ea
Miscellaneous changes for NetBSD compatibility.
2003-10-13 05:23:07 +00:00
dyoung
075c766e9b
Add atw(4), ADMtek ADM8211 802.11, at PCI bus and Cardbus.
2003-10-13 05:20:52 +00:00
dyoung
b491c05ae7
Add the 82801EB LPC, which provides the PCI Interrupt Router on
...
the Dell PowerEdge 400SC.
2003-10-13 05:19:19 +00:00
dyoung
b495f27bbd
A compatibility layer to smooth differences between NetBSD and
...
FreeBSD for ath(4).
XXX Nobody with FreeBSD has signed off on this, so it may change
XXX or go away entirely.
2003-10-13 05:16:20 +00:00
dyoung
839bd8fd2a
Files belonging to the ath(4) PCI front-end.
...
We can only attach an ath(4) on architectures where we have a HAL
(which is only x86, for now) so I list the files belonging to the
PCI front-end separately from the other PCI files.
2003-10-13 05:10:00 +00:00
dyoung
dd813020b9
Add constants and strings for 802.11 radios with OFDM PHY (802.11a,
...
802.11g).
Add constants and strings for multi-mode devices (a/b/g).
From FreeBSD/Sam Leffler.
2003-10-13 05:06:44 +00:00
dyoung
dd46f240f9
ath(4) PCI front-end for NetBSD, heavily modified from FreeBSD's.
...
Substantially influenced by the patch from Bruce J.A. Nourish.
2003-10-13 04:36:29 +00:00
dyoung
762441ba29
Install header files for the new 802.11 layer.
2003-10-13 04:29:31 +00:00
dyoung
8a3890c655
More changes to the new 802.11 layer:
...
* Add Kevin Lahey's power-saving support from the old 802.11 layer
* Support for frequency-hopping PHYs
* Add support frequency-hopping PHY mode, IFM_IEEE80211_FH
* Add channel flags for frequency-hopping
* Add mode<->media mappings in for FH PHY in ieee80211_media2rate
and ieee80211_rate2media
* Stop using IFM_MAKEMODE macro since the mode constants
(e.g., IFM_IEEE80211_11A) are pre-shifted in sys/net/if_media.h
* Add some PLCP constants.
2003-10-13 04:28:35 +00:00
dyoung
60dad7c3fe
* Add support for frequency-hopping PHY mode.
...
* Do not enable debugging by default w/ IEEE80211_DEBUG.
* Add Kevin Lahey's power-saving support from the old 802.11 layer
2003-10-13 04:27:40 +00:00
dyoung
b8e804e8d2
Add Kevin Lahey's power-saving support from the old 802.11 layer
...
Spelling fix: s/unmatch/mismatch/g
2003-10-13 04:25:26 +00:00
dyoung
91ca08d44e
Add Kevin Lahey's power-saving support from the old 802.11 layer
2003-10-13 04:23:56 +00:00
dyoung
031c73f68c
Even more changes to the new 802.11 layer:
...
* Add Kevin Lahey's power-saving support from the old 802.11 layer
* Add a FHPARMS or DSPARMS info element to probe responses and beacons
as appropriate.
2003-10-13 04:22:55 +00:00
dyoung
730331d557
More changes to the new 802.11 layer:
...
* Add Kevin Lahey's power-saving support from the old 802.11 layer
* Add my stop-gap rate-selection routine, ieee80211_get_rate,
from the old 802.11 layer
* Also from the old 802.11 layer: factor ieee80211_match_bss out
of ieee80211_end_scan, since atw(4) uses it for IBSS merges.
2003-10-13 04:20:23 +00:00
dyoung
56126d8a7e
Revive constant IEEE80211_CHAN_ANY for ioctls.
2003-10-13 04:16:59 +00:00
dyoung
f9d6bac599
dev/scsipi/atapi_disk.h is no more, and umass_scsipi.c compiles
...
fine w/o it.
2003-10-13 01:47:55 +00:00
enami
3dbf40b29d
KNF the previous commit.
2003-10-13 00:05:36 +00:00
enami
b3931d341e
Rest of PR23128, so that ehci.c compiles again.
2003-10-13 00:05:10 +00:00
pk
db855cea5a
ksiginfo_get/exit hook: protect queue operations with splsoftclock() (noted
...
by Christos).
2003-10-12 20:09:50 +00:00
pk
4370fdf30f
Define SI_NOINFO to indicate that no signal specific code is available.
...
It is a large positive value (same as in Solaris) to distinguish a trap
for which the standard qualifiers do not fit, from a user- or other
"software"-generated signal.
2003-10-12 20:00:39 +00:00
pk
46166f9be5
Simplify fpu_cleanup() by having it return a code to indicate that a SIGFPE
...
is to be posted; let trap() deal with constructing the siginfo structure.
2003-10-12 19:48:52 +00:00
bouyer
c298ea9fc9
Remove block that has been pasted twice. Pointed out by Alexander Yurchenko.
2003-10-12 19:28:50 +00:00
thorpej
03a2e6174e
Remove comment about non-existent MNT_MLOCK.
2003-10-12 19:08:49 +00:00
pk
22813649af
Prepare for move to SIGINFO framework.
2003-10-12 19:08:17 +00:00
chs
5f8a58e4d6
cache_flush_virt() is buggy, just use blast_dcache() instead.
...
this should fix PR 23093.
2003-10-12 19:06:29 +00:00
he
fe6ca02de9
Since the boot loader is a stand-alone program, stub out LIBCRT0,
...
LIBCRTBEGIN, LIBCRTEND, and LIBC -- these are being added to the
PROG target list by bsd.prog.mk.
2003-10-12 18:56:44 +00:00
mycroft
ba41e2e19b
Fix problems with ehci on controllers that support 64-bit addressing. From
...
Cliff Wright, PR 23128. Thanks!
2003-10-12 18:04:28 +00:00
bouyer
ac8278da8c
Remove this file; ATAPI_READ_FORMAT_CAPACITIES is the same as
...
READ_FORMAT_CAPACITIES; atapi_flex_geometry_page should probably be the same as
scsi_disk's page_flex_geometry.
2003-10-12 17:57:13 +00:00
pk
75da020979
sendsig: we must copy out the `ksi_info' field.
2003-10-12 17:08:08 +00:00
pk
42e535f6f6
sendsig: don't copy out the ucontext_t padding bytes onto the user stack.
2003-10-12 16:12:20 +00:00
pk
179cafcae3
There's no point in having two separate sets of padding; add the local
...
__filler bytes to _UC_MACHINE_PAD.
2003-10-12 16:01:35 +00:00
pk
c2e604a45c
Simplify struct sigframe.
2003-10-12 14:36:19 +00:00
pk
8169a404f6
mem_access_fault_*: call KSI_INIT_TRAP() before filling in the siginfo fields.
2003-10-12 14:34:31 +00:00
pk
a749472593
ksiginfo_put: protect queue operation with splsoftclock(), since it can
...
be called from timer interrupts.
2003-10-12 14:32:05 +00:00
tsutsui
0a43b29b75
- Update technical manual's URL.
...
- Remove __P().
- Remove trailing whitespace.
2003-10-12 04:12:23 +00:00
thorpej
6fc3c06df3
Revert previous change.
2003-10-12 03:21:56 +00:00
pk
44510064ca
Define SIGTRAMP_VALID.
2003-10-11 22:15:18 +00:00
petrov
2514d9e4f2
When establishing interrupt set CPU_UPAID in mapping register
...
so that interrupt would be delivered.
2003-10-11 20:53:14 +00:00
jdolecek
5d0bf491b0
g/c struct swdevt definition and extern decl for swdevt[] - it's not
...
used in kernel tree anywhere
2003-10-11 18:32:53 +00:00
thorpej
36e9866d7b
Cosmetic changes:
...
- Use static to unexport symbols that don't need to be exported.
- ANSI'ify.
- Some whitespace nits.
2003-10-11 17:40:15 +00:00
jdolecek
a8351752c7
add majors for several missing standard devices - 'log', 'filedesc' & 'ksyms'
2003-10-11 12:31:05 +00:00
jdolecek
37f4d8397e
add major for 'filedesc', which is needed for /dev/stdin et. al.
2003-10-11 12:30:24 +00:00
wiz
d231b1cffc
regen (Acer BT-500 Bluetooth USB Adapter).
2003-10-11 12:13:00 +00:00
wiz
5da5ca0dde
Add IDs for Acer BT-500 Bluetooth USB Adapter.
2003-10-11 12:11:13 +00:00
chs
efdef4fa03
fix typo in previous.
2003-10-11 10:36:46 +00:00
tsutsui
c74700fe65
It seems r4k_sdcache_wb_range_NN() function can't handle
...
R10000 L2 cache (which is 2-way set-associative write-back),
so use r4k_sdcache_wbinv_range_NN() for workaround until someone
implement proper r10k_sdcache_*() ops.
Problem reported by Christopher SEKIYA.
2003-10-11 09:09:15 +00:00
jdolecek
0979ebaa1c
g/c major for 'netsmb' and mark the slot free - it has never been used
2003-10-11 07:54:26 +00:00
matt
e291b36f05
Get hp700 boot tools to compile again. Patches from Jochen Knuz.
...
(with some modification from me).
2003-10-11 03:57:31 +00:00
ichiro
1a8b4d7eab
add mapping table of pci interrupt number
2003-10-11 03:53:52 +00:00
christos
0fa70c1f22
fix syntax errors (hi manuel)
2003-10-11 03:04:34 +00:00
toshii
6bd45c6229
Fix a done list handling bug which exhibits under high shared interrupt
...
rate and bus traffic. As the interrupt register is read after checking
hcca_done_head, there was a small chance of dropping a done list.
Ignore OHCI_WDH interrupt bit if hcca_done_head is zero so that OHCI_WDH
is processed later.
2003-10-11 03:04:26 +00:00
christos
4262a06968
try to fix the compile error.
2003-10-11 03:01:53 +00:00
shin
e3dca0d3c1
fix typo.
2003-10-11 01:06:48 +00:00
uwe
81428320f3
Register definitions for sh7709 analog->digital converter.
2003-10-10 23:52:30 +00:00
matt
77a7f39625
Define SIGINFO variant of netbsd32_sendsig when __HAVE_SIGINFO is defined.
2003-10-10 23:18:57 +00:00
jdolecek
83968947b5
Add major for Vinum
2003-10-10 22:46:07 +00:00
jdolecek
ef5bb330f5
reassing majors for crypto and pf to use the newly defined MI major
...
range
2003-10-10 22:42:39 +00:00
jdolecek
b5cc0b5a22
update comments for the final major space arrangement:
...
0-143 machine-dependant/traditional majors
144-159 local/vendor use
160-255 new-style MI range
2003-10-10 22:41:39 +00:00
jdolecek
f3e4bcccdc
move MI majors config file from sys/dev/majors to sys/conf/majors
2003-10-10 21:26:38 +00:00
jdolecek
4e915c9ccd
update the comment - the space for machine-dependant majors
...
is reduced to 0-143
follows discussion on tech-kern
2003-10-10 21:21:25 +00:00
agc
7c96060a24
Correct a spelling mistake twice.
...
XXX This file should be in src/sys/conf.
2003-10-10 21:05:32 +00:00
tron
676596e33a
Fix build problem when MPACPI is used without ioapic as proposed by
...
Quentin Garnier on current-users@NetBSD.org .
2003-10-10 20:16:54 +00:00
jdolecek
8af3527920
g/c USETOOLS?= no
2003-10-10 20:08:00 +00:00
matt
f2e488d9af
Adapt to SIGINFO changes.
2003-10-10 18:08:04 +00:00
matt
2f05a561da
Remove a quirk I added for a Hitachi drive.
2003-10-10 18:04:46 +00:00
thorpej
a483d3a893
Delete the vinum major; it conflicts with an existing entry, and should
...
be added to the MI space anyway.
2003-10-10 17:36:56 +00:00
chs
d2835f509a
use "poll" as the wmesg for poll.
2003-10-10 15:24:28 +00:00
chs
d2266994e2
add "b" as a synonym for "break", since someone added "bt"
...
and made "b" an ambiguous prefix.
2003-10-10 15:21:24 +00:00
fvdl
56534a0352
Add a missing chip reset in attach. Makes things work for an on-board
...
7902B on a SuperMicro board.
2003-10-10 15:20:30 +00:00
thorpej
ece7894356
Regen: Add several more Intel Gig-E product IDs.
2003-10-10 15:20:17 +00:00
chs
d586f723fe
add a command to dump the ITSB, now that it's separate from the DTSB.
2003-10-10 15:19:09 +00:00
thorpej
88dde45df2
Add several more Intel Gig-E product IDs.
2003-10-10 15:19:01 +00:00
chs
6677871b04
increase SYMTAB_SPACE.
2003-10-10 15:17:41 +00:00
fvdl
7a26a8b8f5
Don't zap the lower 16 bits of the command/status register when clear
...
error bits.
2003-10-10 15:15:44 +00:00
chs
06332c88ef
update for new gas syntax. from Jochen Kunz.
2003-10-10 15:07:43 +00:00
briggs
85edb66218
Properly clear any latched errors before re-enabling SERR/PERR for PCI-X
...
in ahd_reset().
2003-10-10 15:02:08 +00:00
matt
0dbe439e05
Adapt ARM Linux compat code to deal with SIGINFO.
2003-10-10 14:44:42 +00:00
simonb
84fa2d5a87
Take previous even further - leave only CTL_MACHDEP and related
...
definitions and structures outside the #ifdef _KERNEL block.
2003-10-10 13:02:34 +00:00
fvdl
7bff47db67
Set some termination defaults correctly. Test register access like
...
in the original FreeBSD driver.
2003-10-10 12:58:38 +00:00
yamt
26efaef9af
revert the previous (thanks, lukem)
...
and wrap curcpu, cpu_info and friends with #ifdef _KERNEL completely.
2003-10-10 11:53:44 +00:00
simonb
96cde2b8b5
White space nit.
2003-10-10 07:04:14 +00:00
simonb
83f1167a97
Need to rename dsrtc to ds1743rtc here too.
2003-10-10 07:01:50 +00:00
lukem
b313b2641e
Userland needs <stddef.h> for offsetof(), not <lib/libkern/libkern.h> ...
...
(Arguably a chunk more of this file could be protected with _KERNEL.
That's a separate project.)
2003-10-10 06:27:15 +00:00
grog
17709f5057
Include Vinum.
2003-10-10 06:13:02 +00:00
thorpej
c490cdc5be
Warn if a sync period requiring DT was negotiated on a peripheral not
...
capable of DT.
2003-10-10 05:58:56 +00:00
thorpej
15bb1be91b
Fix some errors in device mapping and errata work-arounds, and generally
...
clean up mapping code.
2003-10-10 05:57:26 +00:00
grog
2ce576d37a
Add config info for Vinum
2003-10-10 04:50:07 +00:00
grog
c6ed3adf63
Add major number for Vinum.
2003-10-10 03:51:58 +00:00
grog
d88f6bbaeb
Initial import of Vinum kernel module.
...
Ported by: Ramsubramanyam <Ramsubramanyam@infosys.com>,
Atul Kabra <Atul_Kabra@infosys.com>,
Maneesh Jhinger <maneesh_jhinger@infosys.com>
Reviewed by: lukem
2003-10-10 03:07:27 +00:00
matt
25fb6de823
Adapt to SIGINFO changes.
2003-10-10 02:26:54 +00:00
simonb
13ceaa8236
Fix "#defined<tab>" nits.
2003-10-10 02:11:58 +00:00
grog
c5cf87a850
Add definitions for Vinum.
2003-10-10 02:02:52 +00:00
lukem
8e798b3ca1
use uint8_t instead of char for bp_password[]
2003-10-10 01:49:54 +00:00
matt
4b22ee736b
Add support for MPC74[45]7
2003-10-09 20:49:06 +00:00
bouyer
0ea3fa883e
Remove the check for WAIT+POLL+READ case in __wdccommand_start(),
...
this case is already handled in __wdccommand_intr().
Pointed out by Charles M. Hannum.
2003-10-09 18:40:19 +00:00
bouyer
ae9c3d7747
After pciide split, add cmdide and aceride to bus_class_tab[], per Martin
...
Husemann and Takeshi Nakayama requests.
XXX others IDE controller drivers needs to be added too, or a better
way of handling it has to be found.
2003-10-09 17:55:44 +00:00
fvdl
0a79ef3086
Allow probing of CPUs only by ACPI, so that MPBIOS can still do interrupt
...
mapping should ACPI have a quirk. From Christos. One change by me: make
sure that lapic_boot_init doesn't get called twice, otherwise the
cpu_info entry for the CPU with id 0 gets zapped.
2003-10-09 16:25:16 +00:00
fvdl
4c16901a4e
Don't treat a 66-100Mhz PCI-X bus as plain PCI. From yamt (the code was
...
already like this in the FreeBSD driver).
2003-10-09 14:26:54 +00:00
yamt
fbacec1288
tweak curproc not to reference curlwp twice.
...
(function calls might be accompanied by curlwp.)
2003-10-09 14:00:34 +00:00
yamt
d9d3c0dd8e
avoid a magic number in curcpu().
2003-10-09 13:46:43 +00:00
yamt
f2aa877507
for nfs_timer_ch, use callout_schedule rather than callout_reset
...
as the former is a little more efficient.
2003-10-09 13:23:33 +00:00
dsl
ab073a34f8
Move lib/crt/start_rom.S to a more sensible location.
2003-10-09 10:56:13 +00:00
dsl
44ac426707
Use real_to_prot (etc) from stand/lib.
...
Add a patchable header for boot parameters (eg console type).
2003-10-09 10:36:26 +00:00
dsl
3d4b6a197d
Pick up X86_BOOT_MAGIC_* from bootblock.h
...
Move boot_params.S to lib (seems useful to use it in pxeboot).
2003-10-09 10:29:39 +00:00
dsl
e79e1bed24
Make X86_BOOT_MAGIC_* available when ASSEMBLER defined.
2003-10-09 10:25:40 +00:00
dsl
6f9f3c64a7
Move start_pxe.S to a more sensible place
2003-10-09 09:42:25 +00:00
ichiro
266021fa1e
big endian support
...
thanks to smi@sm.sony.co.jp
2003-10-09 08:54:54 +00:00
ragge
577c722173
pdp10 uses register 1 for return value, not 0.
...
While here, adjust a comment.
2003-10-09 08:35:31 +00:00
matt
acf4563b13
Add code to drop into DDB if you get a DSI fault on the current stack page.
2003-10-09 07:12:24 +00:00
enami
57a6593f52
Fix indent.
2003-10-09 03:12:29 +00:00
atatat
d4de28f890
When pulling back an amap to cover the new allocation along with the
...
previous entry, don't add the size to the extension -- it's already
been added to the end of the previous entry.
2003-10-09 02:44:54 +00:00
uwe
a348eb3a30
Add IPR mappings for remaining sh7709 IRQx.
...
While here, fix couple of typos.
2003-10-08 23:31:43 +00:00
enami
22658b0b3a
Fix whitespace usage and typo in comment.
2003-10-08 23:08:35 +00:00
thorpej
901da40cf9
Add some accessor macros for the ucontext:
...
* _UC_MACHINE_PC() - access the program counter
* _UC_MACHINE_INTRV() - access the integer return value register
* _UC_MACHINE_SET_PC() - set the program counter (this requires
special handling on some platforms).
2003-10-08 22:43:01 +00:00
jonathan
b85e76da79
Regen from pcidevs rev 1.581 with Hifn 7954/5 and 7956.
2003-10-08 21:17:27 +00:00
jonathan
ceefe38507
Add Hifn 7954/7955 and 7956. Put adjacent to the very similar hifn 7951.
...
From Rajesh Vaidyanath <RVaidyanath@hifn.com>, as submitted to FreeBSD.
2003-10-08 21:15:33 +00:00
bouyer
7719e83c8b
Following Matt Thomas's request, rename ata attribute to ata_hl, and
...
wdc_base to ata. We can now have
atabus* at ata?
in kernel config files.
2003-10-08 20:57:59 +00:00
fvdl
ba7165e37f
Adapt for ksiginfo changes.
2003-10-08 19:58:54 +00:00
fvdl
995d3a4d2f
Do proper FPU trap reporting for SIGFPE, copied from the i386 port.
2003-10-08 19:55:39 +00:00
pk
ded7383371
In isp_fc_worker() reduce the timeout value used to poll for the link
...
status from 10 seconds to 250 milli seconds for the second and subsequent
attempts to determine the link status. This prevents unnecessary long
stalls after the device attach routines have completed.
Tested on a dual port QLogic 3212. Approved by mjacob@feral.com .
2003-10-08 19:51:01 +00:00
scw
0047ff3f6e
Ok, I give up for now. There's no easy/reliable way to deal with
...
these spurious interrupts.
2003-10-08 19:46:12 +00:00
scw
677ee2fdbf
Simplify the last change to just check for spurious GPIO interrupts.
2003-10-08 19:39:40 +00:00
scw
ecc5fec473
If no interrupt handler claims to have dealt with a level-triggered
...
GPIO interrupt, check the GPIO interrupt status register after clearing
it down to see if the interrupt source has disappeared. If it does,
assume it was a spurious event. Otherwise, panic.
2003-10-08 19:31:17 +00:00
thorpej
80649e0513
Use KSI_INIT_TRAP().
2003-10-08 19:21:52 +00:00
thorpej
55452b8f35
Use KSI_INIT_TRAP().
2003-10-08 19:10:30 +00:00
dsl
977fe7c488
Change the way the shared lib directory is handled.
...
Should now work if ${.OBJDIR} = ${.CURDIR}/obj.
2003-10-08 18:51:50 +00:00
dsl
cabc1ae936
Need to explicitly create directory behing symlink.
...
Clean share lib directory.
2003-10-08 18:38:43 +00:00
dsl
2ae753f095
Only build the libraries once,
2003-10-08 18:20:15 +00:00
tsutsui
cdb8e31d33
- Count jazzio interrupts with evcnt(9).
...
- Misc cleanup.
2003-10-08 18:12:24 +00:00
tsutsui
27ddbb512d
Use mips_dcache_inv_range() for BUS_DMASYNC_PREREAD if possible.
...
Tested on NEC-JC94 (R4400 with 1MB L2 cache).
2003-10-08 18:10:07 +00:00
fvdl
61834e8959
Cap the transfer size at MAXPHYS, the driver won't get bigger requests
...
than that. Allocating 16M per SCB is silly (as pointed out by
Frederick Bruckman).
2003-10-08 17:38:31 +00:00
bouyer
83af294c93
pciide_machdep.c depends on pciide_common, not pciide.
...
Pointed out and fix tested by Marc Recht.
2003-10-08 17:29:59 +00:00
yamt
dd4d591157
- a comment.
...
- bcopy -> memcpy
- increase 'p' only when needed.
2003-10-08 15:07:25 +00:00
scw
fb2c521159
Make it easier to support different types of IXP425 board:
...
- Move board-specific PCI/GPIO initialisation to its rightful place.
- Handle clearing down latched GPIO interrupts in a board-independent way.
- Use MI com(4) driver for on-chip UARTs.
- Misc. tidying up.
Tested on IXDP425.
2003-10-08 14:55:04 +00:00
dsl
c8b26967a8
These files are not used by the new boot code.
2003-10-08 13:10:20 +00:00
dsl
c86f86e53a
BSSTART was only used for the (now depracated) old stand/biosboot code.
2003-10-08 13:06:30 +00:00
augustss
be81c72bb8
Alphabetize.
2003-10-08 12:08:38 +00:00
bouyer
f5a6a0a843
Add new per-chip pciide drivers.
2003-10-08 11:55:43 +00:00
bouyer
7fc9b29ccd
Regen: Add new per-chip pciide drivers.
2003-10-08 11:53:10 +00:00
bouyer
11c3265271
Add new per-chip pciide drivers.
2003-10-08 11:52:50 +00:00
bouyer
9d02ccdbdf
Split pciide in per-chip family driver, as proposed in
...
http://mail-index.netbsd.org/tech-kern/2003/09/25/0007.html
We now have:
acardide* at pci? dev ? function ? # Acard IDE controllers
aceride* at pci? dev ? function ? # Acer Lab IDE controllers
cmdide* at pci? dev ? function ? # CMD tech IDE controllers
cypide* at pci? dev ? function ? # Cypress IDE controllers
hptide* at pci? dev ? function ? # Triones/HighPoint IDE controllers
optiide* at pci? dev ? function ? # Opti IDE controllers
piixide* at pci? dev ? function ? # Intel IDE controllers
pdcide* at pci? dev ? function ? # Promise IDE controllers
siside* at pci? dev ? function ? # SiS IDE controllers
slide* at pci? dev ? function ? # Symphony Labs IDE controllers
viaide* at pci? dev ? function ? # VIA/AMD/Nvidia IDE controllers
pciide* at pci? dev ? function ? flags 0x0000 # GENERIC pciide driver
serverworks driver not commited yet; there are still copyright issues about
it.
2003-10-08 11:51:59 +00:00
bouyer
a8b5ae01dc
Add atabus.
2003-10-08 11:14:36 +00:00
bouyer
ab176e7665
Add adabus.
2003-10-08 11:14:12 +00:00
bouyer
28c8b4f872
Add atabus.
2003-10-08 11:13:02 +00:00
bouyer
ce0aaad119
Adapt for wdcattach() prototype change, and deal with atabus in
...
device_register().
2003-10-08 11:12:36 +00:00
bouyer
e1e231a488
Add atabus.
2003-10-08 11:11:33 +00:00
bouyer
b758d4deb3
Adapt for wdcattach() prototype change.
2003-10-08 11:11:06 +00:00
bouyer
88809a6534
Add atabus.
2003-10-08 11:10:54 +00:00
bouyer
8f905677f4
Adapt for wdcattach() prototype change.
2003-10-08 11:10:18 +00:00
bouyer
f003412676
Add atabus
2003-10-08 11:10:04 +00:00
bouyer
367dd334c1
Add atabus.
2003-10-08 11:09:26 +00:00
bouyer
9686725046
Add atabus
2003-10-08 11:09:09 +00:00
bouyer
e9255b5ae1
Add atabus.
2003-10-08 11:08:07 +00:00
bouyer
bcc3968da5
add atabus.
2003-10-08 11:07:50 +00:00
bouyer
a690443244
Add atabus
2003-10-08 11:07:04 +00:00
bouyer
2e73ec1205
Add atabus.
2003-10-08 11:06:24 +00:00
bouyer
d29ea7aa72
Adapt for wdcattach() prototype change.
2003-10-08 11:06:05 +00:00
bouyer
7a7a287e2c
Regen: add atabus.
2003-10-08 11:05:52 +00:00
bouyer
f14a2e4df2
Add atabus.
2003-10-08 11:04:56 +00:00
bouyer
8efe26b8cd
Adapt for wdcattach() prototype change.
2003-10-08 11:04:32 +00:00
bouyer
102fb2528b
Regen: add atabus
2003-10-08 11:03:55 +00:00
bouyer
0a88b9caa1
Add atabus
2003-10-08 11:02:45 +00:00
bouyer
54433c63d2
Add atabus.
2003-10-08 11:02:18 +00:00
bouyer
20b2eaeddb
Add atabus
2003-10-08 11:01:38 +00:00
bouyer
923e187eb7
Adapt for wdcattach() prototype change.
2003-10-08 11:01:16 +00:00
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
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
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
8d474d5a86
Siginfo changes for alpha kernel. Approved by thorpej@netbsd.org.
2003-10-07 17:04:18 +00:00