thorpej
6e1637f157
asm volatile -> __asm__ __volatile
1997-11-05 04:05:00 +00:00
mycroft
ec5fd4954e
Set rr0_dcd.
...
Don't set DCD_IE and CTS_IE here; let the MI code do it.
Handle MDMBUF.
1997-11-02 08:05:06 +00:00
scw
d0d3cc7965
Remove paragraph describing problem with initialising VMEbus RAM cards'
...
parity bits. Initialisation now handled during kernel startup.
1997-11-01 19:18:39 +00:00
scw
cb8172bce4
Chnage MACHINE_NONCONTIG implementation such that the message buffer is
...
always located at the end of onboard RAM. This allows locore.s to zero
any offboard RAM to initialise the parity bit which most VMEbus RAM cards
have. Without this, many cards buserr on the first read access.
Thanks to Herb Peyerl for the idea.
1997-11-01 17:56:47 +00:00
lukem
3e8e744696
getopt returns -1 not EOF
1997-11-01 06:49:14 +00:00
scw
6eb98e720f
Finally nobble the last MACHINE_NONCONTIG gremlins. Needed to add
...
<machine/vmparam.h> to pmap.c and locore.s. Plus, genassym.sh needed
to have USRSTACK removed due to conflict with vmparam.h
1997-10-21 19:25:08 +00:00
scw
3c1ce11613
Fix includes. (Make sure <vm/vm.h> gets pulled in before <sys/sysctl.h>)
1997-10-19 10:53:14 +00:00
christos
e42293ca28
fix chrtoblk declaration
1997-10-16 23:37:34 +00:00
explorer
80513cb5ae
o Make usage of /dev/random dependant on
...
pseudo-device rnd # /dev/random and in-kernel generator
in config files.
o Add declaration to all architectures.
o Clean up copyright message in rnd.c, rnd.h, and rndpool.c to include
that this code is derived in part from Ted Tyso's linux code.
1997-10-13 00:46:08 +00:00
thorpej
1ae5ca3411
Initialize interrupt handlers and message buffer in mvme68k_init().
1997-10-13 00:21:08 +00:00
thorpej
118885e061
Consolidate some initialization in mvme68k_init().
1997-10-13 00:19:37 +00:00
thorpej
05c4cae34d
We don't need to call isrinit() twice.
1997-10-13 00:18:28 +00:00
scw
e01a82f2a0
Describe how to configure and use VMEbus RAM cards with an MVME147 card.
1997-10-12 15:45:12 +00:00
scw
73699f5ad7
Fix bug whereby if no VMEbus RAM is defined, a MACHINE_NONCONTIG kernel
...
would fail to boot.
1997-10-12 15:41:39 +00:00
scw
01e0c4c896
Move MACHINE_NONCONTIG from std.mvme68k to <machine/vmparam.h> as per
...
Jason's request.
1997-10-12 15:39:35 +00:00
scottr
017e6c7f10
Address PR 4120 by synchronizing v{,un}mapbuf() with the i386 vm_machdep.c,
...
v 1.27, pulling in changes made there by Charles Hannum. Also, incorporate
a few tweaks made by Gordon W. Ross in the sun3 version of this change.
1997-10-11 06:38:45 +00:00
scw
2dde7e366d
Added support for VMEbus RAM cards via MACHINE_NONCONTIG.
...
The kernel should still compile and run without it, but I've
put the config option in std.mvme68k so it's built like this
as standard.
1997-10-09 21:39:16 +00:00
jtc
4229acf79d
Fix tipo inherited from old version of TNF copyright template.
1997-10-09 08:37:20 +00:00
thorpej
3b4ad2b60e
Copyright assigned to The NetBSD Foundation.
1997-10-05 18:15:51 +00:00
lukem
7d508b124f
define SIZE?=size, and use ${SIZE} instead of size. makes cross
...
compilation easier
1997-10-03 07:17:00 +00:00
christos
7f41ec0345
PR/4162: Chris Jones: make cleandir does not work properly; it does not
...
remove the object files and the .depend file in the kernel build directory.
1997-09-30 22:50:53 +00:00
scw
d2cd21c0ef
Fixed typo. in FPU_68882 entry for MVME147
1997-09-28 11:29:48 +00:00
leo
ef6f3f7e25
Move the definition of MSGBUFSIZE up to the machine-arch level if
...
possible. Pointed out by Bernd Ernesti.
1997-09-20 12:08:24 +00:00
leo
d4713d24c2
Implement the kernel part of pr-1891. This allows for a more flexible sized
...
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.
1997-09-19 13:52:37 +00:00
mycroft
a9155c5057
Set the status word as well, and remove a bogus comment.
1997-09-12 10:29:20 +00:00
mycroft
cba224ed23
FPCOPROC is no longer used here.
1997-09-12 09:29:13 +00:00
mycroft
4e5b47eba3
fputype is defined in locore.s now.
1997-09-12 09:27:49 +00:00
mycroft
11393fe5b9
Add and use fputype. Optimize floating point save/restore routines a bit more
...
if only one CPU type is defined. Eliminate FPCOPROC. Merge some of the
68060 floating point stuff from the x68k port.
1997-09-12 09:25:36 +00:00
mycroft
8a8fa1ee59
Eliminate some uses of FPCOPROC.
1997-09-12 08:19:00 +00:00
mycroft
1192cdbe7e
FPCOPROC is already in the Makefile; no need for it here.
1997-09-12 08:14:06 +00:00
mycroft
50cfb2fcdd
Kill vestiges of Locore.c.
1997-09-12 07:55:17 +00:00
mycroft
982f24e698
Always initialize all registers in setregs().
1997-09-12 07:00:30 +00:00
mycroft
16a8787248
Fix execve(2) and *setregs() interfaces so emulations can set registers in a
...
more correct way. (See tech-kern.)
1997-09-11 23:01:44 +00:00
bouyer
6f3bab1f59
Merge scsipi branch in the mainline. This add support for ATAPI devices
...
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
1997-08-27 11:22:52 +00:00
phil
b6a75eabb2
Add "#file-system UNION" as per PR 1032. (Should mvme68k have a
...
GENERIC conf file with "everything?")
1997-07-22 18:49:21 +00:00
drochner
bdb232d2b6
Don't use <lib/libsa/if_ether.h> anymore. This was a copy of the
...
old (before ARP changes) <netinet/if_ether.h>, intended for
temporary use.
1997-07-22 17:41:01 +00:00
kleink
50d3039914
Fix another oversight from last commit.
1997-07-20 11:03:03 +00:00
kleink
cd9e9b6a2b
Fix `return();' vs. `return;' in last commit; pointed out by Steve Woodford.
1997-07-20 10:57:32 +00:00
jtk
d36d6d14ab
use locator defines in "locators.h" to index cf_loc[]
1997-07-17 02:01:26 +00:00
leo
198bd713f2
Generate assym.h dependencies when making 'depend'.
1997-07-12 22:07:36 +00:00
perry
ad1710ce1e
update comment from 1981 on memory and disk prices -- pr-2754 from Curt Sampson
1997-07-12 16:18:36 +00:00
veego
1450ec3f1b
Restore the define of NPTEPG.
1997-07-10 08:23:03 +00:00
kleink
96914606be
From sun3:
...
Correct handling for Trap #2 in SunOS executables,
now that we know it is supposed to flush the cache.
(Was thought to be "some obscure FPU operation".)
1997-07-08 16:56:31 +00:00
mrg
71ee532c82
move man pages into share/man.
1997-06-22 06:25:58 +00:00
scw
b471de3926
Deleted m68k_round_seg and m68k_trunc_seg. They're in common m68k/param.h now.
1997-06-21 11:05:34 +00:00
mrg
552af779d2
bring mrg-vm-swap2 onto mainilne.
1997-06-12 15:46:19 +00:00
mrg
dc6a98e92c
bring mrg-vm-swap2 onto mainilne.
1997-06-12 15:09:23 +00:00
veego
6304388ee4
The 'Mach derived conversion macros' are now in <m68k/param.h>
1997-06-10 18:47:21 +00:00
veego
931d90fcee
Use the MI <m68k/param.h> include.
1997-06-10 07:54:35 +00:00
veego
a204fb7981
Initialize machine from MACHINE.
1997-06-08 23:54:19 +00:00
thorpej
6dd15693d9
Add the ipfilter device at cdev major 7.
1997-06-01 09:18:45 +00:00
cjs
7a66732d34
Back out BUILDDIR and NOINSTALL changes.
1997-05-31 21:21:13 +00:00
cjs
83498d7e88
Remove empty libinstall target and add NOINSTALL=1.
1997-05-30 13:43:06 +00:00
veego
a078a4be55
Fix lossage from the latest vm_pmap changes.
1997-05-19 10:14:47 +00:00
gwr
a8af683eb9
Eliminate references to vmspace.vm_pmap
1997-05-13 18:00:49 +00:00
mycroft
cc4a1553a1
Eliminate bogus redefinitions of standard targets.
1997-05-09 07:50:03 +00:00
mycroft
185b24dd5b
Use libinstall::, not install:, to prevent instaling LIB.
1997-05-07 16:20:26 +00:00
mycroft
6e0450c70f
Use proginstall:: to disable installing PROG.
1997-05-07 15:59:08 +00:00
mycroft
fd8daf980e
Add .MAKE to the .OBJDIR hacks, so they work with `make -n'.
1997-05-07 07:15:34 +00:00
thorpej
82f0cd80c8
Sync with hp300.
1997-04-25 01:46:53 +00:00
thorpej
6649814b0e
Machine-dependent crash dump header - just pulls in <m68k/kcore.h>
1997-04-25 01:45:31 +00:00
thorpej
6df98d905a
Sync with hp300:
...
- Clean up cpu_startup()
- Convert to new crash dump format.
1997-04-25 01:44:09 +00:00
thorpej
1b1a15a81f
Adjust for <m86k/m68k/trap_subr.s>
1997-04-25 01:42:51 +00:00
thorpej
80a88edd60
- Use common m68k sigcode.
...
- Garbage-collect doadump(); it's not used by anything
1997-04-13 02:45:20 +00:00
thorpej
f28f97adfa
regdump() takes a struct trapframe *
1997-04-09 20:33:48 +00:00
thorpej
d1ecda44c4
Garbage-collect regdump() and friends.
1997-04-09 20:31:39 +00:00
thorpej
63ed6b6c2f
Use <m68k/m68k/proc_subr.s>
1997-04-09 20:29:18 +00:00
thorpej
f751cc440e
Remove redundant file directives.
1997-04-09 20:26:43 +00:00
gwr
69b70455c9
Zap AFLAGS
1997-04-08 22:04:16 +00:00
christos
6c015f3a49
Add netatalk netisr
1997-04-03 15:59:54 +00:00
gwr
5485e1ff75
Need a common <m68k/pcb.h> for gdb.
1997-03-31 21:39:51 +00:00
thorpej
cb24b0200a
Don't allocate mclrefcnt[]; it's dead and gone.
1997-03-27 21:01:20 +00:00
gwr
37b247edde
Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/
1997-03-26 22:42:13 +00:00
gwr
71e43d14ab
Move findroot/setroot stuff from configure() to cpu_rootconf().
1997-03-26 22:38:40 +00:00
thorpej
0e541517e5
Nuke unneeded "machine ..." line, pointed out by John Birrell.
1997-03-21 22:40:33 +00:00
gwr
b5afc4b28d
Change arg two of all the match functions back to struct cfdata
...
now that __BROKEN_INDIRECT_CONFIG has been removed.
1997-03-19 16:24:38 +00:00
thorpej
98730721d9
Use std.mvme68k, which contains non-optional "options" (a'la other ports).
1997-03-18 21:41:49 +00:00
thorpej
03ecf5dce7
Use our own db_memrw.c
1997-03-18 21:39:01 +00:00
thorpej
7b668f11c8
Use the hp300 db_memrw.c, which works with read-only kernel text.
1997-03-18 21:34:52 +00:00
thorpej
dc401484c4
When mapping kernel text, always make it PG_RO.
1997-03-18 21:31:48 +00:00
thorpej
5bf83341cf
- Add a few prototypes.
...
- cpu_startup() - mark pre-text pages VM_PROT_NONE and kernel text pages
VM_PROT_READ|VM_PROT_EXECUTE in kernel_map, to avoid strange things like
COW'ing the kernel text (from hp300 port)
- Fix dumpsys() to conform to the new dump bdevsw calling convention.
1997-03-18 21:30:24 +00:00
thorpej
c50ed28c3c
Get rid of __BROKEN_INDIRECT_CONFIG.
1997-03-18 21:21:52 +00:00
thorpej
73a0fb50d2
Get rid of __BDEVSW_DUMP_OLD_TYPE and __BROKEN_INDIRECT_CONFIG.
1997-03-18 21:17:18 +00:00
gwr
5e75e3fa90
Support cross-compilation.
1997-03-17 22:16:03 +00:00
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