Commit Graph

659 Commits

Author SHA1 Message Date
matthias 80502accfe * Remove unused ncr_minphys prototype.
* Add prototype for ncr_ready.
* Add ncr_wait_not_req function from Ian Dall:
	The ncr_wait_not_req business is to avoid a potential race.
	When the pseudo DMA finishes, the target may not have
	lowered REQ yet. If we just charge ahead, we eventually test
	for phase when REQ is high. However, if REQ has not yet gone
	low for the last byte transferred, this will be the wrong
	phase. This is taken from the dp8490 application notes. The
	last ACK is not deasserted until the dma is completed.
	Deasserting the last ACK should be delayed until the last
	REQ is deasserted. I am not sure if there are ever devices
	this slow, but I believe the code is "more correct".
1997-03-20 12:03:01 +00:00
matthias dd38be40dc * Add prototypes for pmap_pte, pmap_testbit and pmap_changebit.
* Remove PTDpaddr. This is no longer in use.
1997-03-20 12:02:42 +00:00
matthias 5bb951d4d4 * Remove IEDGE and IPLOARITY. These constants are no longer in use. 1997-03-20 12:02:40 +00:00
matthias 1e27bb59c8 * Add prototypes for kdb_trap and db_dasm_ns32k. 1997-03-20 12:02:37 +00:00
matthias 8462078c2a * Add prototypes for ieee_handle_exception, ram_size, restore_fpu_context
and save_fpu_context.
* Remove prototypes for cpu_reset (it is local to machdep.c) and
  startrtclock (it does no longer exist).
1997-03-20 12:02:36 +00:00
matthias 98eb9b47ea * New file. This contains the definitions used to fill the cdev and
bdev switches for devices unique to the pc532.
1997-03-20 12:02:34 +00:00
matthias bcdbce6d4f * Initialize the interrupt controller part of the ICU in intr_init.
* Move softnet and the establishing of the softclock and softnet
  interrupts to machdep.c.
* Fix some printf format strings.
1997-03-20 12:02:00 +00:00
matthias 8a6b052853 * New file that contains the match/attach/print function for the mainbus
device.
* Some generic ICU initialization is now done in mbattach.
1997-03-20 12:01:23 +00:00
matthias 715cb6f3df * Include sys/ptrace.h to get prototypes for process_read_regs and
process_read_fpregs.
* Remove extern definitions for proc_trampoline and pmap_pte. We
  get prototypes for these from some headerfiles.
1997-03-20 12:01:03 +00:00
matthias 6a7e85766c * Include sys/kgdb.h to get prototypes for kgdb_trap.
* Fix some printf format strings.
1997-03-20 12:00:59 +00:00
matthias 0f39516c71 * Remove unused local variable in sys_sysarch. 1997-03-20 12:00:58 +00:00
matthias a9e83c741a * Include sys/proc.h, sys/fcntl.h and machine/conf.h to get some missing
prototypes.
* Get rid of RTC_DEV. All rtc support now lives in clock.c.
1997-03-20 12:00:56 +00:00
matthias 2608cc4aff * Remove stale rcsid string.
* Add missing prototypes.
* Move over softnet() from intr.c.
* Establish softnet and softclock interrupts in init532.
* Misc cleanup to get it compiled with the new CWARNFLAGS.
1997-03-20 12:00:54 +00:00
matthias 62d993de87 * Remove trailing newline. 1997-03-20 12:00:51 +00:00
matthias 5e6e424a62 * Initialize the interrupt controller part of the ICU in intr_init.
* Move softnet and the establishing of the softclock and softnet
  interrupts to machdep.c.
* Fix some printf format strings.
1997-03-20 12:00:50 +00:00
matthias 5e1cac29c9 * Include sys/systm.h and netinet/in.h to get missing prototypes. 1997-03-20 12:00:47 +00:00
matthias 855084814b * Include <sys/disk.h> to get prototypes for dk_establish.
* Fix definition of strat arg for {read,write}disklabel.
1997-03-20 12:00:46 +00:00
matthias bd1c07266e * add missing prototypes.
* Fix some printf format strings.
* Remove unused Debugger() definition.
1997-03-20 12:00:43 +00:00
matthias 79e491a855 * Add missing prototypes and casts.
* Fix a printf format string.
1997-03-20 12:00:42 +00:00
matthias 0b6fa5346b * Add missing prototypes. 1997-03-20 12:00:40 +00:00
matthias 966187a7e0 * Add missing prototypes.
* Reconstruct a piece of text that got lost in the past.
* Make the output for undefined instructions more consistent.
1997-03-20 12:00:37 +00:00
matthias 4712de3be8 * Do not call all the *_decl macros. This is done by <sys/conf.h> and
<machine/conf.h>.
1997-03-20 12:00:34 +00:00
matthias b677f20e5d * Make the rtc and the clock real devices. Initialize the clock parts
of the ICU in clock_attach.
* Pull over (and reformat) rtc_rw from mem.c.
* Convert the rtc driver to use /sys/dev/clock_subr.c (partially by
  stealing code from the sun3 port).
