christos
47c1e3335d
another caddr_t botch
2007-03-05 20:53:34 +00:00
christos
06a8516672
Fix caddr_t fallout.
2007-03-04 19:21:55 +00:00
ragge
3ad77da985
cpu_simple_lock() calls are emitted in the UP case if DEBUG || DIAGNOSTIC.
...
This should probably be fixed somewhere else, but currently just include
it here. Fixes PR#35866 from Henry R. Bent.
2007-03-04 07:28:12 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
christos
bac2433715
- use __inline like the other ports do.
...
- use __ in parameter names
- provide separate prototype lines.
2007-02-26 01:33:41 +00:00
christos
c581ede63d
Provide constants for the widths of the bitfields and use them.
2007-02-26 01:32:29 +00:00
mrg
367f87f080
fix a typo - s/_inline/inline/
2007-02-24 02:25:02 +00:00
dogcow
3f940223f3
miscellaneous fallout from the great boolean rototill.
2007-02-22 20:09:42 +00:00
thorpej
ae01c745cb
TRUE -> true, FALSE -> false
2007-02-22 06:47:16 +00:00
thorpej
dd962f8680
Pick up some additional files that were missed before due to conflicts
...
with newlock2 merge:
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 23:48:10 +00:00
thorpej
712239e366
Replace the Mach-derived boolean_t type with the C99 bool type. A
...
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg
4410329b87
add a pair of new bus_dma(9) functions:
...
int _bus_dmatag_subregion(bus_dma_tag_t tag,
bus_addr_t min_addr,
bus_addr_t max_addr,
bus_dma_tag_t *newtag,
int flags)
void _bus_dmatag_destroy(bus_dma_tag_t tag)
that allow a (normally broken/limited) device to restrict the bus address
range it can talk to. this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.
all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.
XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
chs
1806872d10
in pmap_extract(), check for the PTE being valid in addition to
...
the PTP being valid when deciding if a user mapping exists.
2007-02-19 18:43:40 +00:00
matt
12f3fecf74
Return rv, not 1, in MUTEX_ACQUIRE (spotted by mhitch)
2007-02-19 03:06:46 +00:00
matt
2256888afe
L_USERRET -> LW_USERRET
2007-02-19 03:06:16 +00:00
ad
4baed28eee
MUTEX_NO_SPIN_ACTIVE_P() needs to be a macro, otherwise we end up in
...
circular dependency hell.
2007-02-19 00:31:21 +00:00
dsl
1547309b01
Pretend the ddb code has proclist_lock held to stop any deadlock.
2007-02-17 22:47:42 +00:00
pavel
934634a18c
Change the process/lwp flags seen by userland via sysctl back to the
...
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.
Restores source compatibility with pre-newlock2 tools like ps or top.
Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
matt
f7d7a7a06a
Add an implementation for krwlock_t. Initialize ci_mtx_count to 1 (biased).
...
Fix a few buglets in the kmutex_t implementation.
2007-02-17 05:34:07 +00:00
ad
3363855a4a
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
...
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
26c2c3986f
MUTEX_SET_WAITERS(): return zero if the mutex has become unheld.
2007-02-16 02:48:47 +00:00
ad
86e995e9d5
More MD changes to get vax compiling.
2007-02-16 02:17:42 +00:00
matt
53af1aa78b
Partially adapt the VAX port to the newlock2 changes. These are untested
...
but they do at least compile.
2007-02-16 01:33:49 +00:00
ad
087fdb9080
Count the number of CPUs at boot and stash in 'ncpu'. Eventually should
...
have each CPU register at attach, so we can figure out the topology for
the scheduler.
2007-02-15 20:32:47 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
ragge
0dc4689916
GCC constraints error for inline assembler, causing in_cksum to calculate
...
the checksum wrong in the non-optimized case. Fix provided in PR#14614
by Rhialto, so this solves this PR.
2006-12-31 10:52:52 +00:00
yamt
3f0f3de613
update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
...
from Arnaud Lacombe.
2006-12-29 21:49:03 +00:00
elad
504c71d9fe
Make machdep scope architecture-agnostic by removing all arch-specific
...
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.
2006-12-26 10:43:43 +00:00
elad
3d11477c94
Add requests indicating access to unmanaged memory for arm, pc532, powerpc,
...
sh3, sh5, and vax, and use them instead of KAUTH_GENERIC_ISSUSER.
Update documentation and example secmodel code.
2006-12-22 11:13:21 +00:00
yamt
8bf7662829
merge yamt-splraiseipl branch.
...
- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
2006-12-21 15:55:21 +00:00
scw
e07faf8a74
Replace the myriad copies of bounds_check_with_label() with a single MI
...
version.
Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
wiz
6919c6578c
s/independant/independent/, from Zafer.
2006-11-24 22:04:21 +00:00
jmmv
7a13fe4abf
Remove tmpfs's experimental status. OK'ed by core@.
2006-11-11 18:47:08 +00:00
he
87a71ab54f
Propagate const, prompted by new gcc.
2006-10-25 07:04:13 +00:00
oster
2cc8598250
Add #inclusion protection.
...
vax/uba/qevent.h has been vax/qevent.h for ages now.
Fixes -current build on vax.
2006-10-09 18:42:59 +00:00
christos
2b5046cce5
include headers needed for the ioctls.
2006-10-09 17:04:36 +00:00
tnozaki
44eb8f042e
fix gcc -Werror -Wmissing-braces problem
...
mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'',
so changed 1st field of union from character array to integer.
2006-10-04 13:51:59 +00:00
chs
e8295642bd
remove MALLOC_NOINLINE, it doesn't do anything anymore.
2006-10-02 03:28:29 +00:00
chs
164df76537
remove details of the kernel malloc() implementation from header files:
...
- change MALLOC() and FREE() to just call their function equivalents.
- remove references to other malloc()-related constants.
2006-10-02 02:59:38 +00:00
elad
bdc51baebb
Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
...
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
gdamore
06522e0f81
Pass the filesystem time to clock drivers in the todr_chip_handle, so that
...
vax, and pmax can use it.
2006-09-16 00:50:52 +00:00
matt
92ae0af8bc
Don't include <sys/device.c> unless this is a _KERNEL
2006-09-06 00:31:50 +00:00
matt
3d1a5167c6
Define LIBCRTBEGIN/LIBCRTEND so we don't need to build userland before
...
building the bootloaders.
2006-09-06 00:31:22 +00:00
matt
0cbed11bde
#define __HAVE_GENERIC_TODR
2006-09-05 19:33:55 +00:00
matt
27176f3722
Switch VAX over to generic TODR
2006-09-05 19:32:57 +00:00
matt
d2fa9e5329
Make cpu_coredump dependent on COREDUMP
2006-08-31 16:49:21 +00:00
yamt
e527ebac6f
- remove unused bdbtofsb.
...
- move the following macros from MD headers to sys/param.h.
ctod
dtoc
ctob
btoc
dbtob
btodb
2006-08-28 13:43:35 +00:00
christos
e0df1e4c51
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
...
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76
Remove obsolete #options VERIFIED_EXEC, found by grep(1).
2006-08-26 07:59:21 +00:00
christos
b300b74469
Disable SYSTRACE by default on all kernels (discussed with core)
2006-08-12 15:29:52 +00:00