Go to file
riastradh 8f18579d5d x86: Split most of pmap.h into pmap_private.h or vmparam.h.
This way pmap.h only contains the MD definition of the MI pmap(9)
API, which loads of things in the kernel rely on, so changing x86
pmap internals no longer requires recompiling the entire kernel every
time.

Callers needing these internals must now use machine/pmap_private.h.
Note: This is not x86/pmap_private.h because it contains three parts:

1. CPU-specific (different for i386/amd64) definitions used by...

2. common definitions, including Xenisms like xpmap_ptetomach,
   further used by...

3. more CPU-specific inlines for pmap_pte_* operations

So {amd64,i386}/pmap_private.h defines 1, includes x86/pmap_private.h
for 2, and then defines 3.  Maybe we should split that out into a new
pmap_pte.h to reduce this trouble.

No functional change intended, other than that some .c files must
include machine/pmap_private.h when previously uvm/uvm_pmap.h
polluted the namespace with pmap internals.

Note: This migrates part of i386/pmap.h into i386/vmparam.h --
specifically the parts that are needed for several constants defined
in vmparam.h:

VM_MAXUSER_ADDRESS
VM_MAX_ADDRESS
VM_MAX_KERNEL_ADDRESS
VM_MIN_KERNEL_ADDRESS

Since i386 needs PDP_SIZE in vmparam.h, I added it there on amd64
too, just to keep things parallel.
2022-08-20 23:48:50 +00:00
bin Improve the description of the read builtin command. 2022-08-19 13:37:03 +00:00
common proplib: Allocate sizeof(*ctx), not sizeof(struct ...). 2022-08-07 23:49:46 +00:00
compat fix various typos in comments and log messages. 2022-05-29 10:47:39 +00:00
crypto sshd_config: Disable HPN as discussed on tech-userlevel. 2022-05-09 15:06:29 +00:00
dist/pf Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. 2021-07-24 21:31:31 +00:00
distrib Fix yet another "[: SMALL test, no fallback usage" error on installation. 2022-08-20 20:50:41 +00:00
doc gcc-12.2.0 out 2022-08-19 21:37:12 +00:00
etc viocon(4): New virtio tty driver imported from OpenBSD. 2022-08-12 11:15:40 +00:00
external wsfb: Disable broken DGA support: 2022-08-20 01:02:44 +00:00
extsrc
games ching(6): Fix formatting. .Pp is not .br 2022-08-19 00:40:20 +00:00
include whitespace changes from tzcode2022a->tzcode2022b 2022-08-16 09:03:04 +00:00
lib fix whitespace prefix behavior 2022-08-18 11:05:02 +00:00
libexec Fix copy & pasto: DTPREL relocations do not need to allocate a static 2022-07-06 17:35:20 +00:00
regress fix various typos, mainly in comments, but also log messages, docs, game text. 2022-04-08 10:17:52 +00:00
rescue remove threads; size constraints and behavioral change 2022-05-16 14:55:56 +00:00
sbin Revert to previous as the atf tests are still failing. 2022-08-17 23:36:48 +00:00
share mutex(9): Note counterintuitive IPL change releasing spin locks. 2022-08-20 14:17:36 +00:00
sys x86: Split most of pmap.h into pmap_private.h or vmparam.h. 2022-08-20 23:48:50 +00:00
tests lint: add more details to message about large bit-shifts 2022-08-19 19:40:39 +00:00
tools bump the netbsd version GCC to yesterday's date. 2022-07-23 19:01:18 +00:00
usr.bin lint: add more details to message about large bit-shifts 2022-08-19 19:40:39 +00:00
usr.sbin installboot(8): Note relation to UEFI boot and hybrid images. 2022-08-19 00:50:08 +00:00
BUILDING s/knowlege/knowledge/ 2022-05-28 21:54:56 +00:00
Makefile Makefile: fix location of postinstall program for MAKEVERBOSE > 2 2022-03-19 14:35:13 +00:00
Makefile.inc
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING add a note about xorg-server possibly breaking builds. 2022-07-15 05:26:08 +00:00
build.sh build.sh: improve help and usage 2022-08-15 10:06:00 +00:00

README.md

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