GENERIC revision 1.10
11.10Smaxv# $NetBSD: GENERIC,v 1.10 2019/06/01 12:42:27 maxv Exp $
21.1Smatt#
31.1Smatt# GENERIC machine description file
41.1Smatt#
51.1Smatt# This machine description file is used to generate the default NetBSD
61.1Smatt# kernel.  The generic kernel does not include all options, subsystems
71.1Smatt# and device drivers, but should be useful for most applications.
81.1Smatt#
91.1Smatt# The machine description file can be customised for your specific
101.1Smatt# machine to reduce the kernel size and improve its performance.
111.1Smatt#
121.1Smatt# For further information on compiling NetBSD kernels, see the config(8)
131.1Smatt# man page.
141.1Smatt#
151.1Smatt# For further information on hardware support for this architecture, see
161.1Smatt# the intro(4) man page.  For further information about kernel options
171.1Smatt# for this architecture, see the options(4) man page.  For an explanation
181.1Smatt# of each device driver in this file see the section 4 man page for the
191.1Smatt# device.
201.1Smatt
211.1Smattinclude	"arch/riscv/conf/std.riscv64"
221.1Smatt
231.1Smattoptions 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
241.1Smatt
251.10Smaxv#ident 		"GENERIC-$Revision: 1.10 $"
261.1Smatt
271.1Smattmaxusers	64		# estimated number of users
281.1Smatt
291.1Smatt# Standard system options
301.1Smatt
311.1Smattoptions 	NTP		# NTP phase/frequency locked loop
321.1Smatt
331.1Smattoptions 	KTRACE		# system call tracing via ktrace(1)
341.1Smatt
351.1Smatt# Note: SysV IPC parameters could be changed dynamically, see sysctl(8).
361.1Smattoptions 	SYSVMSG		# System V-like message queues
371.1Smattoptions 	SYSVSEM		# System V-like semaphores
381.1Smattoptions 	SYSVSHM		# System V-like memory sharing
391.1Smatt
401.1Smattoptions 	MODULAR		# new style module(7) framework
411.1Smattoptions 	MODULAR_DEFAULT_AUTOLOAD
421.1Smattoptions 	USERCONF	# userconf(4) support
431.1Smatt#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
441.1Smattoptions 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
451.1Smatt
461.1Smatt# Alternate buffer queue strategies for better responsiveness under high
471.1Smatt# disk I/O load.
481.1Smatt#options 	BUFQ_READPRIO
491.1Smattoptions 	BUFQ_PRIOCSCAN
501.1Smatt
511.1Smatt# Diagnostic/debugging support options
521.1Smattoptions 	DIAGNOSTIC	# inexpensive kernel consistency checks
531.1Smatt				# XXX to be commented out on release branch
541.1Smatt#options 	DEBUG		# expensive debugging checks/support
551.1Smatt#options 	LOCKDEBUG	# expensive locking checks/support
561.1Smatt
571.1Smatt#
581.1Smatt# Because gcc omits the frame pointer for any -O level, the line below
591.1Smatt# is needed to make backtraces in DDB work.
601.1Smatt#
611.1Smatt#makeoptions	COPTS="-O2 -fno-omit-frame-pointer"
621.1Smattmakeoptions	COPY_SYMTAB=1
631.1Smattoptions 	DDB		# in-kernel debugger
641.1Smatt#options	DDB_COMMANDONENTER="bt"	# execute command when ddb is entered
651.1Smatt#options 	DDB_ONPANIC=1	# see also sysctl(7): `ddb.onpanic'
661.1Smattoptions 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
671.1Smatt#options 	KGDB		# remote debugger
681.1Smatt#options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
691.1Smatt#options 	SYSCALL_STATS	# per syscall counts
701.1Smatt#options 	SYSCALL_TIMES	# per syscall times
711.1Smatt#options 	SYSCALL_TIMES_HASCOUNTER	# use 'broken' rdtsc (soekris)
721.1Smatt
731.1Smatt# Compatibility options
741.7Smrginclude 	"conf/compat_netbsd70.config"
751.1Smatt
761.1Smattoptions 	COMPAT_OSSAUDIO
771.10Smaxv#options 	COMPAT_NETBSD32
781.1Smatt#options 	EXEC_ELF32
791.1Smatt
801.1Smatt# Wedge support
811.1Smattoptions 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
821.1Smattoptions 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges
831.1Smattoptions 	DKWEDGE_METHOD_BSDLABEL	# Support disklabel entries as wedges
841.1Smattoptions 	DKWEDGE_METHOD_MBR	# Support MBR partitions as wedges
851.1Smattoptions		DKWEDGE_METHOD_APPLE    # Support Apple partitions as wedges
861.5Srin#options	DKWEDGE_METHOD_RDB	# Support RDB partitions as wedges
871.1Smatt
881.7Smrginclude 	"conf/filesystems.config"
891.1Smatt
901.1Smatt# File system options
911.1Smattoptions 	QUOTA		# legacy UFS quotas
921.1Smattoptions 	QUOTA2		# new, in-filesystem UFS quotas
931.8Srin#options 	DISKLABEL_EI	# disklabel Endian Independent support
941.1Smattoptions 	FFS_EI		# FFS Endian Independent support
951.1Smattoptions 	WAPBL		# File system journaling support
961.1Smatt# Note that UFS_DIRHASH is suspected of causing kernel memory corruption.
971.1Smatt# It is not recommended for general use.
981.1Smatt#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
991.1Smattoptions 	NFSSERVER	# Network File System server
1001.1Smatt#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
1011.1Smatt				# immutable) behave as system flags.
1021.1Smatt#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
1031.1Smatt
1041.1Smatt# Networking options
1051.1Smatt#options 	GATEWAY		# packet forwarding
1061.1Smattoptions 	INET		# IP + ICMP + TCP + UDP
1071.1Smattoptions 	INET6		# IPV6
1081.1Smattoptions 	IPSEC		# IP security
1091.1Smatt#options 	IPSEC_DEBUG	# debug for IP security
1101.3Schristos#options 	MPLS		# MultiProtocol Label Switching (needs mpls)
1111.1Smatt#options 	MROUTING	# IP multicast routing
1121.1Smatt#options 	PIM		# Protocol Independent Multicast
1131.1Smatt#options 	NETATALK	# AppleTalk networking protocols
1141.1Smatt#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
1151.1Smatt#options 	PPP_DEFLATE	# Deflate compression support for PPP
1161.1Smatt#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
1171.1Smatt#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
1181.1Smatt
1191.1Smatt#options 	ALTQ		# Manipulate network interfaces' output queues
1201.1Smatt#options 	ALTQ_BLUE	# Stochastic Fair Blue
1211.1Smatt#options 	ALTQ_CBQ	# Class-Based Queueing
1221.1Smatt#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
1231.1Smatt#options 	ALTQ_FIFOQ	# First-In First-Out Queue
1241.1Smatt#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
1251.1Smatt#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
1261.1Smatt#options 	ALTQ_LOCALQ	# Local queueing discipline
1271.1Smatt#options 	ALTQ_PRIQ	# Priority Queueing
1281.1Smatt#options 	ALTQ_RED	# Random Early Detection
1291.1Smatt#options 	ALTQ_RIO	# RED with IN/OUT
1301.1Smatt#options 	ALTQ_WFQ	# Weighted Fair Queueing
1311.1Smatt
1321.1Smatt# These options enable verbose messages for several subsystems.
1331.1Smatt# Warning, these may compile large string tables into the kernel!
1341.1Smatt
1351.1Smatt# Kernel root file system and dump configuration.
1361.1Smattconfig		netbsd	root on ? type ?
1371.1Smatt
1381.1Smatt#
1391.1Smatt# Device configuration
1401.1Smatt#
1411.1Smattmainbus0	at root
1421.1Smattcpu0		at mainbus0
1431.1Smatthtif0		at mainbus0
1441.1Smatthtifcons0	at htif0
1451.1Smatthtifdisk0	at htif0
1461.1Smattld0		at htifdisk0
1471.1Smatt
1481.1Smatt
1491.1Smatt# Pseudo-Devices
1501.1Smatt
1511.1Smattpseudo-device 	crypto			# /dev/crypto device
1521.1Smattpseudo-device	swcrypto		# software crypto implementation
1531.1Smatt
1541.1Smatt# disk/mass storage pseudo-devices
1551.1Smatt#pseudo-device	md			# memory disk device (ramdisk)
1561.1Smatt#options 	MEMORY_DISK_HOOKS	# enable root ramdisk
1571.1Smatt#options 	MEMORY_DISK_DYNAMIC	# loaded via kernel module(7)
1581.1Smatt
1591.1Smattpseudo-device	vnd			# disk-like interface to files
1601.1Smattoptions 	VND_COMPRESSION		# compressed vnd(4)
1611.1Smatt
1621.1Smattpseudo-device	loop			# network loopback
1631.1Smattpseudo-device	pty			# pseudo-terminals
1641.1Smattpseudo-device	clockctl		# user control of clock subsystem
1651.1Smattpseudo-device	ksyms			# /dev/ksyms
1661.1Smattpseudo-device	lockstat		# lock profiling
1671.1Smatt
1681.1Smatt# userland interface to drivers, including autoconf and properties retrieval
1691.1Smattpseudo-device	drvctl
1701.1Smatt
1711.1Smattoptions 	PAX_MPROTECT=0		# PaX mprotect(2) restrictions
1721.1Smattoptions 	PAX_ASLR=0		# PaX Address Space Layout Randomization
173