maxv
2b321a2d23
Remove a few #if 0s, and explain what we are doing on PAE: the last two PAs
...
are entered in reversed order.
2017-01-06 08:32:26 +00:00
palle
de85b4614f
sun4v: TRAP_SETUP() updated to set mmu context id properly for both sun4v and sun4u platforms. Verified using qemu for both sun4u and sun4v systems
2017-01-05 20:37:06 +00:00
msaitoh
01159c64ed
Update the dmamp argument only when the allocation succeeded.
2017-01-05 09:08:44 +00:00
palle
474386fffd
sun4v: make debugging kernel bringup a bit easier by using the slowtrap code path for currently unhandled trap level 1 trap entries 0x00-0x23 and 0x28-0x30
2017-01-04 20:19:29 +00:00
skrll
0447572560
Do some more error checking.
...
PR/51551
2017-01-03 12:37:08 +00:00
skrll
6f64034815
Fix boot on Gumstix Verdex boards.
...
Reported by smesgr on port-arm
2017-01-02 21:46:59 +00:00
sevan
34d20af6e2
Enable axen, cdce, run, upgt, urtw, urtwn, uchcom, uslsa, u3ginit, u3g, ugensa in the GENERIC kernel.
...
Adjust some comments to match those of sys/arch/i386/conf/GENERIC
2017-01-02 03:22:30 +00:00
christos
374cbfdd94
Add commented out TCP_SIGNATURE
2016-12-31 15:41:39 +00:00
christos
19a4314eb2
- make fpreg{32,64} actually members of fsstate{32,64}.
...
- allocate fpstate if we did not have one and we need to write it.
2016-12-30 18:30:19 +00:00
christos
81784756dc
- allocate state if we did not have any in fpregs
...
- make fpstate explicitly start with fpregs for better type checking
- use c11 initializers
2016-12-30 17:54:43 +00:00
rin
4b1563e174
catch up with physmem type change (in the same manner as sdp24xx_machdep.c)
2016-12-30 07:35:14 +00:00
palle
b6230d7a65
sun4v: make debugging kernel bringup a bit easier by using the slowtrap code path for currently unhandled trap level 1 trap entries 0x32-0x7f
2016-12-29 20:59:31 +00:00
skrll
3ea5cf87f0
Bump image size
2016-12-29 20:51:26 +00:00
rin
653055d5bf
define UVM_PHYSSEG_LEGACY for uvm_physseg_set_avail_start
...
ok cherry
2016-12-29 12:54:10 +00:00
tsutsui
240be73e18
WIP "G1-ATA" IDE HDD support. Not enabled by default.
...
Demonstrated on NetBSD booth at Open Source Conference 2016 Tokyo Fall
and Kansai Open Source 2016:
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/09/msg000721.html
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/16/msg000722.html
See my port-dreamcast@ post for more details:
http://mail-index.netbsd.org/port-dreamcast/2016/12/18/msg000295.html
2016-12-29 11:49:05 +00:00
martin
48fa3befb2
Rename the "flush" macro to "sparc_flush_icache", the former is way too
...
generic for a macro name.
2016-12-28 19:16:25 +00:00
rin
011775c944
PR port-powerpc/51368: powerpc FPU emulation fails for single precision
...
floating point arithmetic
For single precision instruction, calculate first in double precision,
and then round it. With this fix, single precision arithmetic gets sane
on ibm4xx and booke.
Taken from FreeBSD commit r258250:
https://svnweb.freebsd.org/base?view=revision&revision=258250
Ok matt and simonb.
2016-12-28 10:52:30 +00:00
rin
0b5b7fff16
- add missing default from FreeBSD
...
- remove duplicate panic pointed out by matt
2016-12-28 10:30:04 +00:00
rin
49eb5e173f
PR port-powerpc/51367: kernel panic for powerpc/ibm4xx with "option DDB"
...
Stop using ddbstk/ipkdbstk to make nested traps possible, which avoids
kernel panics reported in the PR.
Suggested and approved by matt.
2016-12-28 09:36:02 +00:00
ozaki-r
bf5ce79b5b
Protect ec_multi* with mutex
...
The data can be accessed from sysctl, ioctl, interface watchdog
(if_slowtimo) and interrupt handlers. We need to protect the data against
parallel accesses from them.
Currently the mutex is applied to some drivers, we need to apply it to all
drivers in the future.
Note that the mutex is adaptive one for ease of implementation but some
drivers access the data in interrupt context so we cannot apply the mutex
to every drivers as is. We have two options: one is to replace the mutex
with a spin one, which requires some additional works (see
ether_multicast_sysctl), and the other is to modify the drivers to access
the data not in interrupt context somehow.
2016-12-28 07:32:16 +00:00
mrg
8732a72a33
enable a few things that make sense for a router-style box:
...
BPFJIT, SJIT, bpf, ppp, pppoe, tun, tap, vlan, and bridge.
add a commented out OCTEON_MEMSIZE setting for users who see
that problem.
2016-12-28 03:49:16 +00:00
mrg
1bb3df50d2
add an OCTEON_MEMSIZE option to override the uboot provided memory
...
size. limiting this to 256 avoids an annoying uvm freelist problem on
the 512mb erlite, partly described here:
http://mail-index.netbsd.org/tech-kern/2016/12/20/msg021358.html
2016-12-28 03:27:08 +00:00
flxd
56ced6935d
Fix TC adaptor's CSR address.
...
Add "PMAD" LANCE TC Ethernet.
2016-12-27 08:56:00 +00:00
hikaru
e88860b723
Use the correct number of multicast addrs
2016-12-27 03:09:55 +00:00
pgoyette
321ebd948b
Add BIOHIST (and belatedly, UVMHIST) to the ALL kernels for i386 and amd64.
...
XXX Perhaps it should be added to others as well? Perhaps just as comments?
2016-12-27 01:11:52 +00:00
rin
879c3fe377
Remove wrong comment which was copy-and-pasted from somewhere.
2016-12-26 21:54:00 +00:00
rin
b72e1d6d7b
Assert that the size of a trap handler does not exceed its room.
...
XXX
The debug exception is critical for ibm4xx. Since rev 1.24, we use the critical
trap hundler for it. Sorry for the wrong commit log for rev 1.24.
2016-12-26 21:25:08 +00:00
rin
0000e45fe1
No need to have same trap handlers in trap_subr.S.
...
No functional changes.
2016-12-26 20:28:00 +00:00
rin
4a63f69046
We cannot have DDB and IPKDB at the same time.
2016-12-26 20:16:29 +00:00
scole
90ac05fa24
Fix some comments and add new comment explaining probable bug in cpu_switchto(). Not sure of a fix for it yet
2016-12-26 19:46:59 +00:00
cherry
5ce70471e3
xen dom0 SMP is now bootable again.
...
add the 'options MULTIPROCESSOR' in respective configs, but mark them
experimental - and thus disabled by default.
2016-12-26 18:04:31 +00:00
cherry
9db6d2188c
the i386 and amd64 boot time msgbuf init code is nearly identical.
...
Unify them into x86/x86_machdep.c:init_x86_msgbuf()
Boot tested on GENERIC (i386, amd64), XEN3_DOM0 (amd64)
2016-12-26 17:54:06 +00:00
rjs
d2b805b7ce
Remove more trailing whitespace.
2016-12-26 16:20:17 +00:00
cherry
66362f2cd9
Make the msgbuf initialisation track closer to the original
...
pre-uvm_physseg.h one.
To see the exact changes with the original, line for line, do:
cvs rdiff -u -r1.772 -r1.775 src/sys/arch/i386/i386/machdep.c
2016-12-26 15:47:48 +00:00
cherry
c2337c4f0f
remove spurious printf()
2016-12-26 13:55:13 +00:00
rjs
024e0031c7
Remove trailing whitespace, no functional change.
2016-12-26 13:28:59 +00:00
cherry
808dc02031
Make the msgbuf initialisation track closer to the original
...
pre-uvm_physseg.h one.
To see the exact changes with the original, line for line, do:
cvs diff -u -r 1.241 sys/arch/amd64/amd64/machdep.c
2016-12-26 12:54:42 +00:00
cherry
85a999caa3
In the MP case,
...
do not attempt to pmap_tlb_shootdown() after a pmap_kenter_ma() during
boot. pmap_tlb_shootdown() assumes post boot. Instead invalidate the
entry on the local CPU only.
XXX: to DTRT, probably this assumption needs re-examination.
XXX: The tradeoff is a (predicted) single word size comparison
penalty, so perhaps a decision needs performance stats.
2016-12-26 08:53:11 +00:00
skrll
fb73e3c1d6
Hold the interlock before cv_broadcast as per condvar(9)
2016-12-26 08:16:28 +00:00
christos
16a824ca6b
fix printf format
2016-12-25 04:35:30 +00:00
cherry
dac5688b8d
Conform API use of uvm_hotplug(9) to documented behaviour:
...
When testing for an invalid uvm_physseg_t,
compare with UVM_PHYSSEG_TYPE_INVALID which is implementation agnostic.
2016-12-24 19:02:16 +00:00
cherry
2e9cf2b5f9
Tell mpc85xx about uvm_hotplug(9)
...
Should fix the evbppc build breakage.
2016-12-24 18:34:31 +00:00
cherry
3631b5f030
introduce evbppc pmap to the uvm_hotplug(9) API
...
Should fix build.
2016-12-24 18:07:31 +00:00
mlelstv
4eff3f7ab8
another physmem type change
2016-12-24 17:36:59 +00:00
cherry
dfb8e9c033
Use the correct page frame number to steal pages during boot.
...
Fixes the related sh3 kernel build breakage.
2016-12-24 17:18:00 +00:00
cherry
7a43b153e5
pass the bank handle to uvm_physseg_get_avail_start();
...
Should fix the acorn26 kernel build.
2016-12-24 17:11:31 +00:00
skrll
fac99052c8
Fix VERBOSE_INIT_ARM build
2016-12-24 09:19:23 +00:00
scole
3ac5d95c18
make kernel compilable after recent uvm changes
2016-12-23 17:26:43 +00:00
cherry
b94dbe7b54
balloon(4) can now use uvm_hotplug(9)
...
Do this.
2016-12-23 17:01:10 +00:00
maya
31a42b23da
add SCTP_DEBUG to ALL kernels
2016-12-23 11:27:10 +00:00