Commit Graph

267084 Commits

Author SHA1 Message Date
msaitoh 2a1efa7be4 KNF. No functional change. 2019-04-17 09:21:57 +00:00
mrg d1429afe98 fake mknative, mostly enough to build real for mknative. 2019-04-17 08:56:10 +00:00
mrg 81f4fdd260 fix MKCOMPAT=no builds. 2019-04-17 07:55:33 +00:00
msaitoh 6fd86da20b Remove unused inclusion. 2019-04-17 07:47:56 +00:00
mrg 261a15423e also want s_nexttoward.c on riscv. now tests/lib/libm links. 2019-04-17 07:45:23 +00:00
mrg cee1dacaf3 add missing atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c. 2019-04-17 07:40:34 +00:00
mrg 5a9be18c46 add missing aliases for _atomic_cas_32_ni and atomic_cas_uint_ni. 2019-04-17 07:35:38 +00:00
msaitoh 9cbcc61c49 Tabify. No functional change. 2019-04-17 07:04:03 +00:00
nonaka 51665237fa efiboot: Don't panic when BLOCK_IO_PROTOCOL is not found.
It has been reported that there is a machine where BLOCK_IO_PROTOCOL
can not be found when network boot without disk.
2019-04-17 06:50:34 +00:00
ozaki-r 8aed7a99af Don't check pserialize_not_in_read_section after panic
It can cause a false positive assertion failure.
2019-04-17 02:29:43 +00:00
sevan 8976de3fbf Bogus number police 2019-04-16 23:14:34 +00:00
mrg 3a139f9940 enable EGL and glamor. partly from maya@.
for x86 and evbarm:
- install headers and libEGL
- install xorg-server glamoregl component
- link xorg drivers against gbm/egl

bonus fix:
- fix some wrongly marked compatx11file files

build tested on shark, sgimips, evbarm64-el, amd64 and i386.
run tested on radeon, intel and nvidia on amd64, including
'modesetting' driver on amd64.  however, my systems disable
it due to llvmpipe so i'm not sure what is happening.
2019-04-16 21:21:51 +00:00
mrg 1ce78da3f1 enable EGL and glamor. partly from maya@.
for x86 and evbarm:
- install headers and libEGL
- install xorg-server glamoregl component
- link xorg drivers against gbm/egl

bonus fix:
- fix some wrongly marked compatx11file files


build tested on shark, sgimips, evbarm64-el, amd64 and i386.
run tested on radeon, intel and nvidia on amd64, including
'modesetting' driver on amd64.  however, my systems disable
it due to llvmpipe so i'm not sure what is happening.
2019-04-16 21:20:50 +00:00
skrll 99b9a55c9a If arg3 is zero then fill it with the value of 'end'. Helps booting
with qemu.
2019-04-16 20:33:36 +00:00
sevan d93362cffd s/evbarm64/evbarm 2019-04-16 19:38:14 +00:00
sevan c3cb2c5dab Tag evbarm related changes separately to separate out the entries into the
specific section on the generated webpage.
Others the entries show up in the section of each arm based port.
2019-04-16 18:31:22 +00:00
sevan 728c3186ef typo - via leot 2019-04-16 17:50:46 +00:00
sevan 800ded0627 Add manual categories to generate links to man.n.o on the webpage 2019-04-16 17:41:17 +00:00
christos d08bc8783e Ran out of patience playing stack protector bingo. 2019-04-16 17:29:09 +00:00
sevan 50127e8533 one tab to start an item, and two tabs to indent the content 2019-04-16 16:01:11 +00:00
skrll 4cc5b60768 Trailing whitespace 2019-04-16 12:22:13 +00:00
martin 3e4cdea525 Add PTRACE_ILLEGAL_ASM 2019-04-16 11:38:21 +00:00
sevan 92b94ad4f3 Indent to improve readability.
Add a description for log event.
2019-04-16 10:52:28 +00:00
mrg 8c07fa7cf5 fix various problems i've seen where cv_*wait*() return ERESTART,
which is -3 in netbsd, which we have mapped linux ERESTARTSYS to.

this has a problem because linux code often returns errors and
pointers in the same value, and pointer values between -4095 and
-1 are considered as error returns, but -3 ends up as 3 and thus
is not considered an error, and mayhem ensues.

with this in place my kabylake system seems actually stable, i
have not triggered any of my prior issues in almost 4 weeks now.


Taylor asked me to write up a description and then wrote most of
the text below for me :-)


In Linux code, we always work with ERESTARTSYS so the code meaning
start over is a positive NetBSD errno safe for PTR_ERR/ERR_PTR.
To achieve this:
1. adapt all cv_waits that return to Linux so they map ERESTART to
   ERESTARTSYS, and
2. adapt all returns to userland so they convert ERESTARTSYS to
   ERESTART.
Leave EINTR and all other error codes alone.
2019-04-16 10:00:04 +00:00
mrg 3e8847491c fix -I paths for powerpc*. convert amd64 specific hack.
we've been building dp-bit.c and fp-bit.c backwards, but as they
use the same input source, they just had opposite objects and
the right total was provided.  oops.
2019-04-16 08:08:18 +00:00
mrg 134005bc02 revert previously. we want riscv32 to have 128 bit long double...
shall fix the compiler instead.
2019-04-16 08:04:23 +00:00
mrg a9f3ed48cb mknative-gcc for riscv64. 2019-04-16 08:01:36 +00:00
mrg 1b3d5424d9 list a bunch of soft-fp as present in the current risc64 libgcc defs.mk.
this makes mknative-gcc work without breaking maya's manual work.
2019-04-16 07:50:05 +00:00
maya 96208257a8 RISC-V ELF psABI says ILP32 also defaults to 128bit long double. 2019-04-16 07:40:02 +00:00
mrg 04325e9757 regen mknative-gcc for GCC 7 and ppc64. libgcc still has problems. 2019-04-16 07:37:56 +00:00
mrg b55068e0f5 avoid differences to linux64.h that aren't needed.
merge the rs6000_abi_name check for netbsd into the linux/freebsd section.
2019-04-16 07:36:55 +00:00
mrg 292122e2f9 no clone() on netbsd. 2019-04-16 07:34:54 +00:00
mrg 9840b30120 risc32 doesn't want long double specific versions 2019-04-16 07:32:30 +00:00
maya c968284ef1 We're now using gcc netbsd-stdint.h instead of our own definitions, so
match those with the format types

XXX wrong for 32bit.
XXX unclear if changing the fast types was the right call
2019-04-16 07:08:52 +00:00
skrll 5d316210cb Fix a comment 2019-04-16 07:08:46 +00:00
msaitoh 9fde34d208 It's not required (and can't do) to convert OSIOCSIFMEDIA in ifmedia_ioct()
because the conversiosn is done in doifioctl().
2019-04-16 06:48:33 +00:00
skrll a7203f5325 Re-arrange dino_softc members to improve alignment 2019-04-16 06:45:04 +00:00
skrll 386e2d9145 dino depends on gedoens 2019-04-16 06:44:17 +00:00
mrg b543e834b1 regen for mknative-binutils for riscv64. 2019-04-16 06:19:54 +00:00
skrll 8f59ef4ba9 Whitespace 2019-04-16 06:13:53 +00:00
msaitoh d6117c1651 Rename ifreqo2n() and ifreqo2n() to IFREQO2N_43() and IFREQN2O_43():
- ifreqo2n() and ifreqn2o() are for COMPAT_43, so add _43 to the name.
 - Uppercase to make it clear those are macros.
2019-04-16 04:31:42 +00:00
msaitoh 01277d2430 The path of SOICSIFMEDA or TAPGIFNAME calls are as follows:
doifioctl()

    pre-convert (if_cvtcmd_43_hook & ifreqo2n)

    (*ifp->if_ioctl)(ifp, cmd, data);

    post-convert (ifreqn2o)

so it's not required to check OSIOCSIFMEDIA and OTAPGIFNAME in if_tap.c.
Those two command is converted to new command in if_cvtcmd_43_hook and
always new commands are seen in tap_ioctl().

OK'd by pgoyette.
2019-04-16 04:26:02 +00:00
mrg 1532ab65e0 fix merge botch - remove duplicated case statement (not in configure) 2019-04-16 02:10:09 +00:00
kamil ac211f1cad Sync gcc.old GetPcSpBp() with GCC9 (and recent LLVM)
Unify all NetBSD ports in a single ifdef.
2019-04-16 01:44:07 +00:00
kamil ea81bf5e10 Sync GetPcSpBp() with GCC9 (and recent LLVM)
Unify all NetBSD ports in a single ifdef.
2019-04-16 01:40:16 +00:00
martin 7a391c2634 mq_send1: fix argument validation and reject too large lengths early.
Discovered by Andy Nguyen.
2019-04-16 01:02:41 +00:00
christos 6851d4c465 Re-arrange the ufetchstore tests to look like the other ones. 2019-04-15 23:41:23 +00:00
sevan f44eb4a6b0 spelling 2019-04-15 23:16:59 +00:00
sevan 0812969b2b npf_boot and /etc/defaults/npf.boot.conf 2019-04-15 23:15:52 +00:00
sevan d249bc88a9 Provide a simpler config for a host which permits any traffic from the host out,
and small subset of traffic in (DHCP (v4 and v6), All ICMPv6, ICMP echo
requests, traceroute, mDNS).
2019-04-15 22:38:48 +00:00