1997-03-20 12:00:33 +00:00
matthias fa30cfc066 * Remove all the mainbus stuff. This is in mainbus.c now.
* The clock is no longer started by startrtclock. This is done by
  clock_attach now.
1997-03-20 12:00:30 +00:00
thorpej 69d841a462 Add the "se" device at cdev major 22. 1997-03-18 01:41:40 +00:00
is 07b064e02e New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
mycroft f868dff8d3 Define the `cleankernel' target consistently with other ports. 1997-03-14 23:27:29 +00:00
mycroft 44149b42c2 Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.
1997-03-14 23:21:36 +00:00
matthias d8319f5c75 remove leftover from switch to the mi kgdb interface. 1997-03-13 10:25:25 +00:00
matthias c6d2740564 Integrate Phil Budne's latest changes to the scn driver. From his README:
* Uses Counter/Timer dynamicly for rate generation; You can
	  have both 19200 and 38400 on one duart, and 57600 on another!
	* Improved scninfo program to dump driver internal information.
	  implemented counters for parity err, framing err, break
	* Delays changes until transmitter idle to avoid "glitches"
	* Cleaned up scn_softc member names
	* Untested support for sc26c92 (I don't yet have any to test with);
	  + Will use alternate rate tables (include 115.2kbps and 230.4kbps)
	  + Will raise FIFO rx interrupt threshold and watchdog timer
	    at higher rates.
	  + Unknown (to me) how fast pc532 MC145406 driver chips can go

	NOTE: It seems like it may be a BAD idea to use a sc26c92 as
	a console port for now; the PROM doesn't know to reset the
	chip back to scn2692 mode!!
1997-03-13 10:24:14 +00:00
matthias bda3351fc0 Some cosmetic changes. 1997-03-01 09:50:44 +00:00
matthias dd064fc88a Reset the scsibus only when bit 2 is set in flags. 1997-03-01 09:50:40 +00:00
matthias da45c7f449 remove reference to pc532/kgdb_stub.c. We now use the mi version. 1997-03-01 09:50:30 +00:00
matthias 5a74618671 The ns32532 has no alignment restrictions. Define ALIGNED_POINTER to
reflect this.
1997-03-01 09:50:19 +00:00
matthias 035bf3987f make db_expr_t a long. 1997-03-01 09:50:16 +00:00
matthias 73ea4ca540 Document a non-obvious use of addr in interrupt(). 1997-03-01 09:49:48 +00:00
matthias 799c3228ec kgdb_connect and kgdb_panic are not define in the mi kgdb_stub.c. Define
them here.
1997-03-01 09:49:45 +00:00
matthias 63183795c0 imask[IPL_ZERO] was updated after recomputing the run masks for all the
interrupt handlers. Due to this
  - DIAGNOSTIC kernels would panic
  - check_sir would run with the interrupt registered last blocked
Credits for finding and fixing this go to Ian Dall.
1997-03-01 09:49:44 +00:00
matthias 597322b455 * Adapt to changed definition of struct db_variable.
* Some cosmetic changes.
1997-03-01 09:49:42 +00:00
matthias 453b47e7bb removed. We now use the mi version from /sys/kern. 1997-03-01 09:49:20 +00:00
gwr 2de163471e Minimal changes to adapt to removal of NCR5380_PERMIT_RESELECT.
This driver should be updated to allow per-target control over
disconnect/reselect, but I will leave that to the port masters.
1997-02-26 22:29:08 +00:00
fvdl 115b6d92fa Define ALIGNED_POINTER 1997-02-24 23:16:53 +00:00
matthias 258699485f add missing parentheses to assym.h rule. 1997-02-10 10:54:00 +00:00
matthias 9712aaf1b5 * clean:: -> clean: change. 1997-02-08 09:34:46 +00:00
matthias f3cdc89574 * Use Phil Budne's full name in the copyright header.
* Define RECOVER to something faster.
* Check for a valid softc in scnsoft. When there is
  a "hole" (e.g. you have scn0,scn1, scn4, scn5) the
  old code would panic. Thank's to Phil Budne for
  finding and fixing this bug.
1997-02-08 09:34:31 +00:00
matthias f3ae5cdf29 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:12 +00:00
matthias 8a3b8c0477 * Fix a bug that would had cause an hang on fpuless machines. 1997-02-08 09:34:09 +00:00
matthias 8ec2fa0cfa * Convert NetBSD/pc532 to use the new libkvm by stealing code
from the alpha port.
1997-02-08 09:34:06 +00:00
matthias 5a17e54866 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:01 +00:00
matthias 92842a6db7 * Remove some unused macros. 1997-02-08 09:33:58 +00:00
matthias efea7eb83f * Correctly format the NetBSD-Id string. 1997-02-08 09:33:55 +00:00
matthias 6f5bca455b * Remove whitespaces from empty lines.
* Add (commented out) type and asmtype commands. asmtype will
  be used to define the gcc constraint used to emit constants
  and type will be used to define the type the constant should
  get casted to before passing it to printf.
1997-02-08 09:33:52 +00:00
matthias 869f7f78fb * Now that we use genassym.sh/genassym.cf this is no longer needed. 1997-02-08 09:33:50 +00:00
matthias 0e2fbfdbcd * The rom monitor and the bootprogram might have another idea about unit
numbers then the kernel. Use some code stolen from the mvme68k port
  to find the bootdevice.
1997-02-08 09:33:45 +00:00
matthias ed7d482ddf * Don't wildcard scn[0-7]. This will not work for holes (at the moment). 1997-02-08 09:33:28 +00:00
matthias d90eb8ee1e * Corrected rule for assym.h. In case genassym.sh fails assym.h
has to be removed and a non-zero exit value has to be provided
  to make.
* Removed last references to genassym and genassym.o.
1997-02-08 09:33:27 +00:00
matthias 3eded68a05 * Added PFIL_HOOKS to make modloading of the ipf module possible.
* Aded UNION fs. The lkm doesn't work at the moment.
1997-02-08 09:33:24 +00:00
matthias 6224783740 * Added KMEMSTATS option to save some memory. 1997-02-08 09:33:22 +00:00
matthias 021ca50fe4 * Added INSECURE to allow modloads in multiuser mode.
* Added PFIL_HOOKS to make modloading of the ipf module possible.
1997-02-08 09:33:20 +00:00
matthias 64065fbba2 * Removed old and invalid comment.
* Added LKM, PFIL_HOOKS and NFSSERVER options.
* Added four ccd devices.
* Removed PLIP and NO_INLINE_SPLX options.
* Removed MFS, MSDOSFS, CD9660, FDESK, KERNFS and PROCFS filesystems
  because they all are lkmable.
1997-02-08 09:33:17 +00:00
matthias 67c8bca33d * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:33:03 +00:00
matthias 8f1067c4d8 * Remove some unused macros. 1997-02-08 09:32:33 +00:00
matthias 1f7aefb0a1 * Declare bootdev and booted_device. 1997-02-08 09:32:30 +00:00
perry 19d153fc48 Nuke some options GENERIC residue. 1997-02-04 04:57:10 +00:00
perry 0b3a46d6b3 Nuke some GENERIC residue. 1997-02-04 04:31:55 +00:00
matthias a6befcbede * clean, depend :: -> : change
* use genassym.sh to create assym.h
1997-02-01 09:23:02 +00:00
thorpej 739f23a219 This file is obsolete; this information is now generated by config(8). 1997-01-31 05:12:49 +00:00
thorpej 0735d8d32e Use new machine-independent setroot(). 1997-01-31 01:57:51 +00:00
thorpej fcb565dde2 Adopt for new file system and root spec grammar. 1997-01-31 01:57:08 +00:00
matthias 1370131ffd Add scripts and documentation for a new method to create assym.h files.
With the kern/genassym.sh script HOSTED_CC is no longer used to create
assym.h files. This should make crosscompilation easier.
1997-01-30 09:37:20 +00:00
thorpej 7b40f5228e "md" is declared in sys/conf/files, now. 1997-01-21 09:39:20 +00:00
perry b89a3425b7 Eliminate obsolete TIMEZONE and DST options.
Eliminate obsolete global kernel variable "struct timezone tz"
Add RTC_OFFSET option
Add global kernel variable rtc_offset, which is initialized by
RTC_OFFSET at kernel compile time.
on i386, x68k, mac68k, pc532 and arm32, RTC_OFFSET indicates how many
minutes west (east) of GMT the hardware RTC runs. Defaults to 0.
Places where tz variable was used to indicate this in the past have
been replaced with rtc_offset.
Add sysctl interface to rtc_offset.
Kill obsolete DST_* macros in sys/time.h
gettimeofday now always returns zeroed timezone if zone is requested.
settimeofday now ignores and logs attempts to set non-existant kernel
timezone.
1997-01-15 01:28:28 +00:00
matthias 27381f0aaf * Add cdevsw entry for /dev/ipl. 1997-01-11 11:00:41 +00:00
matthias 47fe16475c * Use confargs in probe and attach routines.
* Irq and address are now printed by mbprint.
1997-01-11 10:58:12 +00:00
pk 072388d107 Device rename: `rd' => `md' 1997-01-01 23:04:58 +00:00
pk f750d179be rename: ramdisk => md 1996-12-28 23:42:33 +00:00
pk 603b61c3e0 rename: ramdisk => md 1996-12-28 23:22:07 +00:00
matthias e16e1de8fd * remove NKPDE, this was never used.
* add IV_MASK (new member of struct iv) and IV_SIZE (sizeof(struct iv)).
1996-12-28 09:15:27 +00:00
matthias 92a5d4d222 * We no longer have a scsi subdirectory. Remove it from the list of
directories in which get tag links.
1996-12-23 08:38:02 +00:00
matthias 2e7cb22267 * Use bcopy, not memcpy. 1996-12-23 08:37:55 +00:00
matthias 54e6abd9e7 * Remove __BROKEN_INDIRECT_CONFIG. 1996-12-23 08:37:43 +00:00
matthias 4bd938a998 * Remove IPL_NONE. This is no longer used.
* Add IPL_HIGH. Alias IPL_HIGH to IPL_RTTY
* Define splrtty (used by the scn driver).
* Add iv_level and iv_mask to struct iv. These define the IPL at
  which the handler should run.
