Options revision 1.1
11.1SmycroftHere is a list of hp300 specific kernel compilation options and what they
21.1Smycroftmean:
31.1Smycroft
41.1SmycroftHAVEVAC
51.1Smycroft	Compiles in support for virtually addressed cache (VAC) found on
61.1Smycroft	hp320 and 350 machines.  Should only be defined when HP320 and/or
71.1Smycroft	HP350 is.
81.1Smycroft
91.1SmycroftHP320
101.1Smycroft	Support for old hp320 machines: 16mhz 68020, HP MMU, 16mhz 68881
111.1Smycroft	and VAC.  Compiles in support for a VAC, HP MMU, and the 98620A
121.1Smycroft	16-bit DMA channel.  Forces the definition of HAVEVAC.
131.1Smycroft
141.1SmycroftHP350
151.1Smycroft	Support for old hp350 machines: 25mhz 68020, HP MMU, 20mhz 68881
161.1Smycroft	and VAC.  Compiles in support for a VAC and the HP MMU.  Differs
171.1Smycroft	from HP320 in that it has no support for 16-bit DMA controller.
181.1Smycroft	Forces the definition of HAVEVAC.
191.1Smycroft
201.1SmycroftHP330
211.1Smycroft	Support for old hp330 (and 318/319) machines: 16mhz 68020, 68551 PMMU
221.1Smycroft	and 16mhz 68881.  Compiles in support for PMMU.
231.1Smycroft
241.1SmycroftHP360
251.1Smycroft	Support for old hp360 (and 340) machines: 25mhz 68030+MMU and 25mhz
261.1Smycroft	68882.  Compiles in support for PMMU and 68030.  Differs from HP330
271.1Smycroft	in support for 68030 on-chip data cache.
281.1Smycroft
291.1SmycroftHP370
301.1Smycroft	Support for old hp370 (and current 345/375/400) machines: 33 (50) mhz
311.1Smycroft	68030+MMU and 33 (50) mhz 68882.  Compiles in support for PMMU, 68030
321.1Smycroft	and off-chip physically addressed cache.  Differs from 360 in only one
331.1Smycroft	place, in dealing with flushing the external cache.
341.1Smycroft
351.1SmycroftHP380
361.1Smycroft	Support for "current" hp380/425 (and 433) machines: 25 (33) mhz 68040
371.1Smycroft	with MMU/FPU.  Compiles in support for 68040.
381.1Smycroft
391.1SmycroftHPFPLIB
401.1Smycroft	Compiles in support to link with HP-UX's version of Motorola's 68040
411.1Smycroft	FP emulation library (hp300/hpux_float.o).  Kernel will build and run
421.1Smycroft	without this option, but many binaries will core dump.  Should not be
431.1Smycroft	defined unless HP380 is.
441.1Smycroft
451.1Smycroft
461.1SmycroftUSELEDS
471.1Smycroft	Twinkle the hp4xx front panel (or hp3xx internal) LEDs in the HP
481.1Smycroft	designated way.  Somewhat frivolous, but the heartbeat LED is
491.1Smycroft	useful to see if your machine is alive.
501.1Smycroft
511.1SmycroftPANICBUTTON
521.1Smycroft	Compiles in code which will enable a "force-crash" HIL keyboard
531.1Smycroft	sequence.  When the Reset key is typed twice in succession (within
541.1Smycroft	half a second) the kernel will panic.  Note that the HIL Reset key
551.1Smycroft	sends a NMI to the processor which will get the CPUs attention no
561.1Smycroft	matter what it is doing (i.e. as long as it isn't halted).  Alas,
571.1Smycroft	also note that the NMI is only sent when the keyboard is in "cooked"
581.1Smycroft	(ITE) mode.  If it is in "raw" mode (i.e. X-server is running) the
591.1Smycroft	Reset key is just another keypress event.  A cheezy substitute in
601.1Smycroft	this case is holding down the upper right-most unlabeled key and
611.1Smycroft	then pressing the unlabeled key to its left.  Note that this only
621.1Smycroft	works if HIL (level 1) interrupts are not masked.
631.1Smycroft
641.1SmycroftDEBUG
651.1Smycroft	Compiles in a variety of consistency checks and debug printfs
661.1Smycroft	throughout the hp300 MD code and device drivers.
671.1Smycroft
681.1SmycroftCOMPAT_HPUX
691.1Smycroft	Enables HP-UX binary compatibility mode.  Allows a variety of
701.1Smycroft	"recent" HP-UX binaries to be run unchanged.  Due to the
711.1Smycroft	evolutionary and "as-needed" nature of this code, "recent" is
721.1Smycroft	anywhere from release 6.2 to 8.0 of HP-UX.  It will run 8.0
731.1Smycroft	shared-library binaries (assuming all the necessary shared-libraries
741.1Smycroft	are installed in the filesystem).
751.1Smycroft
761.1SmycroftCOMPAT_OHPUX
771.1Smycroft	Compile in old 4.2-ish HP-UX (pre-6.0?) compatibility code.
781.1Smycroft
791.1SmycroftFPCOPROC
801.1Smycroft	Compile in code to support the 68881 and above FPU.  Should always
811.1Smycroft	be defined, since all supported SPUs have one.  Don't even know if
821.1Smycroft	it will compile, much less work,  without this option.  Defined in
831.1Smycroft	the prototype makefile (hp300/conf/Makefile.hp300).
841.1Smycroft
851.1SmycroftDCMSTATS
861.1Smycroft	Compile in code to collect a variety of transmit/receive statistics
871.1Smycroft	for the 98642 4-port MUX.
881.1Smycroft
891.1SmycroftWAITHIST
901.1Smycroft	Compile in code to collect statistics about the distribution of
911.1Smycroft	wait-times for various busy waits in the SCSI host-adaptor driver.
921.1Smycroft
931.1SmycroftSTACKCHECK
941.1Smycroft	Enables two types of kernel stack checking in hp300/hp300/locore.s:
951.1Smycroft	1. stack "overflow".  On every clock interrupt we ensure that
961.1Smycroft	   the current kernel stack has not grown into the user struct
971.1Smycroft	   page, i.e. size exceeded UPAGES-1 pages.
981.1Smycroft	2. stack "underflow".  Before every rte to user mode we ensure
991.1Smycroft	   that we will be exactly at the base of the stack after the
1001.1Smycroft	   exception frame has been popped.
1011.1Smycroft	This option can degrade performance considerably, use it only if
1021.1Smycroft	you suspect a problem with kernel stacks.
1031.1Smycroft
1041.1SmycroftSCSI_REVPRI
1051.1Smycroft	Changes autoconf to start matching logical SCSI devices starting
1061.1Smycroft	at slave 6 and working backwards instead of starting at slave 0
1071.1Smycroft	and working up.  Later releases of the HP boot ROM search for
1081.1Smycroft	boot devices in this manner.  This is apparently the order in
1091.1Smycroft	which priority is given to slaves on the host adaptor.  Define
1101.1Smycroft	this if you use wildcarding and want to stay in sync with the
1111.1Smycroft	boot ROM's strategy.
1121.1Smycroft
1131.1SmycroftMAPPEDCOPY
1141.1Smycroft	Use page remapping to do large copyin/copyouts.  When defined
1151.1Smycroft	the default is to use mapped copy for operations on one page
1161.1Smycroft	or more except on machines with virtually-indexed caches.
1171.1Smycroft	See initcpu() in machdep.c
1181.1Smycroft
1191.1SmycroftBUFFERS_UNMANAGED
1201.1Smycroft	Set up the buffer cache "below" the machine independent VM.
1211.1Smycroft	Normally, in startup() we use vm_map operations to initially
1221.1Smycroft	assign physical memory to the buffers.  This creates a map with
1231.1Smycroft	a huge number of map entries (twice the number of buffers)
1241.1Smycroft	which serve no purpose since remaining buffer operations
1251.1Smycroft	(i.e. pagemove) work below the MI layer anyway.  Defining this
1261.1Smycroft	symbol will cause startup() to use pmap operations to map the
1271.1Smycroft	initial pages leaving the buffer_map one big entry.
128