Go to file
cherry a141ce0848 Rig the hypercall callback page such that when the kernel happens to
run without a XEN domain loader having previously overwritten the
hypercall page with its hypercall trampoline machine code, we still
get to detect its presence by calling the xen_version hypercall stub.

We use this hack to detect the presence or absence of the hypervisor,
without relying on the MSR support on HVM domains.

This works as an added sanity check that the hypercall page
registration has indeed succeeded in HVM mode.
2019-02-13 05:36:59 +00:00
bin Remove a function prototype which was added to <histedit.h> in 2005. 2019-02-10 19:21:52 +00:00
common - atomic_*_{8,16}_nv() must return a new value, not an old value. 2019-02-08 06:56:56 +00:00
compat don't build kernel grovelling tools as n64 on sgimips - we don't actually have 2018-09-20 02:51:21 +00:00
crypto - bump buffer sizes to avoid potential truncation issues 2019-02-04 04:36:41 +00:00
dist/pf - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
distrib openssl/store.h is installed by openssl 1.1, don't obsolete it every build. 2019-02-10 04:03:03 +00:00
doc new nsd 2019-02-12 16:13:23 +00:00
etc separate out the arch-specific and compat-specific subdirs. 2019-02-09 21:43:23 +00:00
external cleanup unused stuff now that we execute directly and not in a separate task. 2019-02-13 01:16:30 +00:00
extsrc
games apply -Wno-error=implicit-fallthrough on files that have fallthru 2019-02-04 09:51:47 +00:00
include Provide global variables with C linkage, otherwise they will create 2019-01-08 17:35:42 +00:00
lib Optimize: fetch only 5 bytes instead of 15, the instruction can have only 2019-02-12 14:50:21 +00:00
libexec - bump buffer sizes to avoid potential truncation issues 2019-02-04 04:36:41 +00:00
regress Don't test call gates, they are not supported anymore. 2017-08-30 15:46:19 +00:00
rescue fix duplicated chunk from merge 2019-01-27 04:33:29 +00:00
sbin Make "gpt migrate" work for disks with FAT32 and NTFS partitions 2019-02-10 10:35:51 +00:00
share document PR_ZERO 2019-02-10 17:15:45 +00:00
sys Rig the hypercall callback page such that when the kernel happens to 2019-02-13 05:36:59 +00:00
tests Rename signal1 to signal_mask_unrelated in t_ptrace_wait* 2019-02-12 21:35:35 +00:00
tools - build the gthr*.h files to be installed on the fly, instead of 2019-02-09 03:57:00 +00:00
usr.bin hack alert time: 2019-02-12 10:16:58 +00:00
usr.sbin Document options to select alternate GPIO modes. 2019-02-12 21:41:38 +00:00
build.sh add aliases for evbarm without saying 'earm': 2019-02-08 02:05:32 +00:00
BUILDING regen 2018-07-29 20:53:41 +00:00
Makefile .WAIT for tools to complete. 2018-11-11 07:43:35 +00:00
Makefile.inc Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
README.md Tidy up a bit. 2018-10-23 15:44:42 +00:00
UPDATING add a quick note about gcc 7 likely causing update build failures. 2019-02-08 09:57:01 +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