bouyer
0c15c4be25
Add a fix-loongson2f-btb option to gas, from OpenBSD.
...
This works around a bug in the branch prediction logic of the
CPU which can cause a hard hang. The existing fix-loongson2f-jump
works around the same bug, but by 'fixing' the jump target to be within the
same 256MB region as the kernel. This will (silently) cause a jump
to the wrong address if the jump is intentionally to some other
region (e.g. a call to pmon).
fix-loongson2f-btb instead works around the issue by adding an explicit flush
of the branch target buffer (via a write to a cop0 register) before every
jump register instruction.
2011-08-27 13:19:39 +00:00
bouyer
ad05e3fb85
Loongson2f support:
...
- make the 'struct bonito_config' const, so that it can be in kernel
text instead of data.
- Add a bc_attach_hook to struct bonito_config, to be used as pc_attach_hook
if not NULL.
- Add some LS2-specific register defines (LS2f uses a modified bonito64).
2011-08-27 12:59:16 +00:00
joerg
aa6d7bb577
Annotate dead functions
2011-08-27 12:55:09 +00:00
bouyer
efd9548b67
Split gcscpcib into MI part, and MD pci attachement which is also in
...
charge of attaching the MD pcib device.
Will be used by the upcoming evbmips loongson support.
2011-08-27 12:47:49 +00:00
christos
93e326680f
use c99 struct initializers
2011-08-27 09:32:11 +00:00
mbalmer
2b9c7d3182
Enable some gpio devices.
2011-08-27 09:28:55 +00:00
christos
262ad41ded
Add an optional pglist argument to uvm_obj_wirepages, to be
...
filled with the list of pages that were wired.
2011-08-27 09:11:52 +00:00
christos
0aa57dbb94
add new arp logging sysctls
2011-08-27 09:06:58 +00:00
christos
4460dc9ac3
Add 3 logging sysctls for arp from freebsd:
...
1. log_movements: do you want to log the arp overwritten message or not?
2. log_wrong_iface: do you want to log when an arp arrives at the wrong
interface?
3. log_permanent_modify: do you want to log when an arp message attempts
to overwrite a static entry?
I did not call the sysctls log_arp like FreeBSD does, because we already
have an arp sysctl level. The default is on for all three of them.
2011-08-27 09:05:54 +00:00
dyoung
9943264696
Build and install ppath(3), property-list paths library.
2011-08-26 21:22:07 +00:00
jmcneill
1501db31c9
defflag DEBUG_EXEC
2011-08-26 19:07:13 +00:00
mbalmer
edd34c0a58
u_int32_t -> uin32_t.
2011-08-26 15:00:07 +00:00
mbalmer
de6eed829e
Add a pmf resume function to put the hardware in a defined state after
...
resume. Problem found by jmcneill@.
2011-08-26 13:29:56 +00:00
jmcneill
6051688a5b
Fix a typo in r1.243: test for STACKALIGN not STACKLALIGN:
...
"If STACKALIGN is defined, use it instead of ALIGN. Some arches need a
stack more aligned that ALIGN will give."
2011-08-26 12:52:01 +00:00
jmcneill
e3bc158053
pmap_remove_all: change panic to warning
2011-08-26 11:16:50 +00:00
jmcneill
e81c3e4b4c
define __USE_TOPDOWN_VM
2011-08-26 11:01:32 +00:00
mbalmer
d8bf2a4e69
Remove one of the copyrights, it is the same person. Remove variable name
...
in prototype.
2011-08-26 10:30:47 +00:00
reinoud
a6fda0ea96
Provide a better fix for the checks
2011-08-26 09:29:16 +00:00
reinoud
1bcd23da1f
Revert.
2011-08-26 09:26:14 +00:00
reinoud
a6debd8fb7
Change aprint_verbose() to a normal printf() surrounded by #ifdef DIAGNOSTIC
2011-08-26 09:13:08 +00:00
reinoud
9f6b65f0ad
Add checks for architectures that need a check for VM_MIN_ADDRESS
2011-08-26 09:10:41 +00:00
reinoud
e5fe2f455a
Fix check for VM_MIN_ADDRESS since it doesn't need to be a constant
2011-08-26 09:07:48 +00:00
tron
d504399e17
Avoid non-literal format strings.
2011-08-26 09:01:07 +00:00
plunky
9c77eacafa
add some info re use of Modem and Network ports
2011-08-26 07:56:00 +00:00
christos
012b2b9c3c
fix compilation for VM_MIN_ADDRESS == 0
2011-08-26 06:56:11 +00:00
dholland
ae56ae8f3f
Use __dead and __printflike instead of __attribute__.
2011-08-26 06:18:16 +00:00
joerg
ed20f4b6ec
pw_error is documented to be dead
2011-08-26 01:48:39 +00:00
joerg
be47d2fc97
__assert and __assert13 are dead
2011-08-26 01:10:49 +00:00
reinoud
336984324e
Move debug -> verbose
2011-08-25 19:54:30 +00:00
jakllsch
3c644b8a5a
Bring mount_psshfs user/host/path argument processing in line with sftp(1).
2011-08-25 19:49:05 +00:00
reinoud
f6a2add8fe
On a verbose kernel boot show why executables are denied due to their start
...
adresses. This will hardly ever occure in real-life.
2011-08-25 19:14:07 +00:00
dyoung
199cc6c15a
Add tests for ppath(3).
...
TBD: hook into build and update set lists.
2011-08-25 19:09:46 +00:00
reinoud
6d2b20cf95
When this debug printf is enabled, please also tell WHAT address one is using
...
for read/write.
2011-08-25 19:08:35 +00:00
reinoud
18218b2d70
Cleanup debug messages in copy.c
2011-08-25 19:07:45 +00:00
reinoud
ecc186f568
Implement pmap_deactivate() and most importantly, share changes! i.e. it
...
should map in the SAME page and not a COW clone of the origional.
2011-08-25 19:06:58 +00:00
reinoud
45a36452c5
A trap is now allways asked for RW access... that needs to be fixed but thats
...
later care.
2011-08-25 19:06:03 +00:00
hannken
92eca745a6
t_fd/sigio: pass test if we receive at least one SIGIO signal.
...
While a real kernel collects these signals until the connect() returns and
then delivers one signal rump delivers every signal so we get more than one.
Ok: Antti Kantee <pooka@netbsd.org>
2011-08-25 18:46:01 +00:00
joerg
d24dcc0dc7
Uses non-literal format strings
2011-08-25 18:20:22 +00:00
joerg
ef4c662073
-Wno-format-nonliteral for msg_defs.c
2011-08-25 17:39:58 +00:00
joerg
cd277335a0
Move -Wno-comment for clang to CPPFLAGS, so that mkdep runs are silent.
2011-08-25 17:05:45 +00:00
christos
8da9796673
fix non-literal format strings
2011-08-25 17:00:55 +00:00
christos
d30a63af7f
fix non-literal format string
2011-08-25 16:54:58 +00:00
joerg
1c874f86e1
Use of non-literal format string
2011-08-25 16:53:25 +00:00
christos
1598a84d98
fix non-literal format string
2011-08-25 16:51:48 +00:00
joerg
9c4f17f60e
Use of non-literal format strings
2011-08-25 16:47:20 +00:00
christos
572b078924
document non-literal format string use for many md files
2011-08-25 16:47:16 +00:00
joerg
86490d7b50
Avoid non-literal format strings by replacing asprintf with putc.
2011-08-25 16:41:51 +00:00
joerg
0855702cc7
Use of non-literal format strings
2011-08-25 16:29:39 +00:00
joerg
21f7e41a91
Use of non-literal format string.
2011-08-25 16:22:43 +00:00
joerg
45e9b5a831
Avoid using non-literal format strings. Fix verbose option -- va_list is
...
passed by reference and vprintf would have processed all arguments
already.
2011-08-25 16:19:23 +00:00