Go to file
uwe bd65e18f86 sp_tlb_flush() - fix inline asm miscompiled by newer gcc versions.
As one national park director once said: "my problems start when the
dumber of my visitors meet the smarter of my bears".

Old inline asm used specific hardcoded registers "assuming that gcc
doesn't do anything funny with these".  Unfortunately now it does,
especially when this function is inlined.  We ended up restoring a
wrong context.  The result was mysterious infinite memory faults.

Rewrite in safer inline asm, so that gcc is not confused.

Many thanks to chs@ for his patience.
2020-12-09 04:02:20 +00:00
bin Print real maxrss value like other shells. 2020-10-17 08:46:02 +00:00
common arm bswap32: Improve the comments showing the byte flow. 2020-12-09 02:46:57 +00:00
compat 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and 2019-10-24 18:46:20 +00:00
crypto Merge conflicts 2020-12-04 18:42:49 +00:00
dist/pf Externalize variables owned logically by pf_ruleset.c 2020-04-22 23:40:40 +00:00
distrib make(1): add test for combining -j1 with -n 2020-12-09 00:25:00 +00:00
doc acpicpu(4): Add support for Arm CPUs. 2020-12-07 10:59:26 +00:00
etc acpi: add character device for accessing ACPI tables 2020-12-06 02:57:29 +00:00
external include gdbarch.h 2020-12-08 13:56:38 +00:00
extsrc
games speed limit 80 2020-12-06 11:41:47 +00:00
include Correct typo in previous. 2020-12-04 23:04:58 +00:00
lib spaces to tab 2020-12-05 11:18:21 +00:00
libexec Bozohttpd clobbers files greater than 4GB on 32bit archs. 2020-11-19 10:45:36 +00:00
regress citrus SUBDIR is gone 2020-06-27 11:06:43 +00:00
rescue smb is no more. 2020-04-04 17:57:16 +00:00
sbin micron SMART 202 is percent lifetime used not remaining. 2020-12-07 10:36:19 +00:00
share Move everyone to gdb-11 2020-12-06 14:28:34 +00:00
sys sp_tlb_flush() - fix inline asm miscompiled by newer gcc versions. 2020-12-09 04:02:20 +00:00
tests the busypage test is buggy, expect it to fail. 2020-12-08 17:52:11 +00:00
tools Don't bother with gdbserver for archs that don't build it. 2020-12-05 21:27:31 +00:00
usr.bin make(1): add more tests for combining -j1 and -n 2020-12-09 00:43:48 +00:00
usr.sbin acpidump: Do not print FACS if HW_REDUCED flag is set. 2020-12-06 18:38:58 +00:00
build.sh add "distsets" alias for "distribution sets". 2020-09-20 10:29:05 +00:00
BUILDING Reintroduce the support of MKCATPAGES 2020-11-10 21:47:40 +00:00
Makefile G/c spurious whitespace. 2020-10-29 20:26:24 +00:00
Makefile.inc
README.md Use first-level heading for "NetBSD" title in README.md 2020-01-10 12:33:28 +00:00
UPDATING note about mips kernel modules breaking update builds 2020-10-17 07:41:25 +00:00

NetBSD

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

Building

You can cross-build NetBSD from most UNIX-like operating systems. To build for amd64 (x86_64), in the src directory:

./build.sh -U -u -j4 -m amd64 -O ~/obj release

Additional build information available in the BUILDING file.

Binaries

Testing

On a running NetBSD system:

cd /usr/tests; atf-run | atf-report

Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P src

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/src.git