Commit Graph

849 Commits

Author SHA1 Message Date
andvar d17abd87ec s/borad/board/ in comments. 2024-05-24 20:06:55 +00:00
andvar 36d2dca1aa Remove extra whitespace after P-4032. 2024-04-07 19:51:49 +00:00
andvar 7dd6188a11 Initial version of evbmips kernel configuration files documentation.
The goal is to give a better understanding which hardware they represent
and how to build them. Also not to lose this information over the years.

Loosely based on a README.evbarm, however has additional notes on building
targets. The file is not final, some discussion came up about the need of
*32 kernel configs. simon is planning to review.
2024-04-07 19:39:24 +00:00
andvar 75dae3c9c9 Revert accidental change for root file system in previous commit. 2024-03-26 10:23:42 +00:00
andvar 4b3c7391f1 Remove netgraph options which are not supported and have no effect in NetBSD.
While here, reposition extio to reduce diff between ADM5120 and ADM5120-NB.
2024-03-26 10:16:47 +00:00
riastradh c5f73804ac evbmips/interrupt.c: No need for __diagused with KASSERT.
KASSERT already references all the variables even in !DIAGNOSTIC
builds (but evaluates nothing at run-time in that case).

That said: Is the curlwp->l_blcnt assertion correct?  Can't curlwp be
changed in this interrupt handler by preemption?
2024-03-13 12:44:30 +00:00
skrll b2b5b66905 Remove #ifdef DIAGNOSTIC by using __diagused. NFCI. 2024-03-13 06:59:01 +00:00
andvar ca77ae79ec Fix non-DIAGNOSTIC build for evbmips.
mtx_count, biglock_count and blcnt are defined inside DIAGNOSTIC block, thus
KASSERTs using them should be guarded as well.

Seemingly introduced with matt-nb5-mips64 merge in 2011.
2024-03-12 21:27:14 +00:00
thorpej f36002f244 Move the at-shutdown call to resettodr() from cpu_reboot() to kern_reboot().
It's a small step, but it's a step.
2024-03-05 14:15:28 +00:00
christos 36029e6f0c put quotes back 2024-02-11 17:17:05 +00:00
christos 7627975f76 PR/57923: Jan-Benedict Glaw: Use $MKREPRO_TIMESTAMP for mkubootimage 2024-02-11 17:13:02 +00:00
andvar 1cd43426d5 Fix various typos in comments, log messages and documentation. 2024-02-10 18:43:51 +00:00
andvar a5175f1e98 s/sharable/shareable in comments and documentation. 2024-02-08 20:11:55 +00:00
andvar c865d5f423 s/attachement/attachment/ and s/detachement/detachment/. 2024-02-02 22:14:04 +00:00
christos c78676accc PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
2024-01-29 18:27:09 +00:00
thorpej 7433666e37 Remove unnecessary <sys/malloc.h>. 2023-12-20 13:55:17 +00:00
andvar aa3d1fe6ec use kcpuset_isset() and pass second (NULL) argument to mips_fixup_exceptions()
to fix build for SBMIPS(64).MP kernel configs.
2023-12-05 19:16:48 +00:00
simonb f52c4ec833 All other install kernels use a 6MB RAM disk. Stop with the teeny
frequent bumps and jump straight to the size everything is using.
2023-11-03 00:24:20 +00:00
he 838295f73b INSTALL_CI20: bump ramdisk image size since contents grew a bit recently. 2023-10-10 16:23:56 +00:00
martin b4083223a4 Make more room for ramdisk image (which recently grew a bit) 2023-10-10 10:36:42 +00:00
skrll f59ffdd78c Trailing whitespace. 2023-06-10 07:30:57 +00:00
gutteridge e86cf4b839 INSTALL_*: correct a path in a comment 2023-06-09 21:33:16 +00:00
riastradh e63cb0d4be mips: Add missing barriers in cpu_switchto.
Details in comments.

PR kern/57240

XXX pullup-8
XXX pullup-9
XXX pullup-10
2023-02-23 14:56:00 +00:00
abs d5c0be2b6b Adjust _all_ cinclude of *.local files
- Ensure always at end
- Use tab rather than spaces
- Add consistent comment
  "Pull in optional local configuration - always at end"

The only functional change is that a local file which tried to
override an existing setting (eg with "no foo") would have failed
in some cases before, but now will work
2023-02-09 14:09:47 +00:00
he 2f3ae6e933 evbmips/mipssim: on mips64, probe for additional memory.
Probe for memory from above the ISA I/O hole and up to 16GB,
which acording to simonb@ is a somewhat arbitrary limit.