* intr_establish now takes *two* ipls. One at which the handler should run,
  and one in which the interrupt should get blocked.
1996-12-23 08:37:41 +00:00
matthias b01c5dfbcb * Define NKPDE_BASE, NKPDE_MAX and NKPDE_SCALE for boottime computation of
nkpde (From the i386 port).
1996-12-23 08:37:38 +00:00
matthias b30b4f9fcf * Define new sysctl variable "machdep.nkpde" (From the i386 port). 1996-12-23 08:37:37 +00:00
matthias 41cc99aa8c * Rearange duart_info and add hwflags to store uart type (Ian Dall).
* Define SCN_RING_HIWAT and add sc_rbhiwat to scn_softc. When the
  ringbuffer gets full up to this mark, rts gets asserted (Ian Dall).
* Add sc_rx_blocked to scn_softc. This is used to tell scnsoft that
  rxinterrupts are blocked (Ian Dall).
1996-12-23 08:37:11 +00:00
matthias 2c7e970491 * Define the bits in MR0 for the SCC26C92 (Ian Dall).
* Define SCC26C92-only commands (Ian Dall).
1996-12-23 08:37:10 +00:00
matthias b080d4fea0 * Match functions take a "struct cfdata *" as their second argument.
* intr_establish now takes *two* ipls. One at which the handler should run,
  and one in which the interrupt should get blocked.

