Commit Graph

259 Commits

Author SHA1 Message Date
gwr e54c5c5eac Use m68k/sig_machdep.c 1997-03-17 22:11:07 +00:00
gwr 450cad120c Add m68k/sig_machdep.c 1997-03-17 22:09:04 +00:00
gwr 08f7a407f9 Separate bcopy and copypage stuff from copy.s 1997-03-17 19:46:36 +00:00
thorpej 1d987a161b #include <net/if_media.h> 1997-03-17 03:17:34 +00:00
thorpej b6f3695cd1 Use <m68k/m68k/support.s> 1997-03-16 11:04:52 +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 d0c586a17f Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.  Also, remove dependencies for
genassym.o (since it no longer exists).
1997-03-14 23:16:08 +00:00
mycroft 4913ba5369 V_SWTCH is no longer needed. 1997-03-13 04:37:20 +00:00
mycroft 2f18f33d16 Use genassym.cf, to support cross-compiling. 1997-03-13 04:22:05 +00:00
chuck 47727c7946 remove "::" entries as per cgd 1997-03-10 22:27:36 +00:00
fvdl 115b6d92fa Define ALIGNED_POINTER 1997-02-24 23:16:53 +00:00
gwr 05c4b6759d Apply that fix from Bill Studenmund that keeps us from ignoring DCD.
Also fix the copyright (s/REGENTS/FOUNDATION/).
1997-02-05 14:06:58 +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
thorpej 68950edae8 Garbage-collect extra copy of mappedcopy. 1997-02-02 08:30:54 +00:00
thorpej 243f0119cb Purely cosmetic whitespace frobbing. 1997-02-02 08:30:08 +00:00
thorpej 94c399f00e Use zeropage() in pmap_zero_page(). 1997-02-02 08:28:58 +00:00
thorpej 3f17e697bf zeropage -> devzeropage, and make it static 1997-02-02 08:27:15 +00:00
thorpej 2d04a07129 Garbage-collect extra copypage(). 1997-02-02 08:25:23 +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 70653a472d bootdv -> booted_device 1997-01-31 01:56:03 +00:00
thorpej 573e68b745 Use new machine-independent setroot(). 1997-01-31 01:55:40 +00:00
thorpej 0e3acd811d bootdv -> booted_device 1997-01-31 01:53:06 +00:00
thorpej 3fd4de4cd9 Adopt for new file system and root spec grammar. 1997-01-31 01:52:38 +00:00
thorpej 7b40f5228e "md" is declared in sys/conf/files, now. 1997-01-21 09:39:20 +00:00
gwr 4ed08a77d2 Move include of trap.h from genassym.c to locore.s 1997-01-16 17:30: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
pk 3bbf01bfb7 rename: ramdisk => md 1996-12-28 23:53:10 +00:00
pk 603b61c3e0 rename: ramdisk => md 1996-12-28 23:22:07 +00:00
gwr 3da720dfd1 Adapt to the new version of dev/ic/z8530* 1996-12-17 22:30:13 +00:00
gwr 55d81fe0c2 Adapt to the new version of dev/ic/z8530*
(Note: now define zsc_softc here.)
1996-12-17 22:26:07 +00:00
thorpej d502e68402 Fill in sc_link.max_target 1996-12-10 21:27:16 +00:00
mycroft 6efa67cb69 Use RELOC() to access _myea. 1996-12-10 18:41:00 +00:00
mycroft a1f3d20e2c Minor twiddle; _prototc is only 4 bytes, not 8. 1996-12-10 18:33:51 +00:00
thorpej 66cbbf68ff Copyright assigned to The NetBSD Foundation. 1996-12-09 17:35:24 +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
chuck 5ffce6ff81 fix uninit'd variable [detected by charles] 1996-11-09 22:27:22 +00:00
chuck cabd6ddfa0 - new lpt driver, contributed by Steve Woodford <steve@mctavish.demon.co.uk>
- added 1.1 and 1.2 compat to VME147 config file
1996-11-09 03:52:51 +00:00
chuck 63b98e6bb7 add ss/uk 1996-11-08 22:40:51 +00:00
chuck 5049f4d106 add ch/rd(chr)/ss/uk devices as requested by mycroft, plus some minor clean up 1996-11-08 22:00:42 +00:00
chuck ee87cfab39 apply netbsd pr#2598 from der mouse:
everything before the beginning of the "a" partition on a disk
	is read-only except when accessed via RAW_PART.   (a problem if
	"a" isn't at the front of the disk).   pointed out by pk back
	in july.
1996-11-08 20:50:55 +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
chuck 5c91907fb4 add options: EXEC_AOUT and EXEC_SCRIPT 1996-11-06 03:35:03 +00:00
thorpej dd7ad6d7b8 Trim the name of the clock interrupt event counters. They were one byte
too long, causing a panic in DIAGNOSTIC kernels.

From Steve Woodford <steve@mctavish.demon.co.uk>, on the port-mvme68k
mailing list.
1996-11-05 02:51:03 +00:00
thorpej 150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
christos e37692f04d backout previous kprintf change 1996-10-13 03:29:05 +00:00
christos 9beb92aad7 printf -> kprintf, sprintf -> ksprintf 1996-10-10 23:32:59 +00:00
cgd e36e19cf1e repoint at shared aout_machdep.h, not exec.h 1996-10-08 13:07:26 +00:00
cgd 472889f8e4 moved to aout_machdep.h (via repository copy) 1996-10-08 12:57:37 +00:00
thorpej 5d570ded25 Update for the new way machine/cpu support is option'd in. 1996-09-12 07:36:37 +00:00
thorpej feb8b586ed Do the extern song and dance. 1996-09-12 06:14:04 +00:00
thorpej 927facbf09 Add some constants now needed by locore. 1996-09-12 06:05:42 +00:00
thorpej a1bffadb58 - Add hooks (just empty shells for now) for MVME-{162,167,177} models.
- Use information obtained from the Bug in locore to make identifycpu()
  produce some slightly more meaningful output.

- Garbage-collect some left-over hp300-specific stuff.
1996-09-12 06:02:35 +00:00
thorpej 6d0345fdb7 - Save the boot device info a little earlier in initializaion.
- Use the Bug to find out what kind of machine we're running on, and
  Do The Right Thing, namely:

	- Set `cputype' and `mmutype' as appropriate.

	- Crap out if the kernel doesn't support the machine we
	  booted on.

- Add hooks for MVME-{162,167,177} models; just an empty shell to be
  filled in later.

- Use `MMU_68040' rather than `-2' when checking the MMU type.
1996-09-12 05:57:43 +00:00
thorpej 917ef1b1be Grok machineid. 1996-09-12 05:48:54 +00:00
thorpej 399b0e0f68 - Use MVME "machine options" to associate MVME models with CPU
options (a'la the hp300 port).
- Declare a "machineid" extern.
- Define constants for machineid, which match the Bug's idea
  of MVME model numbers.
1996-09-12 05:26:37 +00:00
thorpej 583912cbcf Grab the stat clock stuff from the SPARC port, and glue it to the
second timer on the PCC.
1996-09-12 05:10:44 +00:00
thorpej de02bf68b3 Update to use the new badaddr(); simplifies the code that attaches
pcc children somewhat.
1996-09-12 05:04:18 +00:00
thorpej 054bd4e4d0 Prototype badaddr(). 1996-09-12 05:01:47 +00:00
thorpej ca8ebd2ae7 Change badaddr() to take the size of the access to do, and nuke
badbaddr().
1996-09-12 04:59:56 +00:00
thorpej 2a57ba6633 Correct a comment, and add timer priming macros. 1996-09-12 04:54:19 +00:00
thorpej 2b525e4952 Sync boot() with the hp300 version (basically, clean up a bit and
run shutdown hooks).
1996-09-12 02:45:57 +00:00
thorpej a437d4f6cb Use <m68k/cpu.h>. 1996-09-11 00:23:47 +00:00
thorpej 9ff195106c Document COMPAT_M68K4K, but leave it disabled by default. 1996-09-10 22:45:17 +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
thorpej de5110f41e Use <m68k/exec.h>. 1996-09-08 01:00:35 +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
thorpej 26ecf6820b Use the stock ld(1) and the srec program to generate the serial line
bootstrap program.
1996-09-07 19:23:03 +00:00
thorpej a27c9a94f5 Add a public domain S-record generator. 1996-09-07 19:21:32 +00:00
mycroft fc3def4096 Remove duplicate declarations of LKM functions and macros. 1996-09-05 15:46:22 +00:00
mycroft aeda55543b Splice in Ignatios' bus error detection code. 1996-09-03 02:07:02 +00:00
mycroft 30a617c634 Wrap the default definition of `S' in `.ifndef'. 1996-08-31 21:40:47 +00:00
thorpej 0794023752 RCS id police. 1996-08-30 17:43:56 +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
thorpej 2d88fe9293 Old-style disk instrumentation is long gone, buster! 1996-08-26 06:47:42 +00:00
thorpej 3eaf7130d9 Update for structure member name changes made in the MI code. 1996-08-26 06:39:03 +00:00
mycroft 558d72128e Put into . Remove hooks for `config-dependent' and
`device-driver' flags.
1996-08-12 00:51:24 +00:00
mycroft 88578318ca Remove the only use of `config-dependent', as it isn't actually needed. 1996-08-12 00:16:25 +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
chuck e35aa10df8 switch to generic boot 1996-05-29 05:06:21 +00:00
chuck 24ac64b87b fix generic boot code 1996-05-29 05:04:41 +00:00
chuck 9f36687189 borrow part of the sparc port's dk_establish to fix generic boot 1996-05-29 05:03:50 +00:00
chuck 946f08aa87 note if we are the boot device (for fixing generic boot) 1996-05-29 04:29:46 +00:00
chuck 5258929681 detect if we are the boot device (to fix generic kernel) 1996-05-29 04:27:11 +00:00
chuck ac46d3b779 add to fix boot generic problem 1996-05-29 02:32:21 +00:00
chuck e4528e0647 save boot device info from bug/bootblocks 1996-05-29 02:28:30 +00:00
chuck 6645fec14e fix off by one error 1996-05-29 01:52:03 +00:00
chuck f057fa41d5 leave room for partition 1996-05-28 19:07:32 +00:00
chuck cd4d6d851b new kernel call args. 1996-05-28 18:14:24 +00:00
chuck e0923c774b bug fix: pass address of le to netboot 1996-05-28 18:03:38 +00:00
chuck 9a628842cf fix bootst (sync with sun3 tapeboot) 1996-05-28 15:23:53 +00:00
chuck 09e22de574 delete non-working bootst 1996-05-28 15:23:06 +00:00
chuck da573626b4 new bootst (based on sun3 tapeboot) 1996-05-28 15:22:41 +00:00
chuck 9fe4f7c83a kill "options GENERIC" by replacing it with Theo's sparc code. 1996-05-26 20:47:39 +00:00
chuck 8f19c1d045 fix cngetc() typeo. 1996-05-26 20:42:58 +00:00
chuck d3ca12ac2a import rd_root from sun3 1996-05-20 01:17:31 +00:00