FreeBSD/Linux Kernel Cross Reference
sys/pc98/conf/NOTES
1 #
2 # NOTES -- Lines that can be cut/pasted into kernel and hints configs.
3 #
4 # This file contains machine dependent kernel configuration notes. For
5 # machine independent notes, look in /sys/conf/NOTES.
6 #
7 # $FreeBSD: releng/11.2/sys/pc98/conf/NOTES 298824 2016-04-29 23:53:55Z jhb $
8 #
9
10 #
11 # We want LINT to cover profiling as well.
12 profile 2
13
14
15 #####################################################################
16 # SMP OPTIONS:
17 #
18 # The apic device enables the use of the I/O APIC for interrupt delivery.
19 # The apic device can be used in both UP and SMP kernels, but is required
20 # for SMP kernels. Thus, the apic device is not strictly an SMP option,
21 # but it is a prerequisite for SMP.
22 #
23
24 # Mandatory:
25 device apic # I/O apic
26
27 #
28 # Watchdog routines.
29 #
30 options MP_WATCHDOG
31
32
33
34 #####################################################################
35 # CPU OPTIONS
36
37 #
38 # You must specify at least one CPU (the one you intend to run on);
39 # deleting the specification for CPUs you don't need to use may make
40 # parts of the system run faster.
41 #
42 cpu I486_CPU
43 cpu I586_CPU # aka Pentium(tm)
44 cpu I686_CPU # aka Pentium Pro(tm)
45
46 #
47 # Options for CPU features.
48 #
49 # CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
50 # CPU if CPU supports it. The default is double-clock mode on
51 # BlueLightning CPU box.
52 #
53 # CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
54 # BlueLightning CPU. It works only with Cyrix FPU, and this option
55 # should not be used with Intel FPU.
56 #
57 # CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
58 #
59 # CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
60 # of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
61 # Otherwise, the NO_LOCK bit of CCR1 is cleared. (NOTE 3)
62 #
63 # CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
64 # mapped mode. Default is 2-way set associative mode.
65 #
66 # CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables
67 # reorder). This option should not be used if you use memory mapped
68 # I/O device(s).
69 #
70 # CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32
71 # machines. VmWare 3.x seems to emulate this instruction poorly, causing
72 # the guest OS to run very slowly. This problem appears to be fixed in
73 # VmWare 4.x, at least in version 4.5.2, so that enabling this option with
74 # VmWare 4.x will result in locking operations to be 20-30 times slower.
75 # Enabling this with an SMP kernel will cause the kernel to be unusable.
76 #
77 # CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE.
78 #
79 # CPU_FASTER_5X86_FPU enables faster FPU exception handler.
80 #
81 # CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
82 # for i386 machines.
83 #
84 # CPU_IORT defines I/O clock delay time (NOTE 1). Default values of
85 # I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
86 # (no clock delay).
87 #
88 # CPU_L2_LATENCY specifies the L2 cache latency value. This option is used
89 # only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected.
90 # The default value is 5.
91 #
92 # CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
93 # of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
94 # 1).
95 #
96 # CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs. This option
97 # is useful when you use Socket 8 to Socket 370 converter, because most Pentium
98 # Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs.
99 #
100 # CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
101 #
102 # CPU_SUSP_HLT enables suspend on HALT. If this option is set, CPU
103 # enters suspend mode following execution of HALT instruction.
104 #
105 # CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s).
106 #
107 # CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
108 # K5/K6/K6-2 CPUs.
109 #
110 # CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
111 # flush at hold state.
112 #
113 # CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
114 # without cache flush at hold state, and (2) write-back CPU cache on
115 # Cyrix 6x86 whose revision < 2.7 (NOTE 2).
116 #
117 # NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
118 # Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
119 # executed. This option is only needed if I586_CPU is also defined,
120 # and should be included for any non-Pentium CPU that defines it.
121 #
122 # NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
123 # which indicates that the 15-16MB range is *definitely* not being
124 # occupied by an ISA memory hole.
125 #
126 # NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
127 # CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
128 # These options may crash your system.
129 #
130 # NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
131 # in write-through mode when revision < 2.7. If revision of Cyrix
132 # 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
133 #
134 # NOTE 3: This option may cause failures for software that requires
135 # locked cycles in order to operate correctly.
136 #
137 options CPU_BLUELIGHTNING_3X
138 options CPU_BLUELIGHTNING_FPU_OP_CACHE
139 options CPU_BTB_EN
140 options CPU_DIRECT_MAPPED_CACHE
141 options CPU_DISABLE_5X86_LSSER
142 options CPU_DISABLE_CMPXCHG
143 #options CPU_DISABLE_SSE
144 options CPU_FASTER_5X86_FPU
145 options CPU_I486_ON_386
146 options CPU_IORT
147 options CPU_L2_LATENCY=5
148 options CPU_LOOP_EN
149 options CPU_PPRO2CELERON
150 options CPU_RSTK_EN
151 options CPU_SUSP_HLT
152 options CPU_UPGRADE_HW_CACHE
153 options CPU_WT_ALLOC
154 options CYRIX_CACHE_WORKS
155 options CYRIX_CACHE_REALLY_WORKS
156 #options NO_F00F_HACK
157
158 # Debug options
159 options NPX_DEBUG # enable npx debugging
160
161 #
162 # PERFMON causes the driver for Pentium/Pentium Pro performance counters
163 # to be compiled. See perfmon(4) for more information.
164 #
165 options PERFMON
166
167
168 #####################################################################
169 # NETWORKING OPTIONS
170
171 #
172 # DEVICE_POLLING adds support for mixed interrupt-polling handling
173 # of network device drivers, which has significant benefits in terms
174 # of robustness to overloads and responsivity, as well as permitting
175 # accurate scheduling of the CPU time between kernel network processing
176 # and other activities. The drawback is a moderate (up to 1/HZ seconds)
177 # potential increase in response times.
178 # It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
179 # to achieve smoother behaviour.
180 # Additionally, you can enable/disable polling at runtime with help of
181 # the ifconfig(8) utility, and select the CPU fraction reserved to
182 # userland with the sysctl variable kern.polling.user_frac
183 # (default 50, range 0..100).
184 #
185 # Not all device drivers support this mode of operation at the time of
186 # this writing. See polling(4) for more details.
187
188 options DEVICE_POLLING
189
190 # BPF_JITTER adds support for BPF just-in-time compiler.
191
192 options BPF_JITTER
193
194
195 #####################################################################
196 # MISCELLANEOUS DEVICES AND OPTIONS
197
198 #
199 # sio: serial ports (see sio(4)), including support for various
200 # PC Card devices, such as Modem and NICs
201 #
202 #device sio
203 hint.sio.0.at="isa"
204 hint.sio.0.port="0x3F8"
205 hint.sio.0.flags="0x10"
206 hint.sio.0.irq="4"
207
208 # `flags' specific to sio(4).
209 # 0x10 enable console support for this unit. Other console flags
210 # (if applicable) are ignored unless this is set. Enabling
211 # console support does not make the unit the preferred console.
212 # Boot with -h or set boot_serial=YES in the loader. For sio(4)
213 # specifically, the 0x20 flag can also be set (see above).
214 # Currently, at most one unit can have console support; the
215 # first one (in config file order) with this flag set is
216 # preferred. Setting this flag for sio0 gives the old behaviour.
217 # 0x20 force this unit to be the console (unless there is another
218 # higher priority console). This replaces the COMCONSOLE option.
219 # 0x40 reserve this unit for low level console operations. Do not
220 # access the device in any normal way.
221 # 0x80 use this port for serial line gdb support in ddb. Also known
222 # as debug port.
223 # PnP `flags'
224 # 0x1 disable probing of this device. Used to prevent your modem
225 # from being attached as a PnP modem.
226 # Other flags for sio that aren't documented in the man page.
227 # 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for
228 # ST16650A-compatible UARTs.
229
230 # Options for sio:
231 options COM_ESP # Code for Hayes ESP.
232 options COM_MULTIPORT # Code for some cards with shared IRQs.
233 options CONSPEED=115200 # Speed for serial console
234 # (default 9600).
235
236 device speaker #Play IBM BASIC-style noises out your speaker
237 hint.speaker.0.at="isa"
238 hint.speaker.0.port="0x35"
239 device gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT!
240 device apm_saver # Requires APM
241
242
243 #####################################################################
244 # HARDWARE BUS CONFIGURATION
245
246 #
247 # ISA bus
248 #
249 device isa
250
251 #
252 # Options for `isa':
253 #
254 # AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
255 # interrupt controller. This saves about 0.7-1.25 usec for each interrupt.
256 # This option breaks suspend/resume on some portables.
257 #
258 # MAXMEM specifies the amount of RAM on the machine; if this is not
259 # specified, FreeBSD will first read the amount of memory from the CMOS
260 # RAM, so the amount of memory will initially be limited to 64MB or 16MB
261 # depending on the BIOS. If the BIOS reports 64MB, a memory probe will
262 # then attempt to detect the installed amount of RAM. If this probe
263 # fails to detect >64MB RAM you will have to use the MAXMEM option.
264 # The amount is in kilobytes, so for a machine with 128MB of RAM, it would
265 # be 131072 (128 * 1024).
266 #
267 # BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
268 # reset the CPU for reboot. This is needed on some systems with broken
269 # keyboard controllers.
270 #
271 # EPSON_BOUNCEDMA was to use a bounce buffer to upper 15MB, but it's
272 # broken now.
273 #
274 # EPSON_MEMWIN disables 15-16MB chunk, and enables EPSON memory window.
275 #
276
277 options AUTO_EOI_1
278
279 options MAXMEM=(128*1024)
280 #options BROKEN_KEYBOARD_RESET
281 options EPSON_BOUNCEDMA
282 options EPSON_MEMWIN
283
284 #
285 # AGP GART support
286 device agp
287
288 # AGP debugging.
289 options AGP_DEBUG
290
291
292 #####################################################################
293 # HARDWARE DEVICE CONFIGURATION
294
295 # PC98 keyboard
296 device pckbd
297 hint.pckbd.0.at="isa"
298 hint.pckbd.0.port="0x041"
299 hint.pckbd.0.irq="1"
300
301 # GDC screen
302 device gdc
303 hint.gdc.0.at="isa"
304 options LINE30
305
306 #
307 # The Numeric Processing eXtension driver. This is non-optional.
308 device npx
309
310 #
311 # `flags' for npx0:
312 # 0x01 don't use the npx registers to optimize bcopy.
313 # 0x02 don't use the npx registers to optimize bzero.
314 # 0x04 don't use the npx registers to optimize copyin or copyout.
315 # The npx registers are normally used to optimize copying and zeroing when
316 # all of the following conditions are satisfied:
317 # I586_CPU is an option
318 # the cpu is an i586 (perhaps not a Pentium)
319 # the probe for npx0 succeeds
320 # INT 16 exception handling works.
321 # Then copying and zeroing using the npx registers is normally 30-100% faster.
322 # The flags can be used to control cases where it doesn't work or is slower.
323 # Setting them at boot time using hints works right (the optimizations
324 # are not used until later in the bootstrap when npx0 is attached).
325 # Flag 0x08 automatically disables the i586 optimized routines.
326 #
327
328 #
329 # Optional devices:
330 #
331
332 # 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create
333 # the /dev/3dfx0 device to work with glide implementations. This should get
334 # linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as
335 # the tdfx DRI module from XFree86 and is completely unrelated.
336 #
337 # To enable Linuxulator support, one must also include COMPAT_LINUX in the
338 # config as well. The other option is to load both as modules.
339
340 device tdfx # Enable 3Dfx Voodoo support
341 device tdfx_linux # Enable Linuxulator support
342
343 # Direct Rendering modules for 3D acceleration.
344 device drm # DRM core module required by DRM drivers
345 device mach64drm # ATI Rage Pro, Rage Mobility P/M, Rage XL
346 device mgadrm # AGP Matrox G200, G400, G450, G550
347 device r128drm # ATI Rage 128
348 device radeondrm # ATI Radeon
349 device savagedrm # S3 Savage3D, Savage4
350 device sisdrm # SiS 300/305, 540, 630
351 device tdfxdrm # 3dfx Voodoo 3/4/5 and Banshee
352 options DRM_DEBUG # Include debug printfs (slow)
353
354 #
355 # Bus mouse
356 #
357 device mse
358 hint.mse.0.at="isa"
359 hint.mse.0.port="0x7fd9"
360 hint.mse.0.irq="13"
361
362 #
363 # Network interfaces:
364 #
365
366 # ce: Cronyx Tau-PCI/32 sync single/dual port G.703/E1 serial adaptor
367 # with 32 HDLC subchannels (requires sppp (default), or NETGRAPH if
368 # NETGRAPH_CRONYX is configured)
369 # cp: Cronyx Tau-PCI sync single/dual/four port
370 # V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1
371 # serial adaptor (requires sppp (default), or NETGRAPH if
372 # NETGRAPH_CRONYX is configured)
373 # cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters and pccard
374 # ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
375 # HP PC Lan+, various PC Card devices
376 # (requires miibus)
377 # ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210;
378 # Intel EtherExpress
379 # le: AMD Am7900 LANCE and Am79C9xx ILACC/PCnet Ethernet interface driver
380 # sbni: Granch SBNI12-xx ISA and PCI adapters
381 # snc: National Semiconductor DP8393X SONIC Ethernet adapter driver
382
383 # Order for ISA/EISA devices is important here
384
385 device ce
386 device cp
387 device cs
388 device ed
389 hint.ed.0.at="isa"
390 hint.ed.0.port="0x280"
391 hint.ed.0.irq="5"
392 hint.ed.0.maddr="0xd8000"
393 device ie # Hints only required for Starlan
394 hint.ie.2.at="isa"
395 hint.ie.2.port="0x300"
396 hint.ie.2.irq="5"
397 hint.ie.2.maddr="0xd0000"
398 #device le
399 # Hint for the PC98-only C-NET(98)S C-bus front-end of le(4).
400 hint.le.0.at="isa"
401 hint.le.0.port="0x03d0"
402 hint.le.0.irq="6"
403 device sbni
404 hint.sbni.0.at="isa"
405 hint.sbni.0.port="0x210"
406 hint.sbni.0.irq="0xefdead"
407 hint.sbni.0.flags="0"
408 device snc
409 hint.snc.0.at="isa"
410 hint.snc.0.port="0x888"
411 hint.snc.0.irq="6"
412 hint.snc.0.maddr="0xc0000"
413
414 #
415 # SCSI host adapters:
416 #
417 # ct: WD33C93[ABC] based SCSI host adapters.
418 # ncv: NCR 53C500 based SCSI host adapters.
419 # nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
420 # stg: TMC 18C30, 18C50 based SCSI host adapters.
421
422 device ct
423 hint.ct.0.at="isa"
424 device ncv
425 device nsp
426 device stg
427
428 #
429 # SafeNet crypto driver: can be moved to the MI NOTES as soon as
430 # it's tested on a big-endian machine
431 #
432 device safe # SafeNet 1141
433 options SAFE_DEBUG # enable debugging support: hw.safe.debug
434 options SAFE_RNDTEST # enable rndtest support
435
436 #####################################################################
437
438 #
439 # Miscellaneous hardware:
440 #
441 # apm: Laptop Advanced Power Management (experimental)
442 # canbus: CanBe I/O Bus
443 # canbepm: CanBe Power Management Controller
444 # olpt: XXX
445 # pmc: Power Management Controller of NEC PC-98Note
446 # pmtimer: Timer device driver for power management events (APM or ACPI)
447 # Adjusts system timer at wakeup time
448 #
449 # Notes on APM
450 # The flags takes the following meaning for apm0:
451 # 0x0020 Statclock is broken.
452
453 device apm
454 hint.apm.0.flags="0x20"
455 device canbus
456 device canbepm
457 device olpt
458 hint.olpt.0.at="isa"
459 hint.olpt.0.port="0x040"
460 device pmc
461 hint.pmc.0.at="isa"
462 hint.pmc.0.port="0x8f0"
463 device pmtimer
464
465 #
466 # Laptop/Notebook options:
467 #
468 # See also:
469 # apm under `Miscellaneous hardware'
470 # above.
471
472 # For older notebooks that signal a powerfail condition (external
473 # power supply dropped, or battery state low) by issuing an NMI:
474
475 options POWERFAIL_NMI # make it beep instead of panicing
476
477 #
478 # Set the number of PV entries per process. Increasing this can
479 # stop panics related to heavy use of shared memory. However, that can
480 # (combined with large amounts of physical memory) cause panics at
481 # boot time due the kernel running out of VM space.
482 #
483 # If you're tweaking this, you might also want to increase the sysctls
484 # "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
485 #
486 # The value below is the one more than the default.
487 #
488 options PMAP_SHPGPERPROC=201
489
490 #
491 # Change the size of the kernel virtual address space. Due to
492 # constraints in loader(8) on i386, this must be a multiple of 4.
493 # 256 = 1 GB of kernel address space. Increasing this also causes
494 # a reduction of the address space in user processes. 512 splits
495 # the 4GB cpu address space in half (2GB user, 2GB kernel).
496 #
497 options KVA_PAGES=260
498
499
500 #####################################################################
501 # ABI Emulation
502
503 # Enable iBCS2 runtime support for SCO and ISC binaries
504 #options IBCS2
505
506 # Emulate spx device for client side of SVR3 local X interface
507 options SPX_HACK
508
509 # Enable Linux ABI emulation
510 options COMPAT_LINUX
511
512 # Enable i386 a.out binary support
513 options COMPAT_AOUT
514
515 # Enable the linux-like proc filesystem support (requires COMPAT_LINUX
516 # and PSEUDOFS)
517 options LINPROCFS
518
519 # Enable the linux-like sys filesystem support (requires COMPAT_LINUX
520 # and PSEUDOFS)
521 options LINSYSFS
522
523 #
524 # SysVR4 ABI emulation
525 #
526 # The svr4 ABI emulator can be statically compiled into the kernel or loaded as
527 # a KLD module.
528 # The STREAMS network emulation code can also be compiled statically or as a
529 # module. If loaded as a module, it must be loaded before the svr4 module
530 # (the /usr/sbin/svr4 script does this for you). If compiling statically,
531 # the `streams' device must be configured into any kernel which also
532 # specifies COMPAT_SVR4. It is possible to have a statically-configured
533 # STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4
534 # script understands that it doesn't need to load the `streams' module under
535 # those circumstances.
536 # Caveat: At this time, `options KTRACE' is required for the svr4 emulator
537 # (whether static or dynamic).
538 #
539 options COMPAT_SVR4 # build emulator statically
540 options DEBUG_SVR4 # enable verbose debugging
541 device streams # STREAMS network driver (required for svr4).
542
543
544 #####################################################################
545 # VM OPTIONS
546
547 # Disable the 4 MByte page PSE CPU feature. The PSE feature allows the
548 # kernel to use 4 MByte pages to map the kernel instead of 4k pages.
549 # This saves on the amount of memory needed for page tables needed to
550 # map the kernel. You should only disable this feature as a temporary
551 # workaround if you are having problems with it enabled.
552 #
553 #options DISABLE_PSE
554
555 # Disable the global pages PGE CPU feature. The PGE feature allows pages
556 # to be marked with the PG_G bit. TLB entries for these pages are not
557 # flushed from the cache when %cr3 is reloaded. This can make context
558 # switches less expensive. You should only disable this feature as a
559 # temporary workaround if you are having problems with it enabled.
560 #
561 #options DISABLE_PG_G
562
563 # KSTACK_PAGES is the number of memory pages to assign to the kernel
564 # stack of each thread.
565
566 options KSTACK_PAGES=3
567
568 #####################################################################
569
570 # More undocumented options for linting.
571 # Note that documenting these are not considered an affront.
572
573 options FB_INSTALL_CDEV # install a CDEV entry in /dev
574
575 options I586_PMC_GUPROF=0x70000
576 options KBDIO_DEBUG=2
577 options KBD_MAXRETRY=4
578 options KBD_MAXWAIT=6
579 options KBD_RESETDELAY=201
580
581 options TIMER_FREQ=((14318182+6)/12)
582
583 options VM_KMEM_SIZE
584 options VM_KMEM_SIZE_MAX
585 options VM_KMEM_SIZE_SCALE
586
587
588 #####################################################################
589 # Devices we don't want to deal with
590
591 nodevice bt
592 nodevice adw
593 nodevice aha
594 nodevice ahb
595 nodevice ahd
596 nodevice mpt
597 nodevice trm
598 nodevice wds
599 nodevice dpt
600 nodevice ciss
601 nodevice iir
602 nodevice mly
603 nodevice ida # Compaq Smart RAID
604 nodevice mlx # Mylex DAC960
605 nodevice amr # AMI MegaRAID
606 nodevice twe # 3ware ATA RAID
607 nodevice cm
608 nodevice ex
609 nodevice fea
610 nodevice intpm
611 nodevice alpm
612 nodevice ichsmb
613 nodevice viapm
614 nodevice amdpm
615 nodevice amdsmb
616 nodevice nfpm
617 nodevice nfsmb
618
619
620 #####################################################################
621 # Options we don't want to deal with
622
623 nooption AHD_DEBUG
624 nooption AHD_DEBUG_OPTS
625 nooption AHD_REG_PRETTY_PRINT
626 nooption ADW_ALLOW_MEMIO
627 nooption DPT_LOST_IRQ
628 nooption DPT_RESET_HBA
629 nooption DPT_TIMEOUT_FACTOR
630 nooption AAC_DEBUG
631
632
633 #####################################################################
634 # Make options we don't want to deal with
Cache object: c6158edfaeb7706bf40a5c0cfef5c36c
|