skrll
e0062b97b1
more KNF (remove names from prototypes)
2019-02-07 13:43:44 +00:00
skrll
e70a274822
KNF
2019-02-07 13:37:44 +00:00
skrll
fa0f1df07c
typo in comment
2019-02-07 13:35:17 +00:00
skrll
4740d9862c
Remove (mostly useless) usb_detach_{broadcast,wait} and replace with
...
cv_{broadcast,timedwait}
Really should loop on conditon.
2019-02-07 13:20:41 +00:00
skrll
4a35ae3e32
tsleep -> kpause
2019-02-07 12:37:40 +00:00
skrll
8d9749a1ac
join lines. NFC.
2019-02-07 12:35:43 +00:00
maxv
83ed0b5e52
Improvements:
...
- Emulate the instructions by executing them directly on the host CPU.
This is easier and probably faster than doing it in software
manually.
- Decode SUB from Primary, CMP from Group1, TEST from Group3, and add
associated tests.
- Handle correctly the cases where an instruction that always implicitly
reads the register operand is executed with the mem operand as source
(eg: "orq (%rbx),%rax").
- Fix the MMU handling of 32bit-PAE. Under PAE CR3 is not page-aligned,
so there are extra bits that are valid.
With these changes in place I can boot Windows XP on Qemu+NVMM.
2019-02-07 10:58:45 +00:00
mrg
290f0433dd
regen mknative-gcc and GCC 7 for earm targets: use generic unwind
2019-02-07 10:46:32 +00:00
mrg
bcf3b19768
- don't use arm unwind code for netbsd/earm. conflicts with native unwind.
2019-02-07 10:45:48 +00:00
mrg
d12e291051
- don't just undefine INIT_SECTION_ASM_OP and FINI_SECTION_ASM_OP,
...
define them to "" so that libgcc doesn't define __CTOR_LIST__.
2019-02-07 10:45:17 +00:00
mrg
7b8d5ea7c0
don't use -fnon-call-exceptions on arm. not needed and triggers eh_frame generation.
2019-02-07 10:44:54 +00:00
mlelstv
17b38fa12e
Use unsigned variables for buffer length to avoid compiler warnings.
2019-02-07 10:36:20 +00:00
msaitoh
0e8a4e719a
Swap enumeration of 82578 and 82577. Same as FreeBSD. Chip Model number of
...
82578 is +1 from 82577 but 82577 is functionally newer than 82578 (and 82577's
MII_MODEL(0x05) is greater than 82578's (0x04)). This change doesn't affect any
behavior to if_wm.c (NFCI).
Add comment.
2019-02-07 10:29:53 +00:00
mlelstv
3be3d3e247
be consistent in checking cn_getc return value.
2019-02-07 06:10:29 +00:00
mrg
2b1fdb0e5c
disable stringop-overflow warning for GCC 7. triggers here and seems
...
impossible on current netbsd given it's takling about argv > 2GB, and
this is only for x68k anyway.
2019-02-07 06:01:04 +00:00
mrg
7eece953b5
apply -O0 to a few more files for vax.
2019-02-07 05:28:38 +00:00
mrg
4b4e7cf07c
fix merge botch.
2019-02-07 05:28:12 +00:00
mrg
1143174b7d
apply the previous to all GCC-7 platforms. it affects vax as well.
2019-02-07 05:22:09 +00:00
mrg
3a525b6945
bump ramdisk sizes to cope with GCC 7 bloat.
2019-02-07 04:33:58 +00:00
mrg
11d7172b93
for sh3 and GCC 7 pass -fnon-call-exceptions for udivmoddi4.c.
...
avoids it emitting a call to abort() for an explicit divide by zero.
2019-02-07 04:33:24 +00:00
mrg
18adb326e1
add missing BUS_DMA_PREFETCHABLE
2019-02-07 04:32:54 +00:00
mrg
7bbba5dae1
#if 0 the same code as already done
2019-02-07 04:32:38 +00:00
mrg
8e0b68cd52
add mips ecoff vectors to netbsd-mips64. for objcopy.
2019-02-07 04:32:12 +00:00
mrg
5307f2e6e2
remove stuff provided by generic mips headers
2019-02-07 04:31:49 +00:00
mrg
7ca4b28c3b
mknative-gcc and GCC 7 and sun2.
2019-02-07 04:25:47 +00:00
mrg
3bbb90819b
don't lose the netbsd general tmake_file values for m68010.
2019-02-07 04:12:27 +00:00
msaitoh
a0794d4bdd
Fix a bug that WOL didn't work on some chips since if_wm.c rev. 1.610.
...
Set WUC_APME bit older than PCH. Will fixes PR kern/53945 reported by kardel@.
Tested with my own 82574 card.
2019-02-07 04:03:24 +00:00
christos
3a434d07f3
You need a star :-)
2019-02-07 03:03:00 +00:00
kamil
f51f2525b1
Enable 3 new ptrace(2) tests for SIGILL
...
Add missing code for SIGILL verification and enable new SIGILL tests:
- traceme_crash_ill
- traceme_vfork_crash_ill
- unrelated_tracer_sees_crash_ill
SIGILL is caused by a crash signal and needs special treatement that has
to be asserted to behave correctly.
In the unrelated_tracer_sees_crash* tests add additional check to catch
scenarios when a test dies due to abnormal condition and it's not caught
as the tracer is collected by initproc.
All tests pass on NetBSD/amd64, other ports have temporarily unimplemented
PTRACE_ILLEGAL_ASM.
2019-02-07 00:24:59 +00:00
kamil
f5e781bdd2
Define PTRACE_ILLEGAL_ASM for NetBSD/amd64 in ptrace.h
...
Use ud2 instruction that is guaranteed to raise an invalid instruction
exception (through SIGILL).
On NetBSD and FreeBSD this instruction raises ILL_PRVOPC, on Linux
ILL_ILLOPN. It's not clear which opion is better "Privileged opcode" vs
"Illegal operand", because ud2 doesn't seem to be a privileged operation
and it doesn't take any operand.
Assume in future changes that this opcode will raise ILL_PRVOPC and keep
it purely for testing purposes of the SIGILL crash type.
2019-02-07 00:19:54 +00:00
mrg
1c4493c3a7
fix mips64 GCC 7 builds.
2019-02-07 00:04:56 +00:00
christos
f4a7d93983
kill compat code dependencies.
2019-02-06 23:00:56 +00:00
christos
4f3afb11a6
- Restore indirecting through the data pointer
...
- Don't try to load compat code if the ioctl is not for us.
2019-02-06 23:00:16 +00:00
rin
808d89bd21
Fix sign compare differently; instead of casting from int to unsigned,
...
casting from sizeof (and friends) to int.
Suggested by joerg@.
2019-02-06 22:54:41 +00:00
jmcneill
403eaab34b
Match new sun4i-a10 compat string (allwinner,sun4i-a10-system-control)
2019-02-06 22:50:35 +00:00
rin
824eb2b262
We cannot use DPRINTF(sc, ...) when sc is not initialized.
2019-02-06 22:42:11 +00:00
oster
6b6fd5e205
Correct printed IOCTL name that was incorrect since rev 1.5.
2019-02-06 22:38:10 +00:00
mrg
6a1a003174
compare pointers with NULL not nul.
2019-02-06 21:42:46 +00:00
martin
fbb0a702e6
Provide an accessor for the menu description structure by manu identifier.
...
Usefull for dynamic menus where you want to change details on the
fly "from the outside" (i.e. while not in one of the callback functions).
2019-02-06 20:08:15 +00:00
christos
a27520238a
use sizeof() properly (gcc-7)
2019-02-06 17:56:57 +00:00
christos
b24f9b8691
quit is dead
2019-02-06 17:21:51 +00:00
christos
4142dc03cc
fix stack protector build
2019-02-06 16:57:30 +00:00
christos
fe07d6d389
done returns if !dontjump
2019-02-06 15:43:13 +00:00
joerg
abf7fd5db8
movzx is not AT&T syntax, but some bastard version of Intel syntax.
...
Switch to the equivalent mnenomic.
2019-02-06 15:42:31 +00:00
christos
cd4e574f69
fix half edited line.
2019-02-06 15:39:41 +00:00
skrll
19fb4430f3
Don't VPRINTF until we have stack for our CPU setup properly
2019-02-06 14:12:25 +00:00
rin
3a204f953a
Make cu(1) and tip(1) recognize newline (^J) as end-of-line.
...
Now, tilde (~) after newline works as escape character as in ssh(1).
No objections when proposed on tech-userland.
2019-02-06 14:08:50 +00:00
skrll
9babae61f6
Make sure the start stacks are covered by the new translation tables.
...
They *might* get placed after ARM_BOOTSTRAP_LxPT by the linker.
AP startup uses VA sp in cpu_init_secondary_processor
2019-02-06 13:28:08 +00:00
skrll
4fea08b7e6
Misc style
2019-02-06 13:22:54 +00:00
skrll
e5945db3b9
Slight update to comment and KNF it while I'm here
2019-02-06 13:20:29 +00:00