271003 Commits

Author SHA1 Message Date
christos
a33f2da334 - use accept4 instead of paccept for everyone.
- add test for accept preserving non-block
- comment on FreeBSD and Linux behavior.
2019-10-26 23:08:27 +00:00
christos
c61fe20bc9 add some more machines to the 32 bit part 2019-10-26 18:36:25 +00:00
christos
f20a32fee4 Separate the NetBSD-specific fenv functions from the standard ones.
No functional change.
2019-10-26 17:57:20 +00:00
christos
f3edc77c31 disable -Wshadow because in c99 mode these get marked as builtins. 2019-10-26 17:51:49 +00:00
christos
292e9d0303 Add missing FALLTHROUGH (I am not 100% certain if this is correct), but
breaking/returning will end up printing nothing.
2019-10-26 17:50:18 +00:00
christos
d9c1c1cea0 Hide the register definitions that should eventually be removed (or prefixed
with _REG_ with #ifdef _KERNEL. This avoids conflicts with let's say PC in
<termcap.h>.
2019-10-26 17:49:34 +00:00
jmcneill
0223ab780f Add bus driver for TI sysc interconncet. 2019-10-26 15:58:55 +00:00
jmcneill
538dc118f5 Fix am33xx_platform_early_putchar for pre-MMU output 2019-10-26 15:58:15 +00:00
jmcneill
dade7b1526 Do not search 64-bit directories for dts files 2019-10-26 15:01:18 +00:00
jmcneill
ca25f0ce13 Adapt ti fdt glue to support GENERIC kernel. 2019-10-26 14:57:27 +00:00
christos
e4c1bc56d0 use strlcpy() for the uts conversion, makes the code simpler and more readable. 2019-10-26 11:34:48 +00:00
tsutsui
b05cccc336 Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding
2019-10-26 10:10:14 +00:00
tsutsui
bd0b32eaf1 Fix another boot failure issue of NetBSD/zaurus 8.x and later.
It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.
Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.
2019-10-26 09:58:40 +00:00
tsutsui
3bea62503d Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.
This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.
2019-10-26 09:49:13 +00:00
martin
4327f8a536 In non-MBR specific files, #ifdef all tests for MBR for architectures
that do not even compile in MBR support.
2019-10-26 07:32:52 +00:00
uki
efe35ffde2 Give syspkg names to xserver without machine dependet files 2019-10-26 07:31:39 +00:00
christos
876570509c Unbreak the sanitizers for gcc. The sanitizer offset defined in
libsanitizer needs to match with the compiler concept of
TARGET_ASAN_SHADOW_OFFSET, since the compiler generates instructions
to access memory at that offset in the code, and expects the
sanitizer library to have mapped something there. If there is
disagreement, Mr. Segmentation Fault comes and resolves it for you.
2019-10-25 18:03:59 +00:00
martin
fdafaadd05 Add support for Nuvoton NCT5104D GPIO chips, as found on PC Engines APU
systems. From Andrew Doran in PR kern/54648.
2019-10-25 17:39:56 +00:00
martin
4e37d888c5 whitespace 2019-10-25 17:25:23 +00:00
macallan
fc6dd7c2fb register the IPI before spinning up CPUs, and make sure to do it exactly once
with this, and previous commits, G5s with four CPUs work
tested by Romain Dolbeau
2019-10-25 17:17:30 +00:00
martin
f145d42ea0 Add missing onewire temperature sensors, suggested by Andrew Doran. 2019-10-25 16:50:17 +00:00
martin
c8f8ec1fd4 PR kern/54617: onewire(4):
- Alter locking strategy to avoid deadlock on detach.
 - Auto bus probe chews CPU.  Increase interval from 3s to 10s.
 - Put temp sensor S/N in dev description so it can be identified.
 - Use mutex/condvar.

Patch from Andrew Doran.
2019-10-25 16:25:14 +00:00
martin
df5d049a39 From the compilers point of view sys_exit returns a value.
Adjust the filemon wrapper accordingly (newer gcc is unhappy with the
function pointer casts otherwise and the amd64/ALL kernel fails to build).
2019-10-25 16:22:48 +00:00
martin
f96c1808ac On device where we do not want a MBR (raid, xbd) skip the MBR partitioning
scheme when trying to read partitions from disk. The generic reader will
fall back to disklabel then.
2019-10-25 12:49:58 +00:00
martin
6a81eb289c Honor the "no_mbr" flag (used especially for raid and xbd devices) 2019-10-25 12:24:34 +00:00
maxv
39beb8bb08 Update the libnvmm man page:
- Sync the naming with reality.

 - Replace "relevant" by "desired" and "virtualizer" by "emulator", closer
   to what I meant.

 - Add a "VCPU Configuration" section.

 - Add a "Machine Ownership" section.
2019-10-25 09:09:24 +00:00
christos
4d41cddf70 fix printf formats 2019-10-25 01:32:56 +00:00
macallan
2313a00527 if we have a /cpus node, use it to find and attach all CPUs.
Now we find all CPUs on a 4x G5.
2019-10-24 23:06:25 +00:00
macallan
f7c34b7490 bump CPU_MAXNUM to 4, hardware exists and is being asked about on port-macppc@ 2019-10-24 23:04:46 +00:00
macallan
a192f6aa22 bump NIRQ to 256 since we're going to use vectors above 128 2019-10-24 23:03:35 +00:00
kamil
cff733ff15 libc: Changed the iconv(3) function signature to the POSIX variation 2019-10-24 19:28:47 +00:00
christos
943bd98d5c arm-common.c uses bitmap stuff so put the common-target.a before common.a 2019-10-24 18:48:43 +00:00
christos
741a117e19 arm-common.c needs stack-protector treatment 2019-10-24 18:48:09 +00:00
christos
20f77b55bf 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and
bsd.own.mk also adds it for gcc only (so we end up with 2 -marm for gcc).
   Just add -marm unconditionally in bsd.own.mk in ARM_APCS_FLAGS and remove
   it from everywhere else.
2. gcc-8 now warns about thumb internetwork in APCS mode. This does not make
   sense because the documentation says that this flag does not make a
   difference in apcs mode, but might produce larger code in non-APCS mode.
   So we just add it to silence the warnings.
2019-10-24 18:46:20 +00:00
christos
36bc1517f4 Add a function cast 2019-10-24 18:34:22 +00:00
kamil
77a1ad5f00 Switch the iconv(3) prototype to the POSIX conformant variation
Remove const from the 2nd argument.

const char ** and char ** are incompatible types and it was a cost to keep
the technically incompatible form for a more purist variation. NetBSD was
almost the last alive OS to still keep the const argument (known leftovers:
Minix and Illumos).

Keep the const form for the internal purposes inside citrus and rump.

Address the build breakage fallout in the same change.

There are no ABI changes.

Change accepted by core@.
2019-10-24 18:17:14 +00:00
martin
f033e6150f When we fail to setup for "all of the disk for NetBSD" report
failure, instead of silently aborting the install.
2019-10-24 18:17:08 +00:00
rhialto
e9ed3c66a2 Solve [ vs. \133 in join.awk which replaces fix in r1.23 of regpkg. Ok uki@. 2019-10-24 16:52:11 +00:00
hannken
3576a6dafd With TLSv1.3 a client has to receive and process metadata.
Update dispatch_tls_eof() to check for metadata and
rearm on success.

Ok: christos@
2019-10-24 08:21:18 +00:00
msaitoh
1117a6999f Fix a bug that ukphy_status() misunderstand master mode. 2019-10-24 03:37:58 +00:00
christos
8cb33180ff mknative tries to build this file with c++ and c++ does not like types
inside offsetof() (a language limitation).
2019-10-24 03:31:38 +00:00
christos
d05d30e64c add new files
XXX: all the arms need regen
2019-10-24 03:26:06 +00:00
christos
eba0817981 arm needs more files 2019-10-24 03:19:14 +00:00
uki
6e824db87c Give syspkg names to xserver mi files 2019-10-23 21:40:36 +00:00
uki
ac8ca99519 Architecture dependency files are obsolete 2019-10-23 21:31:32 +00:00
christos
ad28d61a37 Since add_debug_regex_map is used in opts-global.c unconditionally, we can't
disable the code with #ifndef __NetBSD__ because it breaks cross-building.
2019-10-23 18:55:36 +00:00
kamil
1c5b1926dd Fix polish translation for sysinst
PR install/53870 by Guest01
PR install/53871 by Guest01

patch by Krzysztof Lasocki
2019-10-23 18:08:31 +00:00
martin
e899ddb131 Add note for GCC 8 builds (see PR 54644) 2019-10-23 16:26:42 +00:00
christos
8f75e4b21c simplify more (from rudolf) 2019-10-23 14:45:38 +00:00
christos
fe4d93fad2 Missing ata_channel_unlock(chp). Noted by mjg@freebsd. 2019-10-23 14:44:41 +00:00