This makes it possible to specify e.g. "-m 2g" to qemu, and have
that memory be probed instead of being clamped to 508MB.
2022-12-28 11:50:25 +00:00
he 755615c02f mipssim_dma.c: set _bounce_thresh so that bounce buffering works.
Suggested by jmcneill@, thanks!
2022-12-28 11:40:35 +00:00
he 24c1eafb6f Bump MSGBUFSIZE to 32k; 4k just about overflows "by default" with qemu
and mipssim-virtio machine type.
2022-11-27 14:54:25 +00:00
simonb 12b3d68b52 Enable CD9660; noticed by he@. 2022-11-15 14:49:14 +00:00
riastradh 6a4b8d6081 swwdog(4): Add to GENERIC kernels.
Plus a handful of others that I'm familiar with.  Lots of special-
purpose kernels should probably have this too but I'm not going
through all the arm, mips, and ppc evaluation board kernels to see
which ones are relevant.

Omitted from systems I know to be very small:
- sun2/GENERIC
- dreamcast/GENERIC
Feel free to remove it from others that need to be kept smaller.

Compile-tested a few of these just in case:
- alpha/GENERIC
- amd64/GENERIC
- evbmips/OCTEON
- i386/GENERIC
- riscv/GENERIC

PR kern/29702
2022-09-29 10:10:05 +00:00
simonb c7ae7f02a8 UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
  file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
  and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
2022-08-07 02:52:23 +00:00
andvar 114b022676 fix various typos in comments. 2022-05-28 22:16:43 +00:00
simonb c69d82a137 Add the increasingly spreading __HIDE_DELAY kludge to evbmips. 2022-03-16 04:31:54 +00:00
andvar 634b965029 fix few typos in comments for word "because". 2022-03-04 21:12:03 +00:00
riastradh 68af1355b1 mips: Carefully use device_set_private for cpuN.
But don't do it in cpu_attach_common because the callers aren't set
up right -- instead leave a comment about what's wrong, to be dealt
with later.
2022-03-03 06:27:40 +00:00
riastradh 7fcda4e991 mips: Use device_set_private in a few drivers. 2022-03-03 06:27:20 +00:00
riastradh 3aa5a3ae30 sys: Fix various abuse of struct device internals.
Will help to make struct device opaque later.
2022-02-12 03:24:34 +00:00
skrll e6a4e4eb04 Ensure bus_dmatag_subregion is called with an inclusive max_addr
everywhere.
2022-01-22 15:10:30 +00:00
skrll 460008ec7e Trailing whitespace 2022-01-22 15:08:10 +00:00
andvar e590e6c9f3 fix various typos, mainly in comments. 2021-12-26 16:08:19 +00:00
skrll 23f92c1f7f Correct copypaste comment grammar. 2021-12-17 06:28:20 +00:00
skrll 787588e2e8 Trailing whitespace 2021-12-17 06:26:13 +00:00
simonb 5b40c28134 Use 50Hz ticks so that time works accurately on hosts with 100Hz ticks.
Note: The 20Kc CPU isn't handled correctly by QEMU, use the 5Kc CPU for
a 64-bit guest for accurate time.
2021-11-16 06:46:41 +00:00
simonb f398e52158 Use CPU frequencies defined in QEMU for mipssim - 6 MHz for 64-bit
guests and 12 MHz for 32-bit guests.
2021-11-16 06:44:40 +00:00
skrll 6e5219f880 Catch up with member renaming 2021-11-03 07:53:56 +00:00
andvar ca7653601e fix various typos in comments and log messages. 2021-08-20 20:25:26 +00:00
thorpej c7fb772b85 Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
andvar 077d1c0f36 fix various typos in comments and log messages. 2021-08-02 12:56:22 +00:00
andvar 7991f5a7b8 Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
2021-07-24 21:31:31 +00:00
nia f3c68eb2b0 Remove uscanner(4) driver
This exists for compatibility with a Linux interface which was apparently
deprecated in Linux 2.6. There are various mailing list threads going
back to 2004 where the usefulness of this driver is discussed, but
the conclusion is that scanner software has all moved to using ugen(4)
instead, and enabling this driver will not help you scan things.
2021-06-29 10:22:33 +00:00
nia 936d7a0705 Add some more useful options to MIPSSIM
In particular, MAKEDEV fails if tmpfs isn't available, and having
compat_netbsd32 but no SysV shared memory causes some dmesg spam.
2021-06-15 16:43:48 +00:00