Commit Graph

92525 Commits

Author SHA1 Message Date
dsl
7e5ac7072d Extract the fcntl64() suppoort from linux_file64.c into linux_fcntl64.c
Unravel some of the knots that caused linux_file64.c to be compiled twice
for an amd64 kernel (once for linux and once for linux32) with different
parts being skipped each time.
2008-02-02 19:37:52 +00:00
uwe
a6e384a141 Use std.sh3e{l,b} 2008-02-02 18:28:33 +00:00
martin
d5ed42ea19 When doing a reboot from ddb, set panicstr, so that later LOCKDEBUG checks
show the same mercy as with a real panic.
2008-02-02 18:16:42 +00:00
uwe
025bcad369 Use std.sh3eb and g/c local duplicates. 2008-02-02 17:54:16 +00:00
joerg
648c15667b amd64 kernels should use amd64 GENERIC.local. 2008-02-02 17:23:43 +00:00
hannken
35f84b8843 BO_COWDONE -> B_COWDONE: this flag is tested/modified from the thread owning
the buffer and therefore needs no protection by a mutex.

Ok: Andrew Doran <ad@netbsd.org>
2008-02-02 16:51:34 +00:00
mjf
b1c9a380e4 Match up some VOP_OPEN()S with VOP_CLOSE()s. This allows the root
file system to be identified properly again.
2008-02-02 16:15:01 +00:00
tsutsui
fc92a60a21 Update some entries to sync with reality. 2008-02-02 15:47:48 +00:00
tsutsui
660c4c949b sysinst is done. 2008-02-02 15:39:49 +00:00
tsutsui
1d1faf7fbf Done sysinst. 2008-02-02 15:28:07 +00:00
dsl
4e55f805dd Fix build 2008-02-02 15:17:06 +00:00
dsl
020f5fa28f Use the netbsd32_[u]int64 type for all 64bit items to ensure we have the
correct alignment/padding rules.
Removed the now-unnecessary #pragma packed for amd64.
Should fix the alignment of 'struct netbsd32_kevent' on non-amd64.
2008-02-02 14:34:56 +00:00
itohy
7eadf2219e Allow to boot from just 2GB partition.
Simplify the caluculation assuming the sector size is a power of two.
2008-02-02 14:21:02 +00:00
dsl
0df418f9cb Change u_intxx_t to uintxx_t and uint to unsigined int etc.
Fix indentation.
2008-02-02 13:58:18 +00:00
tron
fe8fd8a947 Add brgphy(4). It works with a 3Com 3C996B-T in my ULTRA60.
Approved by Martin Husemann.
2008-02-02 13:42:43 +00:00
tron
9cb1a5317f Avoid using a stale PCI chipset tag pointer. This avoids panics while
attaching a 3Com 3C996B-T on my ULTRA60. Reviewed by Matthew Green.
2008-02-02 12:12:09 +00:00
hannken
6a545682ed ccdbuffer(): add missing initialization of new bufs b_objlock. 2008-02-02 10:40:50 +00:00
sekiya
37c9e98b8d Uncomment firewire devices. Verified working on my IP32 with a combo
USB2.0/IEEE1394 card:

fwohci0 at pci0 dev 3 function 3: VIA Technologies VT6306 IEEE 1394 Host Controller (rev. 0x46)
fwohci0: interrupting at crime interrupt 10
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:40:26:01:08:01:57:07
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)

... and:

ieee1394if0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
ieee1394if0: bus manager 1 (me)
ieee1394if0: New S400 device ID:0001a35000317061
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
scsibus2 at sbp0: 1 target, 0 luns per target
sd1 at scsibus2 target 0 lun 0: <AL-COMBO, , > disk fixed
sd1: fabricating a geometry
sd1: 38154 MB, 38154 cyl, 64 head, 32 sec, 512 bytes/sect x 78140160 sectors
sd1: fabricating a geometry
sd1: no disk label

There are a few "mace: overrun at ff2001" errors during access, but they
appear harmless.
2008-02-02 10:31:08 +00:00
tsutsui
f9ba3a6676 Add RAMDISK config, which has GENERIC + mdroot stuff. 2008-02-02 09:19:44 +00:00
sekiya
1ca3315527 Garbage-collect my old broken attempt at creating a ringbuffer for the audio
chip.  Fix grammar in a comment while I'm here.
2008-02-02 08:58:20 +00:00
uwe
de7abf3b9f Include std.sh3el.
Drop EXEC_ELF32 from configs now that it is standard.
2008-02-02 06:09:11 +00:00
uwe
5f972824f5 Use makeoptions DEFTEXTADDR instead of setting TEXTADDR in the makefile. 2008-02-02 05:53:40 +00:00
tls
e2205fa0bb Add CRYPTO_*_HMAC_96 defines -- missed this file in previous commit. 2008-02-02 04:46:29 +00:00
sekiya
ab0a73e205 Allow sync-on-green to be controlled by ARCS environment variable "SyncOnGreen".
Set to anything starting with the letter 'n' to disable sync-on-green, set to
anything else or leave undefined to keep default behavior.
2008-02-02 04:38:37 +00:00
tsutsui
6d8f3f878b Make RAMDISK config to just include GENERIC and have md_root stuff again.
We have had the native bootloader and we no longer have size restriction.
2008-02-02 04:25:54 +00:00
sekiya
b8d5f67d45 Define relevent register data so that we can turn off sync-on-green when needed. 2008-02-02 04:11:02 +00:00
uwe
113a8429d2 Drop MACHINE_ARCH from here, it's specified with "makeoptions" in
std.sh3el now.
2008-02-02 03:14:03 +00:00
uwe
ec7fffd0f0 Drop exec and endianness options that are in std.sh3* and instead
include std.sh3el.
2008-02-02 03:10:06 +00:00
uwe
a82100c2ca Add back std.sh3. For now it contains obvious EXEC_* options and
CPU_IN_CKSUM.

Introduce std.sh3e{b,l} that include std.sh3 and just add
corresponding endianness options.
2008-02-02 03:06:04 +00:00
tls
9b6c682b45 From Darran Hunt at Coyote Point: don't truncate HMAC to 96 bits unless
actually asked to.

Fixed in FreeBSD a while ago, discussed on tech-kern and tech-crypto.
2008-02-02 02:39:00 +00:00
uwe
1d3b24feca Add cpu_in_cksum.S 2008-02-02 02:19:42 +00:00
uwe
8c87580a0e Convert in_cksum() to new generalized cpu_in_cksum(). 2008-02-02 02:15:40 +00:00
uwe
d6b98318d5 Rename in_cksum.S to cpu_in_cksum.S as is to preserve original code in
the new file history.
2008-02-02 02:11:19 +00:00
xtraeme
b5abdb42f6 Destroy the callout via sysmon_envsys_destroy() now that it's
initialized in sysmon_envsys_create().
2008-02-02 02:02:37 +00:00
matt
ab1d549cb1 Improve my version of mtprng_random. Reshuffle things. Add an compatible
version of init_by_array.
2008-02-02 01:13:04 +00:00
dyoung
46be8b643f Fix a two races between the initialization code and cbb(4) interrupts:
establish the interrupt handler before enabling interrupts, so that
we will not get an interrupt storm that keeps the system from making
any progress.  (We may have only been susceptible to the storm if
cbb(4) shared an interrupt with, say, uhci(4)).  Also, finish
setting up the pcic_handle before enabling interrupts, so that the
Pcic_read() call in pccbbintr() will not jump to address 0!

Now, pccbb_intrinit() encapsulates all of the interrupt initialization.

Explicitly enable card-status changed (CSTSCHG) events.

Paranoia: ensure that writes to the socket event register (interrupt
acknowledgements) are flushed to the h/w by reading the register
(gross).  We really need something like
bus_space_sync(BUS_SPACE_BARRIER_WRITE_BEFORE_INTERRUPT).

More paranoia: in pccbbintr(), if the device is inactive, get out.
2008-02-02 00:31:25 +00:00
xtraeme
74a0270856 aiboost_getcomp: use Package.Count to allocate and iterate over
the elements rather than Integer.Value, which sometimes doesn't
match and gives unexpected results on the error path.

This fixes the kmem_poison_check on DEBUG kernels (finally). Patch
by Fukumoto Atsushi. Thanks!
2008-02-01 23:12:30 +00:00
dyoung
b31e1f190c Use aprint_*_dev() and device_xname() instead of accessing dv_xname
directly.
2008-02-01 21:13:44 +00:00
elad
cd23f36378 Replace a KAUTH_GENERIC_ISSUSER in the cpuctl code with a proper kauth
request.

Reviewed by ad@, tested by me.
2008-02-01 20:01:06 +00:00
tls
8edf0049e7 don't allocate AES keys with M_WAITOK! 2008-02-01 19:10:31 +00:00
tsutsui
4b2713682e Catch up with "Refactor in_cksum/in4_cksum/in6_cksum implementations". 2008-02-01 16:37:30 +00:00
jdc
0806e2a957 Disable HW RX TCP4 checksums because it is buggy (it appears to only checksum
src IP, dst IP and packet len).

Also, remove the "MAC rx fault" redundant printf().
2008-02-01 11:03:19 +00:00
jdc
129b6bc9a9 Set the chip revision in the softc. 2008-02-01 10:58:28 +00:00
jdc
16d4e38d4d Add GEM_IS_SUN macro, and chip revision to the softc. 2008-02-01 10:53:25 +00:00
tnn
54554bfd6e Update comments. 2008-02-01 09:39:20 +00:00
skrll
f5dc52a3c1 Initialise mnt_renamelock in vfs_rootmountalloc. 2008-02-01 08:53:19 +00:00
tls
e17d3eea39 This code never worked on a released version of FreeBSD in the form it's
been in in our tree, and certainly does not work on any version of FreeBSD
now.  Run through unifdef -D__NetBSD__ -U__FreeBSD__ yielding a small
reduction of size and a dramatic improvement in readability.

No, this does not yield any meaningful decrease in patchability (unlike
mechanical changes that touch live source lines) -- try it and see.
2008-02-01 04:52:35 +00:00
christos
3f5a745e04 fix 0 bssid problem on rejoin. From FreeBSD. 2008-01-31 22:07:22 +00:00
plunky
6f45ff2e8b do not destroy session callout until the session is definitely finished
with, otherwise trying to stop it will cause a panic
2008-01-31 19:30:23 +00:00
markd
906c80684e s/AD1983_EVENT/AD198X_EVENT/ 2008-01-31 19:01:50 +00:00