All the following changes were provided by Ian Dall:
* Remove SCN_HSOFT. Now that the pc532's software interrupt system is running
  from int14, this won't work anymore.
* Add code to detect uart type (SCN2681, SCC2692 or SCC26C92).
* Cleanup my RECOVER mess. Thank's to Ian Dall for reading the datasheet
  and removing all the unnecessary RECOVERs.
* Cleanup scnrxintr.
* Implement scnhiwflow.
* Do not use automatic RTS. This and scnhiflow and some changes to the
  interrupt system suggested by Ian fix the scn overrun problem at 57600
  baud.
1996-12-23 08:37:07 +00:00
matthias 70597563c6 * Match functions take a "struct cfdata *" as their second argument.
* intr_establish now takes *two* ipls. One at which the handler should run,
  and one in which the interrupt should get blocked.
* Make transfersize configurable for input and output. Default the input
  transfersize to 128 bytes. That way interrupts won't be disabled for more
  then about 128us-256us for slow targets. This is necessary to prevent scn
  fifo overruns. Cleanup the pdma code. Thank's to Ian Dall for these
  changes.
1996-12-23 08:37:04 +00:00
matthias c3f3bc0228 * Match functions take a "struct cfdata *" as their second argument.
* intr_establish now takes *two* ipls. One at which the handler should run,
  and one in which the interrupt should get blocked.
