165856 Commits

Author SHA1 Message Date
xtraeme
cfebb94aea Add support for GPIO_PIN_PULLDOWN, GPIO_PIN_INVIN, GPIO_PIN_INVOUT,
from OpenBSD.
2008-01-09 15:56:27 +00:00
xtraeme
b62fe25e9c <wizd> bump date! 2008-01-09 15:52:20 +00:00
xtraeme
1801f3d206 Mention gcscpcib(4), reorder entries, just mention gpioctl(8) and
not all drivers again.
2008-01-09 15:51:47 +00:00
xtraeme
b3bb086550 Xref gcscpcib(4). 2008-01-09 15:50:00 +00:00
tsutsui
be408dd2a7 Add options SYMTAB_SPACE for ksyms(4) and ddb(4). 2008-01-09 15:45:27 +00:00
xtraeme
9b1f3b007e Remove the unused mutex from softc. 2008-01-09 15:44:33 +00:00
xtraeme
fce49684a2 Add GPIO_PIN_PULLDOWN, GPIO_PIN_INVIN and GPIO_PIN_INVOUT for gcscpcib(4),
from OpenBSD.
2008-01-09 15:11:30 +00:00
xtraeme
8783714443 Fix up .Nm. 2008-01-09 14:56:38 +00:00
xtraeme
53fd152fd5 Remove useless returns at the end of void functions. 2008-01-09 14:52:52 +00:00
xtraeme
e430816fa1 emo-style(9). 2008-01-09 14:49:48 +00:00
tsutsui
774fc1f9f9 Fix another botch on migration to MI mips3_clock.c for algor in 2006:
- in algor_p????_cal_timer() functions, initialize ci_divisor_delay
  and ci_cycles_per_hz values in curcpu() for MI mips3_clock.c:mips3_delay()
  rather than obsolete and homegrown delay_divisor
- remove old _delay() stuff from locore_machdep.S
- make MI mips3_delay() work even before frequency values in curcpu()
  are initialized

Now NetBSD/algor P5064 kernel works on gxemul.

While here, add a hack for emulators:
- ignore a measured CPU frequency if the value looks unlikely

Pullup request for netbsd-4 will be sent later.
2008-01-09 14:46:48 +00:00
xtraeme
cbfd19ee15 + gcscpcib(4) 2008-01-09 14:44:51 +00:00
xtraeme
e0fef4a42b Xref gcscpcib(4). 2008-01-09 14:35:54 +00:00
xtraeme
f5d88c37cb Fix up some comments, from Yojiro UO in private email. 2008-01-09 14:32:36 +00:00
xtraeme
63cd4d7992 Add gcscpcib(4). 2008-01-09 14:28:54 +00:00
xtraeme
810aa8579e Add gcscpcib(4): a driver for the AMD CS5535 and CS5536 Companion Device
that acts as PCI-ISA bridge and supports a Timecounter, Watchdog Timer
and GPIO.

Adapted by Yojiro UO and minor tweaks by me from OpenBSD. Tested on
CS5535 and CS5536. This closes PR kern/37577.
2008-01-09 14:23:46 +00:00
tsutsui
81ce14a30e Fix botch on MI todr(9) migration of algor on September 2006:
- year0 should be 1980, not 80
- put a newline after MI mc146818_attach()
- call todr_attach(9)
2008-01-09 14:16:35 +00:00
he
7d83a06dfc Declare nbpg if we're building for sparc, and initialize to the
smallest sparc pagesize.  This should deal with the IOCPARM_MAX
build problem, which occurs on sparc because various models have
different page size, so it's run-time determined instead.

pooka says that rump doesn't use ioctl(), so the value is apparently
of no consequence.
2008-01-09 13:59:43 +00:00
ad
e6599f15b0 Fix headers. 2008-01-09 13:52:33 +00:00
gson
28302167c1 Remove unused variables 2008-01-09 13:24:57 +00:00
simonb
d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
yamt
1d97c261e0 remove now unused variable. 2008-01-09 11:13:16 +00:00
elad
4b3ae01c7d Refactor part of the sys_revoke() code so that it can be used in the
compat code. Allows for the removal of two redundant kauth(9) calls.

okay christos@.
2008-01-09 08:18:12 +00:00
elad
7e7e1a0aef Kill two KAUTH_GENERIC_ISSUSER requests and replace them with something
more meaningful.
2008-01-09 08:15:53 +00:00
simonb
2a6f9ca0a9 Remove some old sh5 references. 2008-01-09 07:55:18 +00:00
mrg
58b3d9db6c extend the grossness that is pegasospci_indirect_attach_hook() a little
further and enable the vr(4) located at pci 0 dev 13 fn 0.

now my vr(4) works from disk boot.
2008-01-09 07:35:29 +00:00
simonb
a191b55bff Bump uvmexp.intrs when we get a clock or statclock interrupt. 2008-01-09 06:50:36 +00:00
lukem
e4952757b6 Convert to raise_default_signal(3). 2008-01-09 05:48:58 +00:00
yamt
d9a61c14e9 fix SPINLOCK_BACKOFF_HOOK. 2008-01-09 00:23:18 +00:00
tnn
0214c0c459 improve usage() 2008-01-09 00:01:33 +00:00
yamt
343d0e5699 kill unused PMF_USER_RELOAD. 2008-01-08 22:24:09 +00:00
yamt
b7ce913912 pmap_map_ptes: fix a access-after-free bug.
add a reference on ci->ci_pmap before acquiring locks, so that it won't
disappear while we are blocking on the locks.
2008-01-08 22:22:30 +00:00
elad
9798c4cd61 In svr4_32_sys_systeminfo(), remove two redundant kauth(9) calls for
SVR4_SI_SET_HOSTNAME and SVR4_SI_SET_SRPC_DOMAIN, as permission is already
checked by old_sysctl().

okay christos@.
2008-01-08 22:13:07 +00:00
elad
2395a8f2d2 In linux_sys_sysmips(), remove redundant kauth(9) call for LINUX_SETNAME
as the permission check is done by old_sysctl().

okay christos@.
2008-01-08 22:09:48 +00:00
elad
3d902dfb3e Make compat_43_sys_sethostid() use old_sysctl(), allowing for the removal
of a kauth(9) call.

okay christos@.
2008-01-08 22:08:45 +00:00
elad
145b26e5d2 In svr4_sys_sysarch(), remove redundant kauth(9) call. Permission is
checked by old_sysctl().

okay christos@.
2008-01-08 22:07:29 +00:00
martin
ececdb7913 When passing char (or unsigned char) arguments as int, assign them to a
temporary char (resp. unsigned char) before comparing, to force truncation
to the proper domain. This makes the coresponding regression tests succeed.
2008-01-08 21:57:06 +00:00
martin
8e4891367e cpu_intr_p() for sparc, from Andrew Doran. 2008-01-08 21:32:10 +00:00
christos
b2351ba0df pacify lint with casts. 2008-01-08 20:56:22 +00:00
christos
c6409540ef add missing static decls. 2008-01-08 20:56:08 +00:00
christos
6c924f05f9 cast -1 to unsigned int. 2008-01-08 20:55:58 +00:00
christos
72f5cf0283 no semis after weak alias. 2008-01-08 20:55:25 +00:00
joerg
34dc4c6501 Switch Xen to generic TODR. Tested by Manuel Bouyer. 2008-01-08 20:37:34 +00:00
seanb
fb884caea6 Shutdown sloop socket for read as it's never read on to
prevent mbufs from queueing in its recv buf.
PR:21459
2008-01-08 20:03:09 +00:00
bouyer
98b295d02d uobj->vmobjlock is a mutex these days. 2008-01-08 19:26:44 +00:00
bouyer
1ad062e684 Allocating up to 8k on stack isn't a good idea ... 2008-01-08 19:26:10 +00:00
dsl
7d4e4f0e9a The test for the 0xaa55 at the end of an extended partition pbr has always
been incorrect (and checked the end of the mbr - which always suceeds).
Rather than fixing the text, just delete it (saving 8 bytes from mbr_ext).
2008-01-08 18:31:56 +00:00
dyoung
50b7998db1 After rtw_attach() is called, the hardware has been powered down,
so don't fiddle with the Function Event Registers.
2008-01-08 18:26:09 +00:00
joerg
732cd3c8a0 Convert Atari to generic TODR and timecounter. 2008-01-08 18:04:15 +00:00
joerg
30cd7dc199 assym.h dependency. 2008-01-08 17:46:31 +00:00