head 1.13; access; symbols netbsd-11-0-RC4:1.10.2.2 netbsd-11-0-RC3:1.10.2.2 netbsd-11-0-RC2:1.10.2.2 netbsd-11-0-RC1:1.10.2.2 perseant-exfatfs-base-20250801:1.10 netbsd-11:1.10.0.2 netbsd-11-base:1.10 perseant-exfatfs-base-20240630:1.6 perseant-exfatfs:1.6.0.2 perseant-exfatfs-base:1.6; locks; strict; comment @# @; 1.13 date 2025.12.17.02.09.59; author thorpej; state Exp; branches; next 1.12; commitid qWzm2gBqfdeFJHmG; 1.12 date 2025.08.27.04.47.17; author isaki; state Exp; branches; next 1.11; commitid g6BkQeSe9olQck8G; 1.11 date 2025.08.23.01.45.26; author isaki; state Exp; branches; next 1.10; commitid 3t4S9IUYtwYnkN7G; 1.10 date 2025.03.27.12.22.44; author riastradh; state Exp; branches 1.10.2.1; next 1.9; commitid E7rF9ahYVUe0EHOF; 1.9 date 2024.11.01.14.31.59; author mlelstv; state Exp; branches; next 1.8; commitid HNSvJxRy5Ohj3XvF; 1.8 date 2024.09.23.10.38.31; author rin; state Exp; branches; next 1.7; commitid 7XqfsIAtw5FA0VqF; 1.7 date 2024.07.16.12.01.19; author riastradh; state Exp; branches; next 1.6; commitid X0tqcGme39NRG3iF; 1.6 date 2024.01.19.05.47.15; author thorpej; state Exp; branches 1.6.2.1; next 1.5; commitid FwloZ0xCqu9gn1VE; 1.5 date 2024.01.19.05.46.36; author thorpej; state Exp; branches; next 1.4; commitid TClXrAo3G2gWm1VE; 1.4 date 2024.01.08.05.11.54; author thorpej; state Exp; branches; next 1.3; commitid jvAew2KJLmN2xBTE; 1.3 date 2024.01.02.18.11.44; author thorpej; state Exp; branches; next 1.2; commitid ZhtJFUmh7i4m2USE; 1.2 date 2024.01.02.07.47.36; author thorpej; state Exp; branches; next 1.1; commitid Jgd1Ac0pSpEiAQSE; 1.1 date 2024.01.02.07.40.59; author thorpej; state Exp; branches; next ; commitid nIRNj5Gb4AQBwQSE; 1.10.2.1 date 2025.08.27.12.51.37; author martin; state Exp; branches; next 1.10.2.2; commitid rAGJwXS5P6v2Tm8G; 1.10.2.2 date 2026.02.03.20.51.26; author snj; state Exp; branches; next ; commitid xJf92BKl6kL8oYsG; 1.6.2.1 date 2025.08.02.05.56.14; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; desc @@ 1.13 log @Add MODULAR option. @ text @# $NetBSD: GENERIC,v 1.12 2025/08/27 04:47:17 isaki Exp $ # # GENERIC machine description file # # This machine description file is used to generate the default NetBSD # kernel. The generic kernel does not include all options, subsystems # and device drivers, but should be useful for most applications. # # The machine description file can be customised for your specific # machine to reduce the kernel size and improve its performance. # # For further information on compiling NetBSD kernels, see the config(8) # man page. # # For further information on hardware support for this architecture, see # the intro(4) man page. For further information about kernel options # for this architecture, see the options(4) man page. For an explanation # of each device driver in this file see the section 4 man page for the # device. include "arch/virt68k/conf/std.virt68k" options INCLUDE_CONFIG_FILE # embed config file in kernel binary #ident "GENERIC-$Revision: 1.12 $" makeoptions COPTS="-O2 -fno-reorder-blocks" # see share/mk/sys.mk # reserve symbol space and copy the symbol table into it. Needed # because Qemu does not load the symbol table when loading the # kernel. makeoptions COPY_SYMTAB=1 # CPUs this kernel supports options M68030 options M68040 maxusers 16 # Needed on m68040 boards to emulate some missing FP instructions options FPSP options DDB options DIAGNOSTIC #options LOCKDEBUG #options DEBUG #options SYSVSHM options KTRACE options USERCONF # userconf(4) support #options PIPE_SOCKETPAIR # smaller, but slower pipe(2) options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel # Alternate buffer queue strategies for better responsiveness under high # disk I/O load. #options BUFQ_READPRIO #options BUFQ_PRIOCSCAN file-system FFS file-system NFS file-system KERNFS file-system PROCFS #file-system MFS file-system CD9660 file-system MSDOSFS #file-system UNION file-system PTYFS # /dev/pts/N support file-system TMPFS # Efficient memory file-system #file-system UDF # experimental - OSTA UDF CD/DVD file-system file-system NULLFS # loopback file system file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) pseudo-device putter # for puffs and pud # File system options #options FFS_EI # FFS Endian Independent support options FFS_NO_SNAPSHOT # No FFS snapshot support #options UFS_DIRHASH # UFS Large Directory Hashing #options UFS_EXTATTR # Extended attribute support for UFS1 options WAPBL # File system journaling support options NFSSERVER # Network File System server # Networking options options INET options INET6 # IPV6 #options IPSEC # IP security #options IPSEC_DEBUG # debug for IP security #options GATEWAY # IP packet forwarding #options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG #options ALTQ # Manipulate network interfaces' output queues #options ALTQ_BLUE # Stochastic Fair Blue #options ALTQ_CBQ # Class-Based Queueing #options ALTQ_CDNR # Diffserv Traffic Conditioner #options ALTQ_FIFOQ # First-In First-Out Queue #options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) #options ALTQ_HFSC # Hierarchical Fair Service Curve #options ALTQ_LOCALQ # Local queueing discipline #options ALTQ_PRIQ # Priority Queueing #options ALTQ_RED # Random Early Detection #options ALTQ_RIO # RED with IN/OUT #options ALTQ_WFQ # Weighted Fair Queueing options COMPAT_AOUT_M68K # compatibility with NetBSD/m68k a.out include "conf/compat_netbsd09.config" #options COMPAT_SUNOS #options COMPAT_M68K4K # compatibility with NetBSD/m68k4k binaries #options COMPAT_LINUX # compatibility with Linux/m68k binaries #options COMPAT_OSSAUDIO # compatibility with Linux/m68k binaries # Shared memory options options SYSVMSG # System V-like message queues options SYSVSEM # System V-like semaphores options SYSVSHM # System V-like memory sharing options MODULAR # new style module(7) framework options MODULAR_DEFAULT_AUTOLOAD ## force NFS root and swap #config netbsd root on ? type nfs ## "generic" boot (put root on boot device) config netbsd root on ? type ? # Which protocol to use when booting over NFS options NFS_BOOT_DHCP # Diskless client w/ dhcp options NFS_BOOT_BOOTP # Diskless client w/ bootp options NFS_BOOT_BOOTPARAM # Diskless client w/ bootparamd # # accept filters pseudo-device accf_data # "dataready" accept filter pseudo-device accf_http # "httpready" accept filter pseudo-device sl pseudo-device ppp #pseudo-device pppoe # PPP over Ethernet (RFC 2516) pseudo-device loop pseudo-device bpfilter #pseudo-device carp # Common Address Redundancy Protocol pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933) #pseudo-device faith # IPv[46] tcp relay translation i/f pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation #pseudo-device vlan # IEEE 802.1q encapsulation #pseudo-device bridge # simple inter-network bridging #pseudo-device vether # Virtual Ethernet for bridge #pseudo-device agr # IEEE 802.3ad link aggregation pseudo-device pty # pseudo-terminals #pseudo-device cgd # cryptographic disk devices pseudo-device vnd #options VND_COMPRESSION # compressed vnd(4) pseudo-device fss # file system snapshot device pseudo-device clockctl # user control of clock subsystem pseudo-device ksyms # /dev/ksyms #pseudo-device npf # NPF packet filter pseudo-device swwdog # software watchdog timer -- swwdog(4) pseudo-device drvctl # user control of drive subsystem # crypto pseudo-devices pseudo-device crypto # /dev/crypto device pseudo-device swcrypto # software crypto implementation # random number generator pseudo-device #options RND_COM # use "com" randomness as well (BROKEN) # Veriexec # include "dev/veriexec.config" mainbus0 at root # Goldfish virtual devices gfpic* at mainbus? addr ? # interrupt controller gftty* at mainbus? addr ? # console terminal gfrtc* at mainbus? addr ? # real-time clock / timer # Qemu Virtual System Controller virtctrl* at mainbus? addr ? # VirtIO devices virtio* at mainbus? addr ? # VirtIO nexus include "dev/virtio/virtio.config" no vio9p* at virtio? # XXX ? no viomb* at virtio? # XXX ? no viogpu* at virtio? # No rasops (yet?) # SCSI devices scsibus* at scsi? sd* at scsibus? target ? lun ? # SCSI disks #st* at scsibus? target ? lun ? # SCSI tapes cd* at scsibus? target ? lun ? # SCSI CD-ROMs #ch* at scsibus? target ? lun ? # SCSI changer devices #ss* at scsibus? target ? lun ? # SCSI scanners #ses* at scsibus? target ? lun ? # SCSI SES/SAF-TE devices uk* at scsibus? target ? lun ? # unknown SCSI # Pull in optional local configuration - always at end cinclude "arch/virt68k/conf/GENERIC.local" @ 1.12 log @options @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.11 2025/08/23 01:45:26 isaki Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.11 $" d116 3 @ 1.11 log @Disable viogpu* on virt68k. virt68k does not have rasops and wscons (yet?). Need to pullup netbsd-11. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.10 2025/03/27 12:22:44 riastradh Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.10 $" d35 2 a36 2 options M68030 options M68040 d52 1 a52 1 #options PIPE_SOCKETPAIR # smaller, but slower pipe(2) @ 1.10 log @virtio(4): Consolidate kernel configs. No functional change intended. Leave `# XXX ?' comments where I don't know why the driver in question is excluded. (Typical reason is that PAGE_SIZE is not 4096 but I didn't investigate -- if you do investigate, please either update the comment if you determine a reason, or enable the driver if you don't.) PR kern/59211: vio9p(4): missing from various GENERICs and MAKEDEVs @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.9 2024/11/01 14:31:59 mlelstv Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.9 $" d181 1 @ 1.10.2.1 log @Pull up following revision(s) (requested by isaki in ticket #19): sys/arch/virt68k/conf/GENERIC: revision 1.11 Disable viogpu* on virt68k. virt68k does not have rasops and wscons (yet?). @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.10 2025/03/27 12:22:44 riastradh Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.10 $" a180 1 no viogpu* at virtio? # No rasops (yet?) @ 1.10.2.2 log @Apply patch (requested by martin in ticket #182): Remove "options DIAGNOSTIC" and "options DEBUG" from all kernels and _DIAGNOSTIC from libc. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.10.2.1 2025/08/27 12:51:37 martin Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.10.2.1 $" d44 1 a44 1 #options DIAGNOSTIC @ 1.9 log @Add drvctl driver. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.8 2024/09/23 10:38:31 rin Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.8 $" d177 4 a180 5 ld* at virtio? # VirtIO disk device vioif* at virtio? # VirtIO network device viornd* at virtio? # VirtIO entropy device vioscsi* at virtio? # VirtIO SCSI device viocon* at virtio? # Virtio Console @ 1.8 log @virt68k: GENERIC: Add some features required by ATF - NULLFS, PUFFS, and putter - SYSV{MSG,SEM,SHM} - {,sw}crypto @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.7 2024/07/16 12:01:19 riastradh Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.7 $" d153 1 a177 1 viocon* at virtio? # VirtIO serial device d181 1 @ 1.7 log @viocon(4): Add to various kernel configs. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.6 2024/01/19 05:47:15 thorpej Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.6 $" d71 3 d111 5 d154 4 @ 1.6 log @Revert unintended commit. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.4 2024/01/08 05:11:54 thorpej Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.4 $" d165 1 @ 1.6.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.10 2025/03/27 12:22:44 riastradh Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.10 $" a70 3 file-system NULLFS # loopback file system file-system PUFFS # Userspace file systems (e.g. ntfs-3g & sshfs) pseudo-device putter # for puffs and pud a107 5 # Shared memory options options SYSVMSG # System V-like message queues options SYSVSEM # System V-like semaphores options SYSVSHM # System V-like memory sharing a144 5 pseudo-device drvctl # user control of drive subsystem # crypto pseudo-devices pseudo-device crypto # /dev/crypto device pseudo-device swcrypto # software crypto implementation d164 4 a167 4 include "dev/virtio/virtio.config" no vio9p* at virtio? # XXX ? no viomb* at virtio? # XXX ? @ 1.5 log @Adjust the clockframe to be the same as what the common m68k interrupt dispatch code expects. @ text @d103 1 a103 3 options COMPAT_SUNOS options COMPAT_13 options COMPAT_16 @ 1.4 log @Add PROCFS and MSDOSFS. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.3 2024/01/02 18:11:44 thorpej Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.3 $" d103 3 a105 1 #options COMPAT_SUNOS @ 1.3 log @Add a driver for the Qemu Virtual System Controller that can be used to halt or reset the system. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.2 2024/01/02 07:47:36 thorpej Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.2 $" d63 1 d66 1 a66 1 #file-system MSDOSFS @ 1.2 log @Comment out LOCKDEBUG. @ text @d1 1 a1 1 # $NetBSD: GENERIC,v 1.1 2024/01/02 07:40:59 thorpej Exp $ d25 1 a25 1 #ident "GENERIC-$Revision: 1.1 $" d158 3 @ 1.1 log @Add a port to the Qemu m68k "virt" platform, a 68040-based virtual machine with VirtIO I/O devices. This is a work-in-progress, but "successfully mounts root file system and then complains about missing /sbin/init that is, in fact, not there" seems like a good checkpoint. @ text @d1 1 a1 1 # $NetBSD$ d25 1 a25 1 #ident "GENERIC-$Revision$" d45 1 a45 1 options LOCKDEBUG @