1996-12-23 08:37:02 +00:00
matthias 7736d33def * membus is now called mainbus. 1996-12-23 08:36:43 +00:00
matthias b6f24c53a9 * Use std.pc532.
* Remove obsolete options CONFIG_NEW and CON_BRK_PANIC.
1996-12-23 08:36:40 +00:00
matthias a6953fcdd8 * membus is now called mainbus. 1996-12-23 08:36:37 +00:00
matthias d949824775 * Use std.pc532.
* Make it work on 30mhz machines.
* Configure MSDOSFS, CD9660, KERNFS, NFSCLIENT and INET.
* Configure SCSI-cds, slip and ppp.
* Update for mi ramdisk driver.
1996-12-23 08:36:36 +00:00
matthias bddb87af16 * Configure UNION and NULLFS. UNION doesn't seem to work as a lkm yet. 1996-12-23 08:36:33 +00:00
matthias 181cf4f705 * Use std.pc532.
* Make it work on 30mhz machines.
1996-12-23 08:36:31 +00:00
matthias 553486636e * Define and use nkpde. 1996-12-23 08:36:11 +00:00
matthias 15e824377a * Add code for CPU_NKPDE sysctl.
* Compute nkpde at boottime.
1996-12-23 08:36:08 +00:00
matthias eb68ad8281 * Recode _interrupt to use IV_MASK. 1996-12-23 08:36:05 +00:00
matthias 99cc2dd46d * Initialize IPL_HIGH's imask to 0xffffffff.
* Initialize iv_level for all interrupts.
* Protect the call to the sir-handler with splraise.
* intr_establish now takes *two* ipls. One at which the handler should run,
  and one in which the interrupt should get blocked.
* Compute iv_mask for all interrupts in intr_establish.
1996-12-23 08:36:02 +00:00
matthias c1921b48eb * intr_establish now takes *two* ipls. One at which the handler should run,
and one in which the interrupt should get blocked.
1996-12-23 08:36:00 +00:00
matthias 9d6e666ea7 * Rename membus to mainbus.
* Remove config_scan. Thank's to Chris G. Demetriou for providing patches.
1996-12-23 08:35:57 +00:00
veego 26f6e45d39 Fix a typo: s/COPT/COPTS/ 1996-12-22 19:14:14 +00:00
matthias 781cd59dd4 * Enlarge kernel virtual memory space. The pc532 kernel now runs at
0xf8000000. When the kernel was running at 0xfe000000, the INSTALL
  kernel would not run on a 32mb machine.
1996-12-07 09:24:37 +00:00
cgd 96acdadef7 First step inn removing config_scan() and the hacks that gave devices
on indirect-config busses a (permanent) softc that they could share
between 'match' and 'attach' routines:

Define __BROKEN_INDIRECT_CONFIG so that old autoconfiguration
interfaces are used, until drivers are converted to use the new
interfaces (actually, converted back to use the _older_ interfaces)
which prohibit indirect configuration devices from receiving a softc
in their match routine that they can share with their attach routine.
1996-12-05 00:13:47 +00:00
jonathan 4c1d96de78 * Replace explicit -O2 in CFLAGS with COPTS macro. Default COPTS?= -O2.
Lets users over-ride with makeoptions COPTS="..." in kernel config files.

  Leave `mandatory' flags (like  -msoft-float which  on m68k enforces no
  FP in kernel) in CFLAGS.
1996-12-01 06:12:25 +00:00
jtc 9da5f60715 PROF -> GPROF 1996-11-30 02:48:57 +00:00
matthias e756776636 * Fix cut and paste error. 1996-11-24 13:35:18 +00:00
matthias 901a1f3641 * Calibrate _delay for a 30mhz system if CPU30MHZ is defined.
* A few changes to _interrupt to support the new softint mechanism.
1996-11-24 13:35:15 +00:00
matthias 110e4e09ff * Prototyping tweaks.
* Support for the new softint mechanism. Softints are now requested by
  triggering an unused ICU hardware interrupt. The idea for this was
  contributed by Phil Budne.
1996-11-24 13:35:12 +00:00
matthias 518b5e6ae5 * Prototyping tweaks. 1996-11-24 13:35:10 +00:00
matthias 0f6a4a93fd * Rewrite of membusattach/membusscan/membusprint. 1996-11-24 13:35:08 +00:00
matthias 58dc92f52e * Prototyping tweaks.
* Changes to support the new softint mechanism.
1996-11-24 13:34:45 +00:00
matthias 591a6794e2 * A few changes to support the new softint mechanism. 1996-11-24 13:34:44 +00:00
matthias 9f82b6d4d1 * New file. Defines the structure describing config arguments passed to
match/attach functions.
1996-11-24 13:34:42 +00:00
matthias a0117d39dd * Prototyping tweaks.
* Real probe code added.
* Duart info is now allocated only for devices that are present.
* Added IO-Recovery delays for 30mhz systems.
* Removed a few potential NULL-pointer references.
1996-11-24 13:32:53 +00:00
matthias ee943634a8 * Prototyping tweaks. 1996-11-24 13:32:48 +00:00
matthias e9d6e1a616 * New file. Defines config options and devices common to all pc532s. 1996-11-24 13:28:56 +00:00
matthias 63758fd99b * Include to std.pc532 added. 1996-11-24 13:28:52 +00:00
jtc 16b48272c4 Define _BSD_CLOCKID_T_ and _BSD_TIMER_T_ 1996-11-15 22:38:45 +00:00
matthias 10af6d961f * We get bcopy from libkern.o now. 1996-11-07 07:34:02 +00:00
matthias 6ed1a51b35 * libkern.o already has bcopy.o. Link it in front of libsa.a. 1996-11-07 07:33:55 +00:00
matthias a95805b41f * Define the ALTENTRY macro. 1996-11-07 07:33:28 +00:00
matthias ee011c080d * The pc532 port is now using the mi ramdisk driver.
* Use the mi version of ns_cksum.
1996-11-07 07:32:29 +00:00
matthias 5ca00f7293 * Cosmetic changes. 1996-11-07 07:32:21 +00:00
matthias 5596cf17ea * Cosmetic changes.
* Configure LKM support.
* Remove filesystems that are normally not used.
* Configure SCSI-uk driver.
1996-11-07 07:32:18 +00:00
matthias 93811ddf97 * Cosmetic changes.
* Only FFS is needed for the install kernel.
* Configure the console to 8N1 (that's what the pc532's rom monitor uses).
* The install kernel doesn't need to know about CDROM drives.
* Use the new mi ramdisk.
1996-11-07 07:32:13 +00:00
matthias 7a27370327 * Cosmetic changes.
* Configure only NFS, FFS and LFS filesystems. All other filesystems are
modloadable.
* Configure SCSI-uk driver.
1996-11-07 07:32:10 +00:00
matthias bc9eccaebb * Cosmetic changes.
* Configure SCSI-uk driver.
1996-11-07 07:32:07 +00:00
matthias 1b92fb966e * bcopy and bzero are part of libkern now. 1996-11-07 07:31:20 +00:00
matthias dbaaf5e560 * rd_attach_hook/rd_open_hook. Stolen from sun3/dev/rd_root.c 1996-11-07 07:21:00 +00:00
matthias ddb9815a80 * We are using the mi ramdisk driver now. 1996-11-07 07:20:37 +00:00
matthias 4ae217f7fa * We are using the mi ncr driver now. 1996-11-07 07:20:29 +00:00
matthias df2a490d8f * Not in use for a very long time. 1996-11-07 07:20:28 +00:00
matthias cab14d3b2b * ntoh is part of libkern now. 1996-11-07 07:18:27 +00:00
matthias c1e3a7db8d * This not different from netns/ns_cksum.c. Delete this copy. 1996-11-07 07:18:26 +00:00
matthias f0d6340cba * Tell the vm system that kerneltext is mapped readonly. Stolen from
atari/atari/machdep.c.
1996-11-07 07:18:23 +00:00
matthias 8ea6b5f65c * Add ch, ss and uk devices.
* Make lkms work.
1996-11-07 07:18:21 +00:00
matthias eead8b9100 * bcopy is part of libkern now. 1996-11-07 07:18:19 +00:00
cgd 8a3333b2a9 Fix an inconsistency that came in with Lite: setrq() was renamed to
setrunqueue(), but remrq() was never renamed.  Rename remrq() to
remrunqueue().
1996-11-06 20:19:19 +00:00
matthias 8738c57e61 * Phil Budne's is now integrated.
* Remote kerneldebugging with gdb works too.
1996-10-23 07:55:10 +00:00
matthias 2336fbd2c6 * Phil Budne's much improved scn driver. 1996-10-23 07:52:35 +00:00
matthias e7e91939da * Remove references to deleted files (oldncr.c, dp.c). 1996-10-23 07:50:03 +00:00
matthias 54eec4c697 * Add EXEC_SCRIPT and EXEC_AOUT. 1996-10-23 07:49:58 +00:00
matthias 0cdf2807ab * KLONDIKE has only four serial lines.
* KLONDIKE has a ns381 installed.
* Add EXEC_SCRIPT and EXEC_AOUT.
* Enable ddb.
* Enable FDESC.
* Monitor speed is 9600 baud.
* Monitor speaks 8N1.
* Pin down devices on the SCSI-Bus.
* Configure vnd, bpfilter, ppp and tun.
1996-10-23 07:49:55 +00:00
matthias 45fe815542 * Add EXEC_SCRIPT and EXEC_AOUT.
* Remove lines commented out.
* scsibus0 is attached to ncr0.
1996-10-23 07:49:54 +00:00
matthias 225801ae14 * New file; configuration for my second pc532. 1996-10-23 07:49:52 +00:00
matthias 414cbce393 * Add EXEC_SCRIPT and EXEC_AOUT.
* Use new options for to set the console baudrate and the default
tty mode.
* Include PPP_BSDCOMP and PPP_DEFLATE.
* scsibus0 is attached to ncr0.
1996-10-23 07:49:49 +00:00
matthias 63d15a966d * Sync with i386 version.
* Scratch ram for debugger stacks ends at VM_MIN_KERNEL_ADDRESS + 0x1000
and not at VM_MIN_KERNEL_ADDRESS + 0x2000.
1996-10-23 07:46:08 +00:00
matthias e9a160096b * Sync with i386 version. 1996-10-23 07:46:07 +00:00
matthias 4b2a039488 * configure() has to be declared void. 1996-10-23 07:46:04 +00:00
matthias 865930408c * Do not include limits.h, use machine/limits.h. 1996-10-23 07:43:44 +00:00
matthias 897acfdcbb * Do not include stddef.h.
* Add definition of offsetof.
1996-10-23 07:43:42 +00:00
matthias 1a81564477 * Declare reserve_dumppages and pmap_activate. 1996-10-23 07:30:57 +00:00
matthias 1731660b98 * Declare kvtop. 1996-10-23 07:30:54 +00:00
thorpej b12cf5890d RCS id police. 1996-10-15 21:59:03 +00:00
christos e37692f04d backout previous kprintf change 1996-10-13 03:29:05 +00:00
christos 7c9b908394 use in_addr_t and in_port_t 1996-10-13 03:12:38 +00:00
christos 848c9d8f02 printf -> kprintf, sprintf -> ksprintf 1996-10-11 00:39:22 +00:00
matthias 9176e41d88 * Pull over prototyping fixes from i386. 1996-10-09 07:45:28 +00:00
matthias b43657168e * Add prototypes.
* Add support for ddb and kgdb.
1996-10-09 07:45:25 +00:00
matthias 9d22d4d454 * Fix declaration of setconf. 1996-10-09 07:45:23 +00:00
matthias 85ddb3de03 * A few prototyping tweakes and deletion of unused variables.
(pulled over from i386).
1996-10-09 07:45:20 +00:00
matthias e90bc618bd * Support for ddb.
* New patchable variable maxphysmem to limit physical memory.
That's useful to simulate small machines for testing install
kernels.
* Make debugging crashdumps with gdb -k work.
* microtime is moved to clock.c.
* Reserve memory for symbol table when ddb is configured.
* Move checks for RB_KDB into consinit.
1996-10-09 07:45:17 +00:00
matthias 89a49bedc6 * Set _kernel_text to the correct value.
* Fix a typo in delay().
* Disable generation of profiling prologue for proc_trampoline,
sigcode, idle, handle_trap, flush_icache, svc and interrupt.
* A few tweaks to make kgdb and ddb work nicer.
1996-10-09 07:45:13 +00:00
matthias 560bd7e107 * New file for kgdb support. 1996-10-09 07:45:06 +00:00
matthias 9c3592a5ca * Reduce softint latency.
* Pull over change from i386 to make statclock > (tty | net | bio).
1996-10-09 07:45:05 +00:00
matthias 1dceda47e0 * Make it work for NetBSD and not for mach. Most of
this was done by Phil Budne.
* Remove things not used by NetBSD.
* Make stacktracebacks work better.
1996-10-09 07:45:03 +00:00
matthias 4484a4406d * New file for routines common for kgdb and ddb support. 1996-10-09 07:45:00 +00:00
matthias 6f37f75ecb * Make it work for NetBSD and not for mach. Most of
this was done by Phil Budne.
* Move some functions shared with kgdb to db_memrw.c.
1996-10-09 07:44:59 +00:00
matthias 79ded0d7e1 * Make it work for NetBSD and not for mach. Most of
this was done by Phil Budne.
1996-10-09 07:44:56 +00:00
matthias afd88ad8ed * Remove unused function spinwait.
* Add Phil Budne's microtime.
1996-10-09 07:44:54 +00:00
matthias 00695d93ae * Now that ddb works, boot should set esym to the correct value... 1996-10-09 07:42:13 +00:00
matthias 483cff53cd * Add the README file from Ian Dall's original distribution. 1996-10-09 07:40:45 +00:00
matthias 84b238b8eb * Add files needed for kgdb and ddb.
* Delete (commented out) ntoh.s.
1996-10-09 07:34:42 +00:00
matthias f0c2efd752 * Remove ncr_minphys. Simply use minphys.
* Protect interrupt code with splbio.
* Don't use intr_disable/intr_enable in the pdma routines.
1996-10-09 07:29:58 +00:00
matthias f28c7ec9dd * Don't use ansi c prototypes. Use the __P() macro.
* Support for bpf added.
* Don't duplicate code, use ether_ifattach instead.
* Recode plipreceive and pliptransmit in assembler.
This improves performance from 40 kbyte/s to 50 kbyte/s
between a 30mhz pc532 and a 25mhz i386.
1996-10-09 07:29:55 +00:00
matthias f8c337b300 * Remove intr_disable/intr_enable stuff.
* Reduce softint latency.
1996-10-09 07:28:52 +00:00
matthias f673492195 * redefine MAXPHYS to 128k to support DAT-tapes with a
very large blocksize.
1996-10-09 07:28:50 +00:00
matthias b5542a0938 * The expression to which ICU_CLK_HZ is defined has to be
protected by parentheses.
1996-10-09 07:28:47 +00:00
matthias 0a6d52bb21 * Make it work for NetBSD (and not mach). Most of
this was done by Phil Budne.
* Delete unused macros.
* Define a few things to support kgdb.
1996-10-09 07:28:44 +00:00
matthias b1bd20fbe2 * Delete define for DELAY.
* Add prototype for delay()
* Add prototypes for functions from various
machine dependent files.
1996-10-09 07:28:43 +00:00
matthias 1ebd4878ae * Include profiling prologue not only when PROF is
defined but also when GPROF is defined.
* Provide _ENTRY and _ASENTRY to make it possible to
define functions that should not be profiled.
1996-10-09 07:28:40 +00:00
matthias b83348353f * ddb now works.
* Profiling works as well.
1996-10-09 07:21:47 +00:00
cgd 472889f8e4 moved to aout_machdep.h (via repository copy) 1996-10-08 12:57:37 +00:00
mycroft b3ffba62a6 Move strip(1) flags into a separate variable, so that $STRIP can
be passed to subordinate make(1)s.  Remove $TOUCH.  Add HOSTED_CC,
HOSTED_CPPFLAGS, and HOSTED_CFLAGS, and use them when depending genassym.
1996-09-09 21:06:55 +00:00
mycroft e6dd44f034 Use SIGBUS iff we get a legitimate bus fault. Use SIGSEGV for page protection
violations (per Solaris, SVR4, AIX, Linux, Irix, and SunOS).
1996-09-07 22:26:41 +00:00
mycroft fc3def4096 Remove duplicate declarations of LKM functions and macros. 1996-09-05 15:46:22 +00:00
mycroft 0a59726320 Fix obvious typo. 1996-09-02 12:42:11 +00:00
mycroft b3eac79b64 tty stop functions really should return void, not int, and certainly not both. 1996-09-02 06:43:16 +00:00
mycroft 30a617c634 Wrap the default definition of `S' in `.ifndef'. 1996-08-31 21:40:47 +00:00
cgd 71ad30d0e9 (1) set scsi_link channel to either the appropriate channel (if a
multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a
    single-channel driver.
(2) use scsiprint() rather than a locally-defined autoconfig print
    function, and kill any locally-defined print function.
1996-08-28 18:59:15 +00:00
cgd 2a73ef60b7 change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
1996-08-27 21:53:46 +00:00
mrg b8e9f36083 add COMPAT_12. 1996-08-26 23:39:36 +00:00
mycroft 558d72128e Put into . Remove hooks for `config-dependent' and
`device-driver' flags.
1996-08-12 00:51:24 +00:00
mycroft cf67f29afe * Add a HOSTED_C_C variable, which strips `-p', `-pg', and
`-nostdinc', and use it when building genassym.
* Use `-nostdinc' just to be sure we're self-contained.
1996-08-10 06:07:57 +00:00
mycroft f94052ed3a * Define CWARNFLAGS and MKDEP in some moderately consistent fashion.
* Make S expand to an absolute path at compile time.
* Use `-S' rather than `-x' to remove debugging symbols.
* Garbage collect unused variables.
* Reverse a handful of port-specific changes that do not correspond to
the common build model and are not needed.
1996-08-10 05:29:24 +00:00
mrg 5abbf990f3 Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
phil 318585cf7f Removal of some dead code. Moving of data definitions. (From Matthias) 1996-07-31 16:47:30 +00:00
phil 99db994eea Move to the MI ncr5380 driver. 1996-06-26 04:31:33 +00:00
cgd af576d8a9f no need for a local implementation of SIOCGIFMTU; delete it.
s/ifr_metric/ifr_mtu/ where appropriate (in SIOCSIFMTU code), since
MTU data no longer (loggically) stored in ifr_metric.
1996-06-13 21:51:53 +00:00