Go to file
martin 6676131d63 Pull up following revision(s) (requested by tsutsui in ticket #1590):
sys/arch/next68k/include/vmparam.h: revision 1.29
	sys/arch/next68k/next68k/machdep.c: revision 1.118
	sys/arch/next68k/include/param.h: revision 1.13
	sys/arch/next68k/next68k/pmap_bootstrap.c: revision 1.45
	sys/arch/next68k/next68k/locore.s: revision 1.70
	sys/arch/next68k/next68k/locore.s: revision 1.71

Use explicit CPU strings and remove hp300 derived stuff.

Remove #ifdef'ed out hp300 specific stuff.

Remove leftover "last kernel PT page" settings derived from hp300.

Whilehere, also remove VM definitions for obsolete COMPAT_HPUX stuff.

All hp300 machines has RAMs at a region from the highest address
i.e. 0xFFFFFFFF to smaller address (as HP claims "it's the MSB first"),
so kernels have to prepare PA==KVA mappings as the "last PT page" to
guarantee the running kernel works both before and after the MMU is
turned on.  For such a special mapping, we have to set up necessary
segment table and page table during early startup, in pmap_bootstrap()
invoked from locore.s.

On the other hand, NeXT machines have RAMs at a region from 0x40000000
to below (i.e. to larger address) so we still need a PA==KVA mapping.
However currently NetBSD/next68k just uses the transparent translation
registers to achieve the PA==KVA mapping, so unlike hp300 we don't have
to prepare special segment table and page table for it.

Note many other m68k ports (like luna68k, news68k, x68k etc.) have
RAMs at a region from 0x00000000 so usually we can assume PA==KVA
and don't have to bother to prepare such speicial mappings.

No user visible changes (except now freed wasted pages for the tables).

Tested on my NeXTstation slab.
2023-02-12 11:47:10 +00:00
bin Pull up following revision(s) (requested by kre in ticket #1549): 2022-10-27 16:14:42 +00:00
common Pull up following revision(s) (requested by skrll in ticket #1567): 2023-01-19 10:37:03 +00:00
compat Apply patch, requested by mrg in ticket #1309 (no corresponding 2021-06-21 17:40:43 +00:00
crypto Pull up following revision(s) (requested by martin in ticket #1463): 2022-06-06 03:07:03 +00:00
dist/pf - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
distrib Pull up the following, requested by kre in ticket #1546: 2022-10-20 13:18:53 +00:00
doc Ticket #1588 2023-02-08 16:43:05 +00:00
etc Pull up following revision(s) (requested by tsutsui in ticket #1586): 2023-02-06 16:54:53 +00:00
external Apply patch, requested by mrg in ticket #1577: 2023-01-23 13:43:07 +00:00
extsrc
games Pull up following revision(s) (requested by sevan in ticket #969): 2020-06-21 10:39:58 +00:00
include Pull up following revision(s) (requested by wiz in ticket #1484): 2022-08-03 10:42:02 +00:00
lib Pull up following revision(s) (requested by uwe in ticket #1584): 2023-02-04 16:19:20 +00:00
libexec Pull up following revision(s) (requested by martin in ticket #1531): 2022-09-18 00:09:52 +00:00
regress Eliminate regress/libexec/ld.elf_so/expand 2019-04-06 16:25:52 +00:00
rescue Pull up following revision(s) (requested by maya in ticket #435): 2019-11-17 07:04:33 +00:00
sbin Pull up following revision(s) (requested by hannken in ticket #1560): 2023-01-03 18:22:09 +00:00
share Pull up following revision(s) (requested by thorpej in ticket #1580): 2023-01-30 11:35:15 +00:00
sys Pull up following revision(s) (requested by tsutsui in ticket #1590): 2023-02-12 11:47:10 +00:00
tests Pull up following revision(s) (requested by thorpej in ticket #1353): 2021-10-04 14:48:25 +00:00
tools Pull up following revision(s) (requested by mrg in ticket #1049): 2020-08-14 11:02:42 +00:00
usr.bin Pull up following revision(s) (requested by uwe in ticket #1576): 2023-01-23 13:17:27 +00:00
usr.sbin Pull up the following revisions, requested by msaitoh in ticket #1575: 2023-01-23 13:04:11 +00:00
BUILDING Fix a typo 2019-05-08 14:03:57 +00:00
Makefile Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
Makefile.inc
README.md Tidy up a bit. 2018-10-23 15:44:42 +00:00
UPDATING Note update hickup build issue for uefi boot. 2019-07-27 07:55:18 +00:00
build.sh Pull up following revision(s) (requested by mrg in ticket #1423): 2022-02-02 14:23:11 +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