Commit Graph

277814 Commits

Author SHA1 Message Date
rin
d1e359b744 Fix do_blocklist:
- Respect destination directory specified by -d option.
- Accept check and fix options. For the former, do not modify anything as
  users normally expect.
2020-06-22 06:55:41 +00:00
rin
bda9e4fdad Turn on _UC_TLSBASE for sure in the same manner as other ports.
No functional changes since that flag is turned on via getcontext(2).
2020-06-22 06:49:04 +00:00
rin
04db2721f7 Fix previous; hide userland ABI details for kernel as suggested by joerg:
http://mail-index.netbsd.org/source-changes-d/2020/06/21/msg012745.html

- Revive __lwp_settcb(), and call _lwp_setprivate(2) from it.

- Keep l_private opaque pointer for kernel; store raw value of %r2 in it.
  In the previous commit message, I wrote,

http://mail-index.netbsd.org/source-changes/2020/06/21/msg118524.html

> - Make sure that, like other ports, l_private represents address of tcb,
>   not biased one as in %r2.

  but, it turned out to be wrong. mips stores a biased address, at least.
  It is userland responsibility to interpret returned values from
  lwp_getprivate(2).
2020-06-22 05:34:57 +00:00
rin
e600613d80 Add missing ./usr/share/installboot/evbmips. 2020-06-22 03:16:29 +00:00
rin
09b1c677c0 Add missing Makefile. 2020-06-22 03:15:48 +00:00
simonb
13d5e9b5fa Remove unused snprintb format strings. 2020-06-22 03:05:07 +00:00
rin
27ca840a21 Turn trigger_fpe() back to integer division by zero for a while
until QEMU bug #1668041 is fixed:

https://bugs.launchpad.net/qemu/+bug/1668041

by which floating-point division by zero is not trapped correctly
both on amd64 and i386.

Skip *_crash_fpe tests on powerpc, where integer division by zero
is never trapped.
2020-06-22 02:51:06 +00:00
simonb
09773f5b6c Remove unmaintained CNMAC_DEBUG debug code. 2020-06-22 02:26:19 +00:00
lukem
c72411c4b5 bsd.dep.mk: revert 1.85 (for now)
Revert my recent 1.85 revision that fixed "make tags".  It causes too
much build breakage elsewhere in the tree that needs to be resolved first.

Issues include:
- Directories using TESTS_CXX with .cpp and .cxx extension instead of the
  default .cc extension (see bsd.prog.mk). Most of these have been fixed.
- external/gpl3/gcc build of .cc files. (No idea what's wrong there).
2020-06-22 01:04:26 +00:00
jmcneill
df9efd08f1 evbarm: Added boot.cfg support to efiboot 2020-06-21 23:53:59 +00:00
jmcneill
2b6ae1af1d Add boot.cfg support. 2020-06-21 23:53:26 +00:00
chs
b906de5d01 avoid the use of UVM internals in the iscsi ioctl code.
copyin/out are fine in this context.
2020-06-21 23:08:16 +00:00
christos
f67c3d4d13 Revert to the upstream version 2020-06-21 22:17:35 +00:00
christos
89e0a7cfa4 Revert to the upstream version, there are no more warnings 2020-06-21 22:16:53 +00:00
christos
2247b70a62 regen 2020-06-21 22:16:16 +00:00
christos
839917e6b8 Re-enable the v9 testing and assembly 2020-06-21 22:16:08 +00:00
jmcneill
62a169693c If calling d_minphys on the parent disk device, make sure we use the
parent disk device's dev_t. Fixes zfs on wedges on ld(4).

XXX pullup-9
2020-06-21 21:29:11 +00:00
thorpej
8025a6eb14 Add additional sunxi boards:
- libretech,all-h3-cc-h2-plus
- libretech,all-h3-cc-h3
- libretech,all-h3-cc-h5
2020-06-21 19:39:11 +00:00
jmcneill
d9b7e5ed4b evbarm: Add support for loading modules with the bootloader. 2020-06-21 17:26:15 +00:00
jmcneill
7df551d1f1 Add support for installing modules that were loaded by the bootloader. 2020-06-21 17:25:03 +00:00
jmcneill
8a3f4052df Add module support. 2020-06-21 17:24:26 +00:00
thorpej
696896edc9 Add evbmips support for u-boot handling. 2020-06-21 17:17:01 +00:00
thorpej
2d473240cd Add evbmips installboot board data. 2020-06-21 17:15:51 +00:00
bouyer
524585b281 On amd64, Xen PV calls syscalls and traps with events enabled.
Disable events on entry to be safe.
It should have been mostly safe for most cases, but for FPU traps
we need to reload the FPU state if we got interrupted at trap entry.

Hopefully fixes:
panic: kernel diagnostic assertion "curlwp->l_md.md_flags & MDL_FPU_IN_CPU" failed: file "/home/source/ab/HEAD/src/sys/arch/x86/x86/fpu.c", line 524

when running tests.
2020-06-21 16:57:18 +00:00
thorpej
10311849cd Add several boards:
- terasic,de0-atlas
- asus,rk3288-tinker
- nvidia,p3450-0000
- ti,omap4-panda
- ti,omap4-panda-es
- olimex,a20-olinuxino-lime2
- olimex,a20-olinuxino-lime2-emmc
- olimex,a20-olinuxino-micro
- olimex,a20-olinuxino-micro-emmc
- digilent,zynq-zybo
- digilent,zynq-zybo-z7

Update the nvidia,p2771-0000 description to match recent DTS.

Fix u-boot package name for cubietech,cubietruck-plus.
2020-06-21 16:53:57 +00:00
bouyer
c1ac8a4142 Fix comment 2020-06-21 16:53:37 +00:00
skrll
369437944b Remove all paltforms 2020-06-21 16:33:34 +00:00
fcambus
97327c3fb1 Update Spleen kernel fonts to version 1.7.1, bringing the following
improvements:

- Remove strain pixel on the '5' digit (5x8 version)
- Improve the Esszet character (8x16, 12x24, 16x32, and 32x64 versions)
2020-06-21 15:48:17 +00:00
roy
f236a33b97 libterminfo: cast to uint16/32_t before conversion to preserve negativity
Otherwise the ABSENT_NUMERIC(-1) or CANCELLED_NUMERIC(-2) will be converted
incorrectly to size_t and then down to uint16/32_t.
Picked up by DIAGNOSTIC builds.

Thanks to Michael Forney for the fix for PR lib/52293.
2020-06-21 15:05:23 +00:00
lukem
9afb92341a kyua-cli: avoid warning about deprecated auto_ptr 2020-06-21 14:26:16 +00:00
lukem
ac33d8c71a lutok; fix build of c++ tests 2020-06-21 14:12:50 +00:00
lukem
456534299b lutok; fix strncpy -Wstringop-truncation warning 2020-06-21 14:11:54 +00:00
lukem
894e537a2e fix build of atf .cpp files 2020-06-21 13:59:56 +00:00
lukem
caf254b942 document PROGS and PROGS_CXX, and default c++ SRCS 2020-06-21 13:29:05 +00:00
simonb
4812f381d8 Fix tyop. 2020-06-21 08:02:43 +00:00
skrll
924ff83bcc Update to new proplib api 2020-06-21 07:17:25 +00:00
skrll
2ed30f4eef Use howmany(). NFCI. 2020-06-21 07:14:15 +00:00
lukem
a11399dd2d fix build of h_thread_local_dtor.cpp 2020-06-21 07:06:05 +00:00
lukem
a41884d4ca fix build of t_cabsl from t_cabsl.cxx
t_cabsl source is in t_cabsl.cxx not t_cabsl.cc - the latter
is what bsd.tests.mk defaults to.

This only broke after my commit of share/mk/bsd.dep.mk rev 1.85
but I don't know why it didn't cause a problem previously.
2020-06-21 06:58:16 +00:00
lukem
6445c9ec5a bsd.dep.mk: fix "make tags"
Fix "make tags" to actually build a tags file:
- Use !commands() instead of !target(), so that the rule actually works
- Write to ${.OBJDIR}/tags for read-only source (don't know why ${.TARGET}
  isn't sufficient).
- Only match *.[cly] from ${.ALLSRCS} - just excluding *.h causes failures
  because of ${targ}: subdir-${targ} in bsd.subdir.mk.

Thanks to uwe@ for assistance.
2020-06-21 03:39:21 +00:00
rin
62cc2171b1 Fix inconsistency b/w kernel and userland recognitions of TLS, as well as
inconsistency whether it is biased or not in kernel.

- Obsolete __lwp_settcb() in order to let kernel know new TLS address via
  _lwp_setprivate(2). Alternatively, we can call _lwp_setprivate(2) within
  __lwp_settcb() like mips, but it is just double handling; we adjust %r2
  appropriately in _lwp_setprivate(2) via cpu_lwp_setprivate().

- Make sure that, like other ports, l_private represents address of tcb,
  not biased one as in %r2. This guarantees that the returned values from
  _lwp_getprivate(2) and __lwp_getprivate_fast() are always same. Also,
  we can obsolete PTRACE_LWP_GETPRIVATE() macro.

Now, *_pl_private tests in tests/lib/libc/sys successfully pass, while
no other tests become newly falling.
2020-06-21 00:39:59 +00:00
rin
18d6c6511b Fix SS_ONSTACK, which seems like broken since switched to siginfo.
Found by tests/lib/libc/sys/t_sigaltstack, which passes now, while
no other tests are not falling newly.

XXX
Shouldn't we turn _UC_{SET,CLR}STACK into MI?
2020-06-21 00:00:27 +00:00
sevan
3e5391c239 X turned 36 today
http://www.talisman.org/x-debut.shtml
2020-06-20 21:58:17 +00:00
riastradh
0f00d469ba Nix trailing whitespace. 2020-06-20 18:44:17 +00:00
riastradh
dd58a4a54e Nix trailing whitespace. 2020-06-20 18:30:53 +00:00
skrll
d958cb46e5 Convert to new proplib api 2020-06-20 15:48:19 +00:00
skrll
df27e1ef9c KNF 2020-06-20 15:45:22 +00:00
kamil
ca6e2a2560 Remove double 'each of'
Reported by Weitian LI liweitianux (DragonFly).
2020-06-20 10:53:28 +00:00
rin
669f5e8178 Fix false positive for mvscanw tests on big endian machines.
When conversion specifier is not a derivative form of "%s", retrieve
input as 32bit integer, and then convert to string literal. Then we
can avoid interpretation from ASCII code to integer, which is
apparently byte-order depended.
2020-06-20 07:50:16 +00:00
rin
4562851ebb Skip sigbus_adraln for powerpc.
SIGBUS for unaligned accesses is not mandatory for powerpc;
most processors (not all, e.g., 403) can deal with that.
2020-06-20 07:30:09 +00:00