mhitch
c97e01a899
gcc4 fixes: need to include stdlib.h; fix prototype and definition of
...
local error() function.
2006-08-04 01:48:02 +00:00
mhitch
fa97ed2f83
More gcc4 "uninitilized" variables.
2006-08-04 01:45:05 +00:00
mhitch
425bfd4d05
gcc4 "uninitialized" variables; just like pmap_motorola.c and amiga/pmap.c.
2006-08-04 01:44:12 +00:00
bjh21
62d6ab40d3
Support for timecounters on acorn32, supplied by Mike Pumford. Only
...
compile-tested by me, but he promises it works.
2006-08-03 23:19:06 +00:00
christos
cf3258890d
PR/34129: Andreas Gustafsson: Nonblocking write to pty can return 0
...
If we cannot write on the slave side, always return EWOULDBLOCK in the
non-blocking case, because we don't know that the buffer we started
writing is actually in a system call boundary.
2006-08-03 22:51:05 +00:00
christos
740d87bac5
adjust resid in one more place.
2006-08-03 22:06:55 +00:00
christos
75300d10c2
don't drop characters that we've copied in when we block.
2006-08-03 22:03:18 +00:00
mhitch
977da07ffe
gcc4 checks for and warns of matching constraints that don't specify
...
a register operand. Remove the matching constraint and change the output
operand constraint from "=m" (write-only) to "+m" (read-write).
2006-08-03 20:32:07 +00:00
mhitch
23e6dfaccf
Add a new ADOS partition type, "RAI?" to specify a RaidFrame partiion
...
which can then be autoconfigured. Currently can only use the 'c'
partition of the raid* device, since there will be no RDB on the device.
2006-08-03 20:29:54 +00:00
mhitch
1553e3ad3f
gcc4 uninitialized warning - initialize the darned thing like pmap_motorola.c.
2006-08-03 20:26:24 +00:00
mhitch
7f15b0ef11
gcc4 checks for and warns about specifying a general register constraint
...
for operands that won't accept an address register. Change constraint
to specify only a data register.
2006-08-03 20:24:57 +00:00
bsh
f3f5bb0be8
regen
2006-08-03 03:06:32 +00:00
bsh
065a50f8cf
Device 10de:026c is not AC-97 controller but nForce430 HD Audio controller.
...
Pointed out by Brad. Thanks.
2006-08-03 03:01:39 +00:00
hubertf
db43815c20
Add commented-out "joy* at eap?" & point people at eap.4 before enabling.
...
Per discussion with drochner@
2006-08-03 00:19:21 +00:00
reed
242dae6299
Fix comment, removed some periods at end of a couple comments (not all),
...
and alphabetize "ral" before "re".
This will make it easier to diff with GENERIC_LAPTOP.
No real changes.
2006-08-02 16:24:29 +00:00
reed
35728fe8e7
Fix some comments, tabs or indenting, and some ordering
...
to make this easier to diff with the GENERIC config.
No real changes.
2006-08-02 16:20:45 +00:00
rpaulo
d9e2b32d75
Don't read the firmware twice. Noticed by Nick.
2006-08-02 13:58:39 +00:00
jmcneill
7c1d2c6776
Forgot to commit this last night -- add the unichromefb(4) driver.
2006-08-02 11:26:16 +00:00
jmcneill
165e6acd89
Allow unichromefb(4) to be the system console.
2006-08-02 01:44:50 +00:00
jmcneill
051b75db82
Add work-in-progress framebuffer console driver for the VIA UniChrome
...
integrated graphics family.
2006-08-02 01:44:09 +00:00
he
788b068ad5
Bump SYMTAB_SPACE so that it fits again.
2006-08-01 22:21:19 +00:00
martin
61138efdd6
regen
2006-08-01 21:05:32 +00:00
martin
796cceed8d
Adapt to latest fhandle_t changes.
...
Pointed out by Havard Eidnes.
2006-08-01 21:05:14 +00:00
xtraeme
08e3be34b6
Match nForce3 250 SATA2.
2006-08-01 20:38:50 +00:00
xtraeme
1b6aac49b2
regen
2006-08-01 20:37:43 +00:00
xtraeme
3b17bf7207
Add nForce3 250 SATA2.
2006-08-01 20:37:02 +00:00
bsh
b6116cb922
Support nForce430's audio.
...
(I have tested this only with nFroce410, not with nFroce430)
2006-08-01 18:31:53 +00:00
martin
a0680cae8a
If the card presents 64bit memory, map it as that.
...
Fixes PR kern/34045.
2006-08-01 18:11:32 +00:00
bsh
a271f8d4ca
regen
2006-08-01 17:29:18 +00:00
bsh
ea0e607e09
add an another device ID for AC-97 controller in nForce430 (MCP51).
...
XXX: I found this ID on MSI K8NGM-V, which has nForce410. Maybe 0x26b is
for 410 and 0x26c for 430?
2006-08-01 17:20:51 +00:00
lukem
755b4414f2
If there's any wd quirks in use, display them.
2006-08-01 07:19:07 +00:00
hubertf
ded0447fa8
spc(4) can also attach to pcmcia(4), as was already in hpcmips/GENERIC
...
for quite some time. Add it to all systems that have pcmcia SCSI.
Pointed out by Björn Johannesson <rherdware@yahoo.com> in private mail,
OK'd by matt@
2006-07-31 23:29:54 +00:00
he
ade3eb1a11
Also comment out audio* at audiobus? now that no audio device is available.
2006-07-31 22:53:43 +00:00
wiz
a1fd1fd937
Sort twa before twe.
2006-07-31 22:23:09 +00:00
mrg
95543a8e6e
add a new "biosmem_implicit" variable that is set when a bootloader
...
info parser sets "biosbasemem" and "biosextmem" from. check for this
when probing memory size, rather than biosbasemem/biosextmem being
zero which is no longer true. also, make the REALBASEMEM/REALEXTMEM
options work properly with multiboot-booted kernels. fixes PR#33918.
2006-07-31 20:59:07 +00:00
bjh21
19d3be8004
Fix a typo that was stopping this compiling.
2006-07-31 20:52:13 +00:00
bjh21
e9b4035b9a
Correct last commit to use correct variable name in hpux_sys_getpgrp2().
2006-07-31 20:39:34 +00:00
christos
fa94c5cda1
mention the correct PR/33725
2006-07-31 18:40:41 +00:00
christos
596f06d2d9
workaround for PR 33918
2006-07-31 17:07:27 +00:00
martin
a5ab452935
Welcome to 3.99.24 - filehandle syscalls changed
2006-07-31 16:36:38 +00:00
martin
b4cb63a646
Make filehandles opaque to userland
2006-07-31 16:34:42 +00:00
martin
f956f13e21
Step 1 to make filehandles completely opaque to userland
2006-07-31 16:32:51 +00:00
ad
39e6d49dad
tcfb_cnattach(): pass the slot address through TC_PHYS_TO_UNCACHED() in
...
case the PROM hands us a physical or KSEG0 address.
2006-07-31 00:19:05 +00:00
jmcneill
82c477c076
regen
2006-07-30 22:41:52 +00:00
jmcneill
9d27901109
Add VIA VT3314 (CN900) UniChrome integrated graphics
2006-07-30 22:41:38 +00:00
ad
a0c8510a86
Single-thread updates to the process credential.
2006-07-30 21:58:11 +00:00
oster
1c1c99da5c
Regen
2006-07-30 21:09:54 +00:00
oster
8084d0b099
Recognize another Intel PRO/100 VM Network Controller.
2006-07-30 21:09:00 +00:00
bouyer
0a5662efed
Add twa(4) and ld at twa
2006-07-30 17:55:31 +00:00
bouyer
7877547494
Add twa(4) and ld at twa where it makes sense.
2006-07-30 17:53:50 +00:00
elad
5446ee0ef6
ugh.. more stuff that's overdue and should not be in 4.0: remove the
...
sysctl(9) flags CTLFLAG_READONLY[12]. luckily they're not documented
so it's only half regression.
only two knobs used them; proc.curproc.corename (check added in the
existing handler; its CTLFLAG_ANYWRITE, yay) and net.inet.ip.forwsrcrt,
that got its own handler now too.
2006-07-30 17:38:19 +00:00
bouyer
ae11e4655e
Add some missing splvm()/splx() around uvm_km_* I noticed.
2006-07-30 10:49:48 +00:00
simonb
6c1cfac08b
Add support for 82945GM and (untested) 82945P AGP. FreeBSD and
...
Linux both treat the 945 series exactly the same as the 915 series
for AGP, so just match a few extra device IDs.
2006-07-30 04:23:44 +00:00
simonb
041946b812
Regen.
2006-07-30 04:18:25 +00:00
simonb
aaba845631
Add 82945P_IGD.
...
Should this be "82945G_IGD", and other 945 device IDs have G instead of P
suffix?
2006-07-30 04:17:42 +00:00
tsutsui
351cfbb29b
scc (alpha) was removed ~4 years ago.
2006-07-30 03:02:07 +00:00
wiz
7df24bdea9
- dc, dtop, scc (pmax), they were removed yesterday.
2006-07-30 00:39:27 +00:00
riz
184df1b6fd
Correct an error introduced in rev 1.3; if there are no sensors of a
...
given type, this is indicated by "low" > "high" in the envsys_range
struct - the comments (and revision 1.2 of this file) indicate there are
no sensors of type ENVSYS_SVOLTS_AC, so fix viaenv_ranges[] to agree
with this.
2006-07-29 21:03:24 +00:00
ad
d8360081f7
Remove RASTERCONSOLE support from the pmax port.
2006-07-29 19:10:56 +00:00
kiyohara
43b03eea5b
Alphabetical order.
2006-07-29 19:02:28 +00:00
ad
a08a363b0d
Remove unused variable.
2006-07-29 18:48:14 +00:00
wrstuden
7cfa6f224f
Updated driver, contributed by Jordan Rhody of Wasabi Systems.
...
Main fix is to improve reliability under heavy load and frequent
status monitoring.
2006-07-29 00:13:57 +00:00
riz
dd3bbab5ac
Change "-mcpu=i486" to "-mtune=i486" so this will compile with gcc4.
2006-07-28 20:16:14 +00:00
wrstuden
94e89e2961
Updated twa driver contributed by Jordan Rhody of Wasabi systems.
...
Correct AEN severity values.
2006-07-28 19:23:53 +00:00
dyoung
7559ef3351
Extract predicate M_UNWRITABLE(m, len), which is true iff len
...
consecutive bytes at the front of m are writable (i.e., neither
shared nor read-only).
2006-07-28 17:34:13 +00:00
dyoung
8cb43bea43
Fix mtod() usage. If we will write to the mbuf data, check whether
...
the data is read-only/shared and call m_pullup(). Otherwise,
extract a const pointer to the mbuf data.
XXX I should extract a new macro, M_WRITABLE(m, len), that is true
if m has len consecutive writable bytes at its front.
KNF slightly.
Use bpf_mtap_af().
2006-07-28 17:06:59 +00:00
dyoung
bce72f7b6a
Fix mtod() usage. If we will write to the mbuf data, check whether
...
the data is read-only/shared and call m_pullup(). Otherwise,
extract a const pointer to the mbuf data.
XXX I should extract a new macro, M_WRITABLE(m, len), that is true
if m has len consecutive writable bytes at its front.
2006-07-28 17:04:27 +00:00
dyoung
ae0b3d534e
Where mbuf data may be read-only/shared, use mtod(m, const ...).
...
Annotate a comparison and m_pullup() that seem unnecessary.
2006-07-28 16:30:55 +00:00
dyoung
788c34d9d0
Use bpf_mtap_af(). KNF slightly.
2006-07-28 16:26:20 +00:00
hannken
fc67a08a9c
Remove 'unused variable p'.
2006-07-28 14:08:11 +00:00
hannken
5bc42a01ba
Fix typo: slim -> &slim.
2006-07-28 13:02:56 +00:00
hannken
055db86c86
Remove 'unused variable p'.
2006-07-28 13:02:21 +00:00
scottr
aed25205e0
Regenerate with correct rcsids
2006-07-28 08:57:03 +00:00
ad
76274213ea
Correct first arg to falloc().
2006-07-28 08:51:05 +00:00
simonb
7056ad57e0
Remove a few trailing blank lines.
2006-07-28 08:15:29 +00:00
scottr
f9be1a6de9
Add Siemens SS1021 WLAN.
2006-07-28 08:02:39 +00:00
kent
6e5c3f3d89
add support for S/PDIF.
2006-07-28 07:41:39 +00:00
kent
add0e05fda
add support for AC'97 S/PDIF
2006-07-27 15:35:01 +00:00
christos
3358c957a3
PR/34094: Jorge Acereda: Kernel option KSTACK_CHECK_MAGIC doesn't build
2006-07-27 00:04:08 +00:00
bjh21
5d74db8c24
Add __attribute__((__noreturn__)) to kernel longjmp(), like the userland one
...
already has. This makes arch/acorn26/acorn26/cpu.c compile with GCC 4.
2006-07-26 20:50:56 +00:00
drochner
84f50d1b92
don't install <machine/db_machdep.h>, this is kernel only
2006-07-26 19:54:56 +00:00
elad
14171f6143
make the sleepable assertion in #if 0 (with commented out LOCKDEBUG for
...
later) until we sort that stuff out.
2006-07-26 17:13:26 +00:00
elad
ebdd7412b5
sync kpi with docs, remove old comments
2006-07-26 16:34:07 +00:00
elad
0050618207
deprecate "options VERIFIED_EXEC"
...
veriexec pseudo-device doesn't need a count anymore too
XXX: port masters should propagate this to their ports
2006-07-26 15:34:39 +00:00
elad
22e1a583a2
fix logic in veriexec_report()
2006-07-26 15:14:24 +00:00
kent
117c4cc6d5
add capability to support for S/PDIF.
...
If a codec supports for AC'97 S/PDIF, it will have an mixer "spdif.enable."
However, we can't change the value of the mixer without AC'97 host
driver's support.
2006-07-26 14:44:33 +00:00
itohy
ae1a2ff3d3
Remove ADM9511's "signature".
...
I don't think it is used anywhere.
2006-07-26 14:21:20 +00:00
christos
224c697f91
Patch from Dheeraj S, inspired by the following FreeBSD change:
...
Rather than calling mircotime() in catchpacket(), make catchpacket()
take a timeval indicating when the packet was captured. Move
microtime() to the calling functions and grab the timestamp as soon
as we know that we're going to call catchpacket at least once.
This means that we call microtime() once per matched packet, as
opposed to once per matched packet per bpf listener. It also means
that we return the same timestamp to all bpf listeners, rather than
slightly different ones.
It would be more accurate to call microtime() even earlier for all
packets, as you have to grab (1+#listener) locks before you can
determine if the packet will be logged. You could always grab a
timestamp before the locks, but microtime() can be costly, so this
didn't seem like a good idea.
(I guess most ethernet interfaces will have a bpf listener these
days because of dhclient. That means that we could be doing two bpf
locks on most packets going through the interface.)
2006-07-26 13:54:13 +00:00
tron
30d6332135
Bluetooth fixes by Iain Hibbert:
...
Remove bthset(4) device and add btsco(4) in its place. This is an
improved version which is not just for headsets, as it can receive
incoming connections (eg for Hands Free Profile). Update bthset(1)
control utlitiy to relate to new device.
2006-07-26 10:43:01 +00:00
tron
5d67049004
Bluetooth fixes by Iain Hibbert:
...
- Update bthidev(4) to use property lists for configuration.
2006-07-26 10:40:50 +00:00
tron
4241fec1bf
Bluetooth fixes by Iain Hibbert:
...
Change the way in which bluetooth devices attach to system. The
new way is for devices to attach directly to a btdevN device via
its own control file /dev/btdevN.
- bthub(4) is replaced by btdev(4).
- /dev/bthubctl is replaced by /dev/btdevN.
- configuration now uses proplib(3) property lists.
- btcontrol(8) updated to use new API, and now uses private
- XML config file /var/db/btdev.xml.
2006-07-26 10:30:59 +00:00
tron
b504a17332
Bluetooth fixes by Iain Hibbert:
...
- Enable listening and incoming connections for SCO links.
2006-07-26 10:20:56 +00:00
tron
1b42d7e7dc
Bluetooth fixes by Iain Hibbert:
...
- Clarify some deprecated commands from the 2.0 spec.
2006-07-26 10:13:49 +00:00
tron
0429374bbb
Bluetooth fixes by Iain Hibbert:
...
- Utilise cached inquiry results when making connections.
2006-07-26 10:10:06 +00:00
dogcow
c959b3c4bd
at the request of elad, as veriexec.h has returned, revert the changes
...
from 2006-07-25.
2006-07-26 09:33:57 +00:00
martin
a8770a2683
Make it compile again
2006-07-26 08:09:21 +00:00
cube
cad5e9a56c
Remove "atapibus* at umass?" and "scsibus* at umass?" when there is
...
already an attachment to the interface attribute (atapi and scsi).
Part of PR#34085, although it is the contrary to what the submitter
suggests (which shows that having both in a config file can be confusing).
2006-07-26 07:00:23 +00:00
elad
29a0dff0c0
kill dup prototype
2006-07-25 19:33:35 +00:00
elad
ddf6300b26
typo; from Arnaud Lacombe, thanks!
2006-07-25 18:43:15 +00:00
elad
290bf1e3e7
fix typoe; thanks ober
2006-07-25 18:14:20 +00:00
elad
9778bb7296
make veriexec.h be generated again; thanks cube@
2006-07-25 18:04:03 +00:00
riz
e0f4b4c3cf
Adapt to change in args for falloc(). Reported by Hisashi T Fujinaka
...
on current-users.
2006-07-25 05:14:38 +00:00
mrg
9eca1294f7
fix a typo in a comment and a very minor KNF.
2006-07-25 00:23:38 +00:00
dogcow
cc44d2fe07
mechanically go through and
...
s,include "veriexec.h",include <sys/verified_exec.h>,
as the former has apparently gone away.
2006-07-25 00:23:06 +00:00
dogcow
52a142f555
fix typo in utterly uncompilable code.
2006-07-25 00:10:42 +00:00
elad
05eb39fb84
replace magic numbers for strict levels (0-3) with defines.
2006-07-24 21:32:39 +00:00
elad
32e391d158
finally do things properly. veriexec_report() takes flags, not three ints.
2006-07-24 21:15:05 +00:00
manu
a640310a53
typo
2006-07-24 19:01:49 +00:00
gdt
cf30106955
Add UGEN_BULK_RA_WB, requested by cube@.
2006-07-24 17:41:30 +00:00
elad
5d611badde
some fixes:
...
- adapt to NVERIEXEC in init_sysctl.c.
- we now need "veriexec.h" for NVERIEXEC.
- "opt_verified_exec.h" -> "opt_veriexec.h", and include it only where
it is needed.
2006-07-24 16:37:28 +00:00
kardel
587059915b
get tickle_tc() prototyped unconditionally
2006-07-24 16:37:24 +00:00
elad
93a2eaef51
prevent removal of monitored files as early as ids mode.
...
okay blymn@
2006-07-24 16:27:15 +00:00
gdt
f9f3dc0a85
Add UGEN_BULK_RA_WB, which allows users of ugen(4) to request read
...
ahead and write behind, improving performance for the Universal
Software Radio Peripheral (USRP) used with GNU Radio.
Enable UGEN_BULK_RA_WB in GENERIC and GENERIC_LAPTOP; behavior is
unchanged unless the new ioctl is called.
This code was written by Joanne Mikkelson under funding from DARPA's
ACERT program.
ok'd by christos@, tested by Berndt Josef Wulf
2006-07-24 14:24:48 +00:00
drochner
53f4a934ae
revert previous (executable mapping of data needed for secondary CPU
...
spinup), this is not needed anymore
2006-07-24 10:57:13 +00:00
drochner
b5d3716437
Set the "NXE" bit (if available) early, before the cpu_info struct
...
is accessed. Without this, the (secondary) CPU chokes on the NX bit in
the PTE.
2006-07-24 10:55:25 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
kent
6f99efd46f
For ThinkPad T60, make the default value of outputs.linein.dir "output"
2006-07-23 16:05:21 +00:00
bouyer
d252c65e9c
Add a /dev/amr* control file for amr(4) devices, which allows sending raw
...
commands to the controller.
Add a amrctl(8) control tool, which for now only allows to get status
from the adapter (status of adapter, logical volumes and and individual
drives).
From FreeBSD, with some adjustements by Andrew Doran and me.
2006-07-23 12:01:25 +00:00
uwe
68272cc770
tlb_exception: Move and indent TLB_ASSERT to reduce visual clutter.
...
Fix function name in the panic message. Print expevt on panic.
Split panic message so that the dumped numbers are on a separate line.
2006-07-22 22:43:43 +00:00
uwe
3ed02eac7c
exp_type[] was constified in exception.c but an extern declaration in
...
db_interface.c was not updated. Declare it publicly. While here,
constify the array itself too.
2006-07-22 21:58:29 +00:00
tsutsui
84180e1158
- reorganize bootinfo structures and fix bootinfo handling in bootloader
...
(mostly based on pmax)
- pass symbol info from bootloader to kernel via bootinfo
(currently bootinfo is allocated in the bootloader and
copied by kernel later; maybe we should rethink about this)
- use passed bootinfo to initialize ksyms(4) in kernel
- remove options SYMTAB_SPACE from kernel config files
- bump bootloader version
2006-07-22 18:15:05 +00:00
rpaulo
25ec6d007f
revert stuff that shouldn't have gone in.
2006-07-22 17:45:03 +00:00
rpaulo
f5f6aa2ed3
TCP RFC is 793, not 783.
2006-07-22 17:39:48 +00:00
martin
a4cb6f93d2
Remove unused variable to make it compile again.
2006-07-22 15:09:09 +00:00
tsutsui
6efaa65c79
Add "-I${S}/../common/include" to CPPFLAGS for libprop sources in libkern.
...
XXX: shouldn't this be handled by sys/lib/libkern/Makefile.inc?
2006-07-22 14:11:35 +00:00
elad
e2706baefd
kill a VOP_GETATTR() we don't need for veriexec.
2006-07-22 10:40:49 +00:00
elad
a92c1615a4
deprecate the VERIFIED_EXEC option; now we only need the pseudo-device to
...
enable it. while here, some config file tweaks.
tons of input from cube@ (thanks!) and okay blymn@.
2006-07-22 10:34:26 +00:00
elad
a6e0095c33
oops, no 'p' here. from xtraeme@.
2006-07-22 09:59:24 +00:00
elad
7e7591e119
if LOCKDEBUG, assert that we can sleep in kauth_authorize_action().
...
discussed with yamt@ on tech-kern.
2006-07-22 09:24:25 +00:00
elad
6f83bb0086
don't call kauth_authorize_generic() when holding a lock, from yamt@.
2006-07-22 09:22:21 +00:00
yamt
54a9d2b0f7
- genfs_getpages: in the case of PGO_LOCKED, check if we can acquire
...
g_glock as suggested by Chuck Silvers on tech-kern@.
- genfs_rel_pages: handle PGO_DONTCARE so that it can be used for the above.
2006-07-22 08:49:13 +00:00
yamt
f9458a6ba1
- in genfs_getpages, take g_glock earlier so that it can't be
...
intervened by truncation.
it also fixes a deadlock. (g_glock vs pages locking order)
- uvm_vnp_setsize: modify v_size while holding v_interlock.
reviewed by Chuck Silvers.
2006-07-22 08:47:56 +00:00
tsutsui
83d364980f
TAB/space cleanup.
2006-07-22 06:58:17 +00:00
tsutsui
ecc22258ee
- remove parentheses from return
...
- remove trailing spaces
2006-07-22 06:42:41 +00:00
tsutsui
999dc402f0
KNF, remove register decls
2006-07-22 06:40:44 +00:00
tsutsui
9b4ab881f1
- include <m68k/m68k.h> for fputype decl
...
- some KNF
2006-07-22 06:40:20 +00:00
tsutsui
2bf43cdfa1
remove __P(), ANSIfy, KNF, use pmap_t rather than struct pmap *
2006-07-22 06:37:27 +00:00
tsutsui
2895c250c2
KNF, ANSIfy, remove register decls
2006-07-22 06:36:06 +00:00
tsutsui
4d891ed888
KNF and misc cosmetics
2006-07-22 06:34:41 +00:00
tsutsui
f430313b2d
- remove unused decls.
...
- remove parentheses from return arg
2006-07-22 06:32:17 +00:00
tsutsui
c15c158ffc
KNF, ANSIfy, de-__P(), bzero() -> memset()
2006-07-22 06:27:00 +00:00
uwe
acfbe0b252
Report traps from user break controller as ksi_code = TRAP_TRACE
2006-07-22 03:22:15 +00:00
uwe
2e7b010133
Minor cosmetics.
2006-07-22 03:06:56 +00:00
uwe
43d9f78e91
Using "irq" in different functions to either x or 1<<x is confusing.
...
Rename.
2006-07-22 02:13:06 +00:00
uwe
c50fbd7f2b
We don't need to update HD6446X_NIMR when (dis)establishing an
...
interrupt as splx will update it from the recomputed mask anyway.
2006-07-22 01:53:49 +00:00
uwe
485a350c1b
hd6446x_intr_priority_update: simplify.
2006-07-22 01:34:55 +00:00
uwe
e8ceae81ee
Shave off one instruction in hd6446x_intr_raise.
2006-07-22 01:16:16 +00:00
gdamore
b846198ad4
Initial implementation for Marvell 88E6060 10/100 5-port PHY switch, from
...
Sam Leffler, used in various products including AR5312-based designs. This
is not enabled in any configs yet, nor tested by anyone other than Sam. I
will be testing this more later, and adding it to appropriate configs once
I have verified (unless someone else beats me to the punch.)
2006-07-21 23:55:27 +00:00
tsutsui
b6558b0616
Use bus_space_map(9) and bus_space_vaddr(9).
2006-07-21 18:40:58 +00:00
tsutsui
a75de8e2db
Use more proper macro.
2006-07-21 18:11:01 +00:00
tsutsui
3c612311d0
Use bus_space_map(9) and bus_space_vaddr(9) rather than iomap().
2006-07-21 18:05:30 +00:00
kent
15c376e363
* azalia_init_corb()
...
No need to confirm CORBRPRST is set even with ICH6/ICH7
2006-07-21 17:30:26 +00:00
gdamore
01f0465721
Regen.
2006-07-21 17:20:59 +00:00
gdamore
e3a079b540
Update ADMtek pci device ids to match data sheets. While here, add the 9513
...
device (although I've never seen one, I have a datasheet for it. :-)
2006-07-21 17:20:20 +00:00
ad
3029ac48c7
- Use the LWP cached credentials where sane.
...
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
tsutsui
888ea5adc5
Use macro defined in dioreg.h.
2006-07-21 15:14:11 +00:00
kent
21623cc733
support for EAPD, Balanced I/O, and LR-Swap
2006-07-21 14:40:12 +00:00
yamt
13170f18a9
assert_sleepable: panic if curlwp == NULL.
2006-07-21 10:22:51 +00:00
yamt
696edc2b76
use ASSERT_SLEEPABLE where appropriate.
2006-07-21 10:08:41 +00:00
yamt
9862c5bef2
add ASSERT_SLEEPABLE() macro to assert we can sleep.
2006-07-21 10:07:29 +00:00
tsutsui
7d4b57d7bc
Some KNF.
2006-07-21 10:01:39 +00:00
perseant
1e9b73d972
Oops, commit the correct version of lfs_rfw.c. The roll-forward functionality
...
is known not to work in this version (as it did not previously) but it should
at least compile.
2006-07-20 23:56:27 +00:00
perseant
83771be892
Separate the (non-working) LFS kernel roll-forward code into its own file,
...
lfs_rfw.c.
2006-07-20 23:49:07 +00:00
bjh21
cf7ce97e4b
Silly error: xos_cli() should call XOS_CLI, not OS_CLI.
2006-07-20 23:35:20 +00:00
perseant
20227e112e
Note partial segments that are written by the cleaner, to help out the
...
roll-forward agent.
2006-07-20 23:16:50 +00:00
perseant
186ffd50ab
Loop on the check for lfs_nowrap, so we don't allow a process to squeeze by.
2006-07-20 23:15:39 +00:00
perseant
5fdcd70349
Move the kauth checks up front, so that all new LFS fcntl calls are subject
...
to the check for superuser privilege.
2006-07-20 23:14:09 +00:00
perseant
8c161d1081
Don't try to write all the vnodes, when the cleaner needs a vnode to be
...
recycled.
2006-07-20 23:12:26 +00:00
christos
cb6bd87d8a
PR/34043: mrt at notwork dot org: 3.99.22 kernel crashes at *_vptofh() called
...
from vfs_composefh_alloc() due to uninitialized "fidsize".
2006-07-20 16:18:14 +00:00
christos
1c50629119
When there are too many empty entries in a row, and we need to try to
...
read the next block, free the cookie buffer before doing so to avoid
a memory leak. Reported by Mark Davies.
2006-07-20 15:12:23 +00:00
tsutsui
2e21abf224
Identify models HP362 and HP382. From OpenBSD, tested on my HP382.
...
Note now options HP362 and options HP382 are required for these models
in your kernel config file.
2006-07-20 13:21:38 +00:00
rumble
ec5b122721
Regen.
2006-07-20 13:12:32 +00:00
rumble
4d3ba0cd44
Beautify.
2006-07-20 13:12:01 +00:00
rumble
db767e167c
Add entries for the Phobos G100, G130 and Set Engineering GIO Fast Ethernet
...
cards.
2006-07-20 13:11:27 +00:00
bjh21
5bdcc8987d
-mshort-load-words has been removed in GCC 4. It was only an optimisation,
...
so just stop using it.
2006-07-20 10:53:12 +00:00
rumble
b0631951f9
Disable haltwo(4) by default. The driver does not properly determine when
...
the audio hardware is not present and causes a hang on Challenge-S systems.
Approved by pooka@ and sekiya@.
2006-07-20 10:37:25 +00:00
cube
2d03dc4c3e
Fix an obvious overlook (struct fileassoc_hook is not defined in
...
fileassoc.h anymore). I could say "please compile-test", but then, I'm not
doing it either for that commit.
2006-07-20 09:00:41 +00:00
kochi
c8920f2898
eliminate bogus acpi debug #define symbols
2006-07-20 05:05:26 +00:00
ad
fe65535924
Try again.. Move l_cred into the startzero section, and fix the define.
...
Doesn't change the layout of struct lwp.
2006-07-20 00:17:10 +00:00
ad
464ac13fb4
Bump version to NetBSD 3.99.23 (LWP creds).
2006-07-19 22:29:25 +00:00
ad
c0f87b2ba1
Move l_acflag into the section that gets zeroed in newlwp().
2006-07-19 22:06:09 +00:00
ad
2b79369c7e
- Hold a reference to the process credentials in each struct lwp.
...
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
2006-07-19 21:11:37 +00:00
tsutsui
2c2371cf55
Adjust comments.
2006-07-19 19:29:02 +00:00
tsutsui
82cc83ca42
Set cpuspeed for HP_400 and HP_425 explicitly.
2006-07-19 19:25:48 +00:00
tsutsui
4c07c7291c
Adapt stand sources to changes of intio device offset macro.
2006-07-19 19:23:56 +00:00
tsutsui
e4b249fede
oops, fix typo
2006-07-19 18:28:58 +00:00
tsutsui
d0e89b46cb
- strncpy() -> strlcpy()
...
- adjust buffer length
2006-07-19 18:25:40 +00:00
tsutsui
83ed44a817
some KNF
2006-07-19 17:32:15 +00:00
tsutsui
f94698e954
Define base address offsets of intio devices in intioreg.h
...
and replace various magic numbers with the macro.
2006-07-19 17:21:23 +00:00
tsutsui
33663964ec
Use iobase address passed from attach args.
2006-07-19 17:18:03 +00:00
tsutsui
d72fb94231
- use __arraycount()
...
- remove parentheses from return values
2006-07-19 16:23:41 +00:00
tsutsui
6b93d0f87d
Use CPUFLAGS="-march=vr5000 -mabi=32".
2006-07-19 15:33:53 +00:00
blymn
36c3e07ffa
Add destination file vnode to rename checking.
2006-07-19 12:45:19 +00:00
blymn
ee551118c6
Add extra argument to rename check to check destination file.
2006-07-19 12:44:11 +00:00
kent
9f8e1fe441
fix crash by reading a mixer value with AD1981HD codec, which
...
has invalid connection lists.
2006-07-19 02:40:18 +00:00
itohy
67d67209d7
Make new device (vendor 0x1317, product 0x9511) work as AN983.
2006-07-18 14:26:57 +00:00
itohy
3cb3cfb1dd
Regen from pcidevs rev 1.807.
2006-07-18 14:21:02 +00:00
itohy
060bfcacf0
Identify vendor 0x1317, product 0x9511 as ADMtek AN983B,
...
since OpenSolaris says it is "ADMTek Comet 983b".
2006-07-18 14:19:14 +00:00
tsutsui
fd040c4006
Add and update misc items.
2006-07-18 13:24:39 +00:00
tsutsui
e621e8f3df
- always enable options MIPS3_ENABLE_CLOCK_INTR so that spllowerclock(9)
...
works properly
(XXX: the real fix is to implement proper CLFK_BASEPRI())
- prepare an independent statclock(9) handler which use MIPS3 CPU internal
clock interrupt. Enabled by options ENABLE_INT5_STATCLOCK, but not enabled
by default.
2006-07-18 12:51:01 +00:00
tsutsui
fe55d37a26
Remove obsolete comment.
2006-07-18 12:21:42 +00:00
salo
36848f108e
G/C apm_power_print() for APM_POWER_PRINT case, make it compile.
...
ok <christos>
2006-07-17 21:04:17 +00:00
christos
52f01eaf1c
remove lhs cast for gcc4
2006-07-17 19:29:31 +00:00
gdamore
df112a3055
Wait a little longer, because some devices (eg bt3c) take a few seconds to
...
enable when they are loading firmware so we need to wait a bit longer.
Patch from Iain Hibbert, at his request.
2006-07-17 19:20:16 +00:00
elad
8ee43586ab
move the fileassoc_delete_file() call above the VOP_REMOVE() one, yamt@
...
says vp might not be valid after it.
2006-07-17 19:05:36 +00:00
ad
e7447d9340
- Always make p->p_cred a private copy before modifying.
...
- Share credentials among processes when forking.
2006-07-17 15:29:06 +00:00
ad
16fc727817
Just use proc0.p_cred where root credentials are needed, instead of
...
allocating a new kauth_cred_t.
2006-07-17 14:49:16 +00:00
ad
2af3d29e01
- Don't cast kauth_cred_t to (struct ucred *), just set pc_ucred = NULL.
...
- Fill ucred::cr_ref.
2006-07-17 14:47:02 +00:00
ad
55a5faa1ef
- Only acquire cr_lock when changing cr_refcnt.
...
- When freeing, test the value of cr_refcnt from inside the lock perimiter.
- Change some uint16_t/uint32_t types to u_int.
- KASSERT(cr_refcnt > 0) in appropriate places.
- KASSERT(cr_refcnt == 1) when changing the credential.
2006-07-17 14:37:20 +00:00
christos
ef1750eb29
make APM_POWER_PRINT compile.
2006-07-17 13:23:46 +00:00
martin
5958a5d814
This requires <sys/lock.h> - make it include it directly.
2006-07-17 11:38:56 +00:00
martin
d91f1187f9
Back out previous - it apparently was not even compile tested.
2006-07-17 11:36:50 +00:00
christos
7358f7042d
PR/34007: Noriyuki Shiota: vmstat fails on the multiboot kernel booted by
...
GRUB-0.97. Initialize some previously unititiazed ELF header fields.
2006-07-16 21:16:22 +00:00
elad
77de54cbf0
get rid of CURTAIN() macro. inline the last use of it, together
...
with a nice XXX comment (assigned to me of course) that we should
be doing this differently.
2006-07-16 21:13:00 +00:00
elad
d4410e6fde
CURTAIN() -> KAUTH_GENERIC_CANSEE.
2006-07-16 20:21:42 +00:00
elad
d9a7152c3e
add KAUTH_GENERIC_CANSEE, which is like the KAUTH_PROCESS_CANSEE, only
...
for two kauth_cred_t rather than kauth_cred_t and struct proc *.
advise against using it in the man-page; it should be used only in cases
where we either don't have an object-specific op or when we can't easily
use one.
2006-07-16 20:10:11 +00:00
elad
9be7229906
expose less api; prompted by yamt@.
2006-07-16 19:37:55 +00:00
kardel
e804524e26
fix another t{s,v}tohz() fallout (invalid remaining time)
...
now passes regression/sys/kern/sleeping
2006-07-16 19:23:11 +00:00
elad
c6d34abf63
oops, forgot to commit that one. thanks Arnaud Lacombe.
2006-07-16 18:49:29 +00:00
cube
b1b29cb4ae
Remove that example. It was obsolete even before 3.0 release.
2006-07-16 10:52:22 +00:00
yamt
402cb9eb95
adapt to vfs_copyinfh -> vfs_copyinfh_alloc rename.
2006-07-16 07:52:02 +00:00
rillig
f2634b6a2b
Reordered the declaration-specifiers so that "inline" comes before
...
"int", which fixes a gcc warning.
2006-07-16 06:32:42 +00:00
rillig
07e31b3af5
When debugging output is disabled, define DPRINTF() to a proper
...
statement expression instead of the empty string. Fixes a gcc warning in
ibcs2_ioctl.c.
2006-07-16 06:31:42 +00:00
rillig
b102417f76
Fixed the gcc warning that "static" should come before "const".
2006-07-16 06:06:20 +00:00
rillig
e769ad7ca4
Added type information for the parameter r of isapnp_read_reg.
2006-07-16 06:01:03 +00:00
gdamore
d5875505ba
Remove unused memp. Fixes coverity CID 3713 from run 61.
2006-07-15 20:52:59 +00:00
elad
4f60437127
minor api cleanup, and remove useless VOP_GETATTR() calls.
2006-07-15 20:07:36 +00:00
elad
a904c6895a
update my email on the copyright to @netbsd.org
2006-07-15 16:48:51 +00:00
elad
a890e27076
move veriexec_clear() from dev/verified_exec.c to kern/kern_verifiedexec.c
2006-07-15 16:43:35 +00:00
elad
e3f6ad54bf
dont use magic numbers.
2006-07-15 16:42:12 +00:00
elad
904a157292
some cleanup and fixes:
...
- fix possible panic and vfs refcnt issue
- use log(9) instead of printf(9) where possible
- indent
- stop logging fsid/fileid
2006-07-15 16:33:16 +00:00
martin
631d071e84
FHANDLE_SIZE_MIN is an allowed value for the requested size (it happens
...
to be the old static size on 32bit archs, so the compat_30 code uses it)
2006-07-15 16:32:29 +00:00
tsutsui
970c192eba
- configure PCI space for viaide so that DMA will work even if the firmware
...
doesn't map DMA registers properly
- enable viaide secondary port explicitly which isn't enabled by some firmware
Tested on RaQ and RaQ2.
2006-07-15 08:08:23 +00:00
elad
c4afa933de
add (commented out) fileassoc(9) kernel options on some popular archs.
2006-07-15 07:55:20 +00:00
skrll
96bba029ff
KNF
2006-07-15 06:44:43 +00:00
yamt
96cfc7d98a
remove unused code and add some comments.
2006-07-15 06:33:40 +00:00
yamt
73f44d02f7
do_setresuid, do_setresgid: use the suser privilege only when necessary.
2006-07-15 06:31:34 +00:00
yamt
bfe8806772
kauth_cred_setgroups: fix an assertion.
2006-07-15 05:54:56 +00:00
yamt
b0c4bb36d9
nfs_getreq: fix a kauth fallout.
...
pointed by nanashi-san. http://pc8.2ch.net/test/read.cgi/unix/1145181361/786
2006-07-15 05:54:10 +00:00
kardel
7e5391a22a
rename boottimebin to timebasebin as this
...
struct actually keeps the start of the UTC
time scale and not the boot time. the relationship
is: utc-time = up-time + timebase.
background: when doing an ACPI sleep the uptime
freezes and on wakeup the tc_setclock() leads to
a new timebasebin - this had no relationship with
a boottime as the structure was previously called.
discussed on tech-kern@
anomalies (moving boottime, uptime describing running time)
where discovered by Arnaud Lacombe.
2006-07-14 23:01:12 +00:00
kardel
97b1c42feb
keep NetBSD boottime semantics:
...
- only set at boot
- only tracking delta of set-time operations
-> will keep boottime stable across ACPI sleeps
uptime(1) will report the time since last boot
2006-07-14 22:44:28 +00:00
kardel
9a7410ffff
reduce sleep time by slept time for retrys
2006-07-14 22:35:15 +00:00
kardel
ac3f10a8d9
make inittimeleft() and gettimeleft() available (for e. g. kern_event.c)
2006-07-14 22:33:27 +00:00
martin
b9dade0e59
netbsd32_sys___fhstat30 and netbsd32_sys___fhstatvfs have nothing to do
...
with compat_30 - so use full/variable sized filehandles here too.
Fixes PR kern/34004.
2006-07-14 22:09:01 +00:00
elad
1c8d298b89
move security.setid_core.* to kern.coredump.setid.*, as requested by yamt@.
2006-07-14 21:55:19 +00:00
christos
29b80779c5
make this compile again.
2006-07-14 20:06:57 +00:00
elad
b5d09ef065
okay, since there was no way to divide this to two commits, here it goes..
...
introduce fileassoc(9), a kernel interface for associating meta-data with
files using in-kernel memory. this is very similar to what we had in
veriexec till now, only abstracted so it can be used more easily by more
consumers.
this also prompted the redesign of the interface, making it work on vnodes
and mounts and not directly on devices and inodes. internally, we still
use file-id but that's gonna change soon... the interface will remain
consistent.
as a result, veriexec went under some heavy changes to conform to the new
interface. since we no longer use device numbers to identify file-systems,
the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now
kern.veriexec.tableN.* where 'N' is NOT the device number but rather a
way to distinguish several mounts.
also worth noting is the plugging of unmount/delete operations
wrt/fileassoc and veriexec.
tons of input from yamt@, wrstuden@, martin@, and christos@.
2006-07-14 18:41:40 +00:00
yamt
a1c2fd0906
introduce filehandle size limits:
...
- FHANDLE_SIZE_MAX: refuse unreasonable size allocation, esp. when
it's a user-specified value.
- FHANDLE_SIZE_MIN: pad small filehandles with zero for compatibility.
XXX it might be better to push this into filesystem dependent code so that
new filesystems can choose smaller handles.
2006-07-14 18:30:35 +00:00
yamt
cf80fa09d3
- sys___getfh30:
...
- restructure code so that it doesn't try to allocate user-specified
unbound amount of memory.
- don't ignore copyout failure in the case of E2BIG.
- rename vfs_copyinfh to vfs_copyinfh_alloc for consistency.
2006-07-14 18:29:40 +00:00
gdamore
e19a48dbd2
Cleanup old aucom entries. Left marked obsolete in majors, and removed from
...
dev/DEVNAMES.
2006-07-14 17:44:07 +00:00