yamt
de0c01fd1d
do_posix_fadvise: turn some KASSERTs into CTASSERTs.
2009-05-31 22:15:13 +00:00
mrg
54e81f636d
make sure to initialise the cpuinfo sz in all cases. noted by martin.
2009-05-31 20:28:51 +00:00
mrg
5dbfb3ccb3
- bump the size of cpus[] by one, so we have a NULL pointer at the end,
...
from tsutsui
- for MP kernels, copy the loop to find the bootcpu in mainbus_attach()
into getcacheinfo_obp() so we can get cache properties on the bootcpu
before calling main()
- in getcpuinfo(), move the call of getmid() before the call to
getcacheinfo() so that the above change to getcacheinfo_obp() can work
- move the struct cpu_info setup to the end of the initial kernel page
setup and don't access this space until after we have switched to the
kernel pagetables
- revive most of the old CPUINFO_VA alignment/congruency code from the
old alloc_cpuinfo_global_va() function, and ensure that all cpuinfo
structures are sanely aligned. this makes hypersparc work again
- introduce a new way to free the wasted pages back to UVM, as we can't
simply uvm_unmap() them this early in bootstrap
i believe that the first used cpuinfo_data page is still being wasted,
but i haven't checked.
2009-05-31 20:09:44 +00:00
he
5bfe080527
Adapt to changes in sa11x0 code, with struct device * -> device_t changes.
2009-05-31 17:47:26 +00:00
martin
900e24968a
Properly initialize child attach args to zero - we could end up with
...
various devices having different ideas about being console otherwise.
2009-05-31 17:09:03 +00:00
he
6425d6dcfd
Don't include <machine/mtpr.h> anymore since it has been removed
...
(at least from the amiga port) and appears to no longer be required.
2009-05-31 14:11:17 +00:00
martin
f8047b2aa2
Per discussion with <simonb> also block the interrupts from icu 1 for
...
splvm(), even if we don't currently support any handlers for gpio
interrupts.
2009-05-31 11:34:01 +00:00
martin
114a7832a7
For consistency add COMPAT_50
2009-05-31 11:09:01 +00:00
martin
839da53f59
Block MIPS_INT_MASK_1 for splvm() too - if_aumac.c establishes it's
...
interrupt handler at icu 0 req 1, which needs to be blocked by splvm().
2009-05-31 09:39:10 +00:00
tsutsui
a6363f7d5a
Two fixes for RX hwcsum on DESCV2 chips:
...
* On checking TCPv4/UDPv4 RX checksum on DESCV2 chips, also check
RE_RDESC_VLANCTL_IPV4 bit because those DESCV2 chips may also recognize
IPv6 packets and set RE_PROTOID_TCPIP or RE_PROTOID_UDPIP bits for
TCPv6/UDPv6 packets. This may fix PR kern/40605.
* According to Realtek's Linux driver, DESCV2 chips don't set RE_PROTOID_IP
for non-TCP/UDP IP packets (set only RE_RDESC_VLANCTL_IPV[46]) so
remove PROTOID check for IPv4 RX cheksum on DESCV2 chips.
2009-05-31 05:10:47 +00:00
yamt
31a7ec7dc7
sched_pstats_hook: fix estcpu decay.
...
this makes my desktop usable when running "make -j4".
2009-05-31 04:13:33 +00:00
martin
250d329095
Do not use the same trampoline for cpu_lwp_fork and cpu_setfunc - only
...
the former needs to call lwp_startup().
2009-05-30 18:26:06 +00:00
martin
18d36d7f38
Do not use lwp_trampoline for cpu_setfunc, we do not want to call
...
lwp_startup() after a setfunc. Grow a simplified setfunc_trampoline
instead.
2009-05-30 17:52:05 +00:00
skrll
90a08c6ee8
Give pdc_scanbus some help.
...
Use aprint* while here.
2009-05-30 17:45:59 +00:00
martin
72ad694b88
Remove unused file (merge error?)
2009-05-30 17:20:45 +00:00
martin
7f65d1375e
cpu_setfunc() can not use lwp_trampoline, as that has additional lwp startup
...
semantics. Use a simpler setfunc_trampoline instead.
2009-05-30 16:52:32 +00:00
phx
9bae1e8ed5
No longer used since migrating from sicallback-softints to MI-softints.
2009-05-30 16:42:40 +00:00
hannken
d68670a54c
ufsdirhash_lookup(): call ufs_blkatoff() with "modify == false".
...
This buffer is used read-only here and from caller.
2009-05-30 13:54:36 +00:00
hannken
ae5722dac0
No need to include bsd.subdir.mk as bsd.kinc.mk already includes it.
2009-05-30 09:04:35 +00:00
snj
1992ce74e1
Terminate 3.x.
2009-05-30 06:58:12 +00:00
skrll
e03976623a
Add TLS relocation definitions.
2009-05-30 05:56:52 +00:00
yamt
5ebfa691fe
wrap long lines.
2009-05-30 04:26:16 +00:00
mrg
2cbddcfe99
print the curpcb in "mach cpu" output as well.
2009-05-30 01:19:29 +00:00
dyoung
2bc3b9efe1
In config_detach(9), if device deactivation fails with EOPNOTSUPP,
...
don't treat it as an error. This should stop the kernel from
panicking in config_detach(9) when sd(4)/wd(4) detach.
2009-05-29 23:27:08 +00:00
nonaka
84b5216c59
It is avoided that the error occurs when the card attaches it,
...
when wedge is supported.
2009-05-29 22:27:40 +00:00
mrg
05c64062d1
fix up cpu_setfunc() as noted by uwe:
...
- don't call lwp_startup for cpu_setfunc() users
- introduce lwp_setfunc_trampoline instead
- no need to set the "new" lwp for setfunc
2009-05-29 22:06:55 +00:00
rjs
850a493aca
Pass correct argument to q_to_b().
2009-05-29 20:10:39 +00:00
plunky
78fb2cc482
add missing NetBSD RCS ID tags
2009-05-29 18:49:21 +00:00
njoly
d22e6f64ab
Add native to linux siginfo si_status translation, used on i386 and
...
amd64.
2009-05-29 14:19:12 +00:00
rjs
4c494f7678
Make the following changes:
...
struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
2009-05-29 14:15:44 +00:00
rjs
01ff2d54d9
Add some definitions for alternative GPIO assignments.
2009-05-29 14:06:53 +00:00
skrll
1ab05af11c
Missed in previous WIP commit.
2009-05-29 12:33:34 +00:00
njoly
05d61dcbbd
Make getdirentries set a correct block read position for basep
...
argument.
2009-05-29 09:32:41 +00:00
skrll
c45d1c88b1
Tidyup error handling around PDC_PIM.
...
CTASSERT -> KASSERT
2009-05-29 08:44:29 +00:00
skrll
a029156d61
Save screen space and make machine check output easier to read (for me)
2009-05-29 08:39:05 +00:00
skrll
7519f17d74
KNF
2009-05-29 08:37:34 +00:00
skrll
d73b19cf48
Regen.
2009-05-29 06:13:56 +00:00
skrll
2026f95019
Add a bunch of HP stuff. From OpenBSD.
2009-05-29 06:12:31 +00:00
darran
7dadeaa0c7
Add vlan support and hardware offload capabilities to agr.
...
These changes allow vlans to be layered above agr, with the attach
and detach propogated to the member ports in the aggregation.
Note the agr interface must be up before the vlan is attached.
Adds SIOCINITIFADDR support to the wm driver for setting the AF_LINK
address, necessary for agr to be able to set the mac addresses of each
port to the agr address (i.e. so it can receive all intended traffic
at the hardware level).
Adds support for disabling the LACP protocol by setting LINK1 on the agr
interface (e.g. ifconfig agr0 link1).
In consultation with tls@.
2009-05-29 04:57:04 +00:00
yamt
75c4e4fde7
fd_free: reset fd_himap/lomap to make fd_checkmaps comfortable. PR/41487.
2009-05-29 00:10:52 +00:00
yamt
4f22237449
wrap a long line.
2009-05-28 22:17:04 +00:00
dyoung
ec6c5ec835
For the 'tags' target, use the right path to the Atheros HAL sources.
2009-05-28 18:13:46 +00:00
pooka
e7c8d3956a
add a few noteworthy rump developments
2009-05-28 17:35:22 +00:00
njoly
c2d83ad5c5
Redo previous, by simply updating basep earlier, before label.
2009-05-28 15:21:26 +00:00
christos
3b9e5891ba
fix typo (Silas Silva)
2009-05-28 14:57:42 +00:00
njoly
2a614502ab
Make getdirentries(2) correctly fail with EINVAL for an invalid file
...
descriptor (not for a directory), by not updating basep syscall
argument on error.
2009-05-28 14:48:20 +00:00
joerg
a2e586eec3
Allow building with MKCRYPTO=no.
2009-05-28 10:44:29 +00:00
njoly
4c9ac951c7
Fix a crash while trying to read nodes on amd64, reported in PR/41494,
...
by not doing any transfert when offset exceed the actual data length.
From and ok by pooka@.
2009-05-28 10:07:06 +00:00
wiz
53b002f1fb
Use Nx for NetBSD.
2009-05-28 09:41:05 +00:00
wiz
0810d3f67c
Use Dv in more places.
2009-05-28 09:32:17 +00:00