Commit Graph

168521 Commits

Author SHA1 Message Date
mjf
1078d801e0 Include lii(4). 2008-03-29 01:24:30 +00:00
mjf
09bf00f6dc Add man page for Atheros L2 Fast-Ethernet device driver. 2008-03-29 01:15:03 +00:00
cube
b5ab5ab5d8 Add and enable lii(4) in amd64 configurations, too, as it is very likely
the hw is used on amd64-capable otherboards, although it is not confirmed
yet.
2008-03-29 01:14:25 +00:00
cube
f154459e7a Mention the addition of lii(4). 2008-03-29 00:42:22 +00:00
cube
819aee2ff1 Add lii(4) where it makes sense. 2008-03-29 00:40:02 +00:00
cube
88b9a9b2e7 Add and enable lii(4). 2008-03-29 00:21:01 +00:00
cube
8b01a3db30 Add lii. 2008-03-29 00:20:08 +00:00
cube
2bfb1e4fe0 Add a driver for the Atheros/Attansic L2 Fast-Ethernet chip found on a
series of hardware that includes Asus's famous EeePC.

The linux driver was used as documentation.

Many thanks to all the people who helped or at least supported me while I
was fighting that bug that made the EeePC freeze.  At the top of that list,
Matt J. Fleming (mjf@) and David Gwynne (from the OpenBSD fame).
2008-03-29 00:16:26 +00:00
nakayama
5a9b71307f Don't read fplwp content in delay slot for considering the case fplwp was
modifiled.

Reported by Chris Ross on port-sparc64.
2008-03-28 23:22:53 +00:00
apb
e6806c2c83 Adapt to changes in m68k/060sp/asm2gas script: pass SED=${TOOL_SED:Q}
instead of TOOL_SED=${TOOL_SED:Q} in the environment.
2008-03-28 22:29:16 +00:00
apb
87f370a116 Synchronise the two asm2gas scripts in sys/arch/m68k/060sp and
sys/arch/m68k/fpsp:

* The fpsp/asm2gas sed script previously hardcoded the fact that
  registers needed a '%' prefix, and the 060sp/asm2gas sed scrip
  previously did not have rules related to inserting '%' before register
  names.  Now, both scripts have the same rules, but the rules are
  parapeterised to use "$P", which is set to '' or '%' as appropriate.

* Some other minor changes to the sed scripts.

The new asm2gas scripts have been verified to produce identical output
to the old asm2gas scripts, for all inputs in 060sp/dist/*.sa and
fpsp/*.sa, except for some differences inside comments.

Thanks to Izumi Tsutsui for suggesting that these scripts should be
synchronised.
2008-03-28 22:27:33 +00:00
ad
58420c122f mutex_vector_exit: add another panicstr check. 2008-03-28 22:19:39 +00:00
ad
6c180fd421 Pull in sys/cpu.h for cpu_intr_p(). 2008-03-28 21:58:43 +00:00
christos
5ae92982aa properly fix the variable stack allocation code. 2008-03-28 21:18:45 +00:00
christos
8f949a45b8 undo previous 2008-03-28 21:18:24 +00:00
christos
6bb1f8cf94 Not the right way to fix this. 2008-03-28 21:17:37 +00:00
plunky
5281276341 Use deviter API to search for child devices.
As all identifying information is stored in the device
properties, this removes the need for child devices to
have a reserved area (struct btdev) in the softc, and
bthub(4) does no longer need to have a softc at all.
2008-03-28 21:17:36 +00:00
ad
03489e636c sleepq_block: use callout_halt, as we have to wait for the callout to
stop (it might be running on another CPU). Otherwise, 'curlwp' could
exit before it completes.
2008-03-28 20:48:36 +00:00
ad
e1fe405771 Add a test for callout_halt (and incidentally, fast softints). 2008-03-28 20:44:57 +00:00
ad
c3338aabf1 Enable blocking synchronization for callouts as discussed at length on
tech-kern last year. Instead of modifying callout_stop, add a new
routine (callout_halt) which will sleep if the callout is already in
flight. Note that if a callout can take locks, the caller of callout_halt
must not hold any of those locks - otherwise the two could deadlock.
2008-03-28 20:44:38 +00:00
ad
7b5d104e8d Make these compile again. 2008-03-28 20:28:27 +00:00
manu
fe6642740b Still from Cyrus Rahman: fix file descriptor leak introduced by previous
commit.
2008-03-28 20:28:14 +00:00
tsutsui
03bb6cc822 Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
and other related misc cosmetics.
2008-03-28 20:26:12 +00:00
tsutsui
048fb884fc Split device_t and softc for MI mc146818 clock,
and other related misc cosmetics.
2008-03-28 19:05:49 +00:00
martin
65c31645cb Now that we have per-cpu-contexts, checking the context on the local cpu
to find out if a pmap is on some mmu does not realy work any more.
2008-03-28 18:22:59 +00:00
tsutsui
820a544d88 Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*(). 2008-03-28 18:19:56 +00:00
he
2d72e9e39b Note the build hack for racoon's privsep.c. 2008-03-28 18:14:23 +00:00
he
25a92e43c5 Because privsep.c uses CMSG_SPACE() to size two local arrays, these
ends up as c99 variable-sized local arrays (CMSG_SPACE() uses a function
as part of calculating its result).  This causes the stack protection
code in the compiler to complain, so build this one with -fno-stack-protector
to avoid the problem.

Gets us back to buildability for this program for a number of our ports.
2008-03-28 18:10:53 +00:00
christos
56fd57d26f detect more errors from printf/malloc. 2008-03-28 18:05:39 +00:00
tsutsui
c93c4b87ff Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_normal(9). 2008-03-28 17:51:51 +00:00
drochner
fd0ded75ed split device/softc for USB host controllers and the usb (control)
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems
2008-03-28 17:14:45 +00:00
drochner
8e182b07db remove FreeBSD/OpenBSD sections, cross-platform support hasn't been
maintained for a while
2008-03-28 17:10:30 +00:00
tsutsui
71fd55d0c3 Enable warning options. 2008-03-28 16:41:37 +00:00
tsutsui
74d089c227 Adjust boot device detection code to make netboot work properly:
- make a bootloader pass bootpath which includes device path on ARC BIOS
  via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
  then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
  argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version

Tested on IP32 with various kernel/bootloader combinations.
2008-03-28 16:40:25 +00:00
ad
13c3856c4c Remove dead code from previous. 2008-03-28 16:23:39 +00:00
martin
e4eb0bc72d Use the passed cpu info for returning the frequency, not the current
cpu
2008-03-28 15:39:31 +00:00
xtraeme
2f62d4cb29 hpet can be attached to ichlpcib, mention that in SYNOPSIS. 2008-03-28 15:00:29 +00:00
he
d7ce7c850c Make racoonctl build again, sockmisc.c needs -DNOUSE_PRIVSEP in order
to not pull in all the rest of the racoon/ipsec code.
2008-03-28 14:37:08 +00:00
yamt
24840272de whitespace. 2008-03-28 14:29:57 +00:00
ad
4bd84ff96a Prevent overlapping calls to bind() and/or connect() on a Unix socket. 2008-03-28 12:14:22 +00:00
ad
c2f3592995 Prevent listen() on a socket that is already connected - we already prevent
connect() on a listening socket.
2008-03-28 12:12:20 +00:00
kiyohara
c65c7603a1 The status buffer must synchronize. If your CPU is cache writeback,
synchronous processing is necessary.  However, the size of a status
buffer will overwrite the memory while synchronously processing it
because it is very small.  We clear the flag SK_Y2_STOPC_OWN at more
late.
2008-03-28 08:46:01 +00:00
kiyohara
2b2915bee1 Fix ugly format in aprint_normal{,_dev}. 2008-03-28 08:35:44 +00:00
dholland
f47dfee9a0 Correct documentation of default value of FILESMODE.
PR bin/38059 from Aleksey Cheusov.
2008-03-28 06:04:40 +00:00
lukem
c63660b4d2 Fix fat-finger in previous.
Use "e.g.," instead of "E.g.,".
Noted by Geoff Wing.
2008-03-28 05:47:27 +00:00
dholland
000424deb2 Assorted updates and clarifications, grammar fixes and wording improvements,
and so on. Significant highlights:
   - mention src/tests and reference atf;
   - provide examples of MACHINE and MACHINE_ARCH;
   - mention that MKOBJ=no is not recommended;
   - correct the description of the default setting of USETOOLS;
   - document the interactions of build.sh -[uo] with various things;
   - document the interactions of build.sh tools and kernel=FOO;
   - use a lot fewer parentheses.
Discussed on netbsd-docs.
2008-03-28 05:23:44 +00:00
dholland
d868f7242f Yet another rename workaround - this time check for . and .. early because
relookup() objects to being asked to handle them.
2008-03-28 05:02:08 +00:00
dholland
fc5b5e6ac9 The phase of the build that -u prevents is "make cleandir", not merely
"make clean"; adjust build.sh's usage message to reflect this.
2008-03-28 04:24:18 +00:00
manu
1d223a6207 From Cyrus Rahman: Allow interface reconfiguration when running in privilege separation mode, document privilege separation 2008-03-28 04:18:52 +00:00
manu
182dbe8881 From Cyrus Rahman <crahman@gmail.com>
Allow interface reconfiguration when running in privilege separation mode,
document privilege separation
2008-03-28 04:18:51 +00:00