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
mycroft
e44dc60fc6
Fix editing error in new config changes.
1997-03-22 00:17:59 +00:00
thorpej
12c0a8c5c8
Correct keyboard map references in the default case. From
...
Klaus Klein <kleink@layla.inka.de>, PR #3361 .
1997-03-20 08:07:01 +00:00
mycroft
c14b8539e0
Make active_user_pmap() DTRT while a process is exiting.
1997-03-18 16:39:30 +00:00
mycroft
d19eaa3d4f
Add an active_user_pmap() macro, and use it as appropriate.
1997-03-18 14:13:55 +00:00
mycroft
1068c83731
Check for curproc being null before dereferencing it in more cases.
1997-03-18 13:01:07 +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
hpeyerl
52cbdd41c4
Lager is now config.new. ya ya, I've been busy.
1997-03-16 18:46:56 +00:00
thorpej
48556a75d2
Use <m68k/m68k/support.s>
1997-03-16 10:49:43 +00:00
thorpej
e93bf2f15b
Garbage-collect hpux_dumpu().
1997-03-16 10:00:45 +00:00
thorpej
701652d81c
In cpu_coredump(), don't bother dumping an HP-UX style u-area. What it
...
produced was useful once, but isn't worth the clutter now.
1997-03-16 09:59:40 +00:00
thorpej
de5a4c2d10
Remove reference to Locore.c
1997-03-16 09:47:48 +00:00
thorpej
611fa5e05b
Old lint helper, not used anymore, and really quite amazingly out of
...
date; this is 4.3 vintage. Just nuke it.
1997-03-16 09:45:38 +00:00
thorpej
5a1149b25d
Nuke MDP_HPUXTRACE.
1997-03-16 09:40:01 +00:00
thorpej
c5b6d5ed07
Prototype hpux_setregs().
1997-03-16 09:14:25 +00:00
thorpej
c9e8e99421
Remove the COMPAT_HPUX stuff from setregs(); the HP-UX compatibility
...
code has its own implementation now.
1997-03-16 09:12:13 +00:00
thorpej
832cc66899
Implement hpux_setregs(). While I'm here, nuke the MDP_HPUXTRACE
...
code. In practice, no one traces NetBSD programs with HP-UX debuggers,
and the evil required to make it work should not be discussed in the
presence of small children.
1997-03-16 09:10:31 +00:00
thorpej
27c7e59344
Define the HP-UX sigcontext structure here, and prototype hpux_sendsig().
1997-03-16 03:45:33 +00:00
thorpej
5a14c36be7
Move all COMPAT_HPUX signal code into hpux_sendsig() and hpux_sys_sigreturn().
1997-03-16 03:43:39 +00:00
thorpej
f5c982a251
In cpu_coredump(), use `fputype' to decide if we dump FP regs.
1997-03-15 23:40:25 +00:00
thorpej
99cc2e1cec
Garbage-collect use of FPCOPROC.
1997-03-15 23:34:32 +00:00
thorpej
bbcda6f26b
- /dev/mem: only allow access to physical RAM
...
- /dev/kmem: disallow access to devices
This is designed to protect device registers from being corrupted
accidentally by "innocent" mem/kmem grovellers.
1997-03-15 23:30:12 +00:00
thorpej
6fa9be2e93
Use `fputype' at run-time rather than FPCOPROC at compile-time.
1997-03-15 23:25:49 +00:00
thorpej
4fd90cefdb
- Garbage-collect doadump(); it hasn't been used for some time.
...
- Supply an `fputype' global. Since all hp300's have an FPU, default
it to FPU_68881, setting it to FPU_68040 if we detect a 68040 CPU.
- Use `fputype' at run-time rathern than FPCOPROC at compile-time.
- Re-arrange locore slightly; move startup code to the beginning, right
after the vector table.
1997-03-15 23:23:55 +00:00
thorpej
2cea1ec9d7
- Make hpux_sys_getcontext() table-driven.
...
- Use `fputype' at run-time rather than FPCOPROC at compile-time.
1997-03-15 23:20:20 +00:00
thorpej
1023932f47
User text segment begins at 8k, now, to match the other m68k ports.
1997-03-15 22:02:24 +00:00
thorpej
26644d1232
Change MID_MACHINE to MID_M68K; we now use the same executable format as
...
the rest of the m68k ports.
1997-03-15 22:01:02 +00:00
thorpej
0e368d2e40
Don't set __LDPGSZ to 4096; we use 8192 like the rest of m68k-land, now.
1997-03-15 21:59:20 +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
f7ad6fff40
Put the genassym.sh output in a temp file, and mv -f it, in case
...
it fails spectacularly and doesn't clean up. Also, don't depend genassym.c
(since it no longer exists), and remove dependencies for genassym.o (since it
no longer exists).
1997-03-14 23:14:39 +00:00
mycroft
3a99046fbb
Update this to new config.
1997-03-14 04:21:13 +00:00
thorpej
711486fd1b
Fix a typo (oops).
1997-03-13 17:14:45 +00:00
thorpej
8229701876
oops, don't need trap.h here anymore
1997-03-13 09:29:03 +00:00
thorpej
72ba35e689
Don't genassym the trap type values; just include <machine/trap.h>
1997-03-13 09:27:21 +00:00
thorpej
deeac396e7
Use genassym.sh to facilitate cross compiling.
1997-03-13 09:24:21 +00:00
thorpej
f6d3f6c93b
Use the script version to facilitate cross compiling.
1997-03-13 09:22:19 +00:00
thorpej
a92ec8002e
Enable COMPAT_M68K4K.
1997-03-12 18:33:09 +00:00
thorpej
1777807068
Add 9660 file system, and set DDB_ONPANIC to 0.
1997-03-12 02:08:02 +00:00
thorpej
dc1020fe40
Print the interrupt level in scsiattach().
1997-03-10 08:37:31 +00:00
thorpej
bb0d35b7e4
Bump version - we compute the kernel load address differently.
1997-03-10 08:02:23 +00:00
thorpej
4e541ff7ea
Fix rounding of lowram value; ensure the kernel load address is on
...
an 8k boundary.
1997-03-10 08:00:47 +00:00
fvdl
115b6d92fa
Define ALIGNED_POINTER
1997-02-24 23:16:53 +00:00
mrg
22245e60a5
comment PFIL_HOOKS as it is redundant (as an option) when used with ipfilter. minor format
1997-02-18 21:09:56 +00:00
thorpej
82adcde8ca
Fix edit-o that caused panic's when root was on HP-IB disk.
1997-02-05 20:56:29 +00:00
thorpej
f79798f810
Bump version: Add support for booting gzip'd kernels
1997-02-04 19:42:29 +00:00
thorpej
76839db714
Add the ".gz" names of the kernels to the kernel names list. New
...
boot order is:
netbsd -> netbsd.gz -> netbsd.bak -> netbsd.bak.gz ->
netbsd.old -> netbsd.old.gz -> onetbsd -> onetbsd.gz
1997-02-04 19:40:07 +00:00
thorpej
6a721b41eb
Bump version: Add support for reading gzip'd miniroot images
1997-02-04 19:36:29 +00:00
thorpej
8ceaa2c3f5
- If copying the miniroot from an NFS server, don't attempt to
...
compute the number of iterations through the copy loop based
on file size; the miniroot image may be compressed. Instead,
ignore short reads in the NFS case, and handle them like EOF.
- Fix typo in a printf format.
1997-02-04 19:34:09 +00:00
thorpej
e876a86309
Add support for transparent handling of decompressing read, useful
...
for gzip'd kernels and miniroot images.
1997-02-04 19:28:50 +00:00
thorpej
5a9b27d5cf
Set the heap limit to the last byte of the 3rd page from the
...
end of RAM, i.e.:
[ heap limit page][msgbuf page][ROM scratch page]
| |
heap limit end of RAM
1997-02-04 19:14:57 +00:00
thorpej
1e250357ac
Thou shalt not taunt the HP BOOTROM with silliness such as incorrect
...
link order.
1997-02-04 08:39:26 +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
0130161343
Bump version: Reorganization of boot block code
1997-02-04 03:59:40 +00:00
thorpej
8226741fc2
Replay history: Added support for HP-IB cartridge tapes
1997-02-04 03:58:52 +00:00
thorpej
25f97c348f
Reply history: Merged network and disk boot programs
1997-02-04 03:57:51 +00:00
thorpej
f52a7cea62
Replay history: Added support for network booting
1997-02-04 03:57:08 +00:00
thorpej
b327731a21
Bump version: Reorganization of boot block code
1997-02-04 03:55:56 +00:00
thorpej
6c19137655
Replay history: Added support for HP-IB cartridge tapes
1997-02-04 03:54:56 +00:00
thorpej
a0864b3e07
Complete and total reorganization of the hp300 boot code, modeled
...
closely after the build process used by NetBSD/alpha's boot code.
1997-02-04 03:51:37 +00:00
thorpej
876ea64acb
Add "options LKM", suggested by Klaus Klein <kleink@layla.inka.de>.
1997-02-02 17:29:42 +00:00
thorpej
2a0c6f4a0a
Use splkbd().
1997-02-02 09:40:31 +00:00
thorpej
47e3ffe813
Definition of splhil() is in param.h now.
1997-02-02 09:39:21 +00:00
thorpej
14a4465f0b
- Implement _splraise(), like _spl(), but only modifies the SR if the
...
new ipl is higher than the ipl currently set in SR. (Thanks to
scottr@netbsd.org for implementing it while I was busy with other stuff!)
- Define spl{bio,net,tty,imp} in terms of _splraise().
- Move definition of splhil() here, and define splkbd() as an alias for it.
1997-02-02 09:34:26 +00:00
thorpej
65494a33cb
Garbage-collect extra copy of mappedcopy.
1997-02-02 08:03:06 +00:00
thorpej
2f2eed4a30
Use zeropage() in pmap_zero_page().
1997-02-02 08:01:32 +00:00
thorpej
c51511c5b5
zeropage -> devzeropage, and make it static.
1997-02-02 07:59:41 +00:00
thorpej
4b525c0004
Clean up the mappedcopy initialization code.
1997-02-02 07:58:49 +00:00
thorpej
00111f0a5d
- Eliminate some unnecessary cpu/mmu checks, based on what CPUs
...
the kernel was compiled for.
- Add some comments about possible further optimization.
- Garbage-collect extra copypage()
1997-02-02 07:55:52 +00:00
thorpej
2bf5021447
- Use <errno.h>, not "extern int errno."
...
- Define FPU constants.
1997-02-02 07:53:16 +00:00
thorpej
834bef67f2
If the user has halted the system, allow them to press a key to reboot.
1997-02-02 05:33:30 +00:00
carrel
31ff345489
My config files. To quote from thorpej: "for kicks".
1997-02-02 00:23:23 +00:00
thorpej
312e813007
Oops, need PFIL_HOOKS.
1997-02-02 00:11:33 +00:00
thorpej
f28303c413
- Garbage-collect a kludge necessary when we were using old config.
...
- Synch the "clean" rule with the i386 port's.
- Add a commented-out rule for generating assym.h w/ the new genassym.sh.
Some slight changes need to be made to genassym.h to make it work with
m68k, so we can't use it just yet.
1997-02-01 23:55:10 +00:00
carrel
05c0e704dc
Make "options HP340" actually work without having "option HP360".
1997-01-31 23:01:21 +00:00
carrel
32f2102a58
Patch from thorpej to mark non-console grf's and ite's alive.
1997-01-31 21:16:50 +00:00
thorpej
2c94d6307c
Fix typo introduced in new setroot code. (There's only just a little
...
irony in that, eh?)
From Klaus Klein <kleink@layla.inka.de>, PR #3173 .
1997-01-31 20:20:53 +00:00
thorpej
04da46b022
Gah, missed another NFSCLIENT -> NFS.
1997-01-31 06:12:57 +00:00
thorpej
41809f9413
Adopt for new file system and root spec grammar.
1997-01-31 05:56:10 +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
8763a04e25
Use the new machine-independent setroot().
1997-01-31 01:49:41 +00:00
scottr
fc20c2eb8f
Add missing major number decls, from Klaus Klein (closes PR 3165).
1997-01-30 22:11:19 +00:00
scottr
13802e3a85
Add DIOVERBOSE per Jason; clean up formatting for some options.
1997-01-30 18:33:52 +00:00
thorpej
570522c72c
Clean up #includes.
1997-01-30 10:32:51 +00:00
thorpej
5906c26c8b
Commit this to the right place, this time.
...
The boot blocks do a primitive form of autoconfiguration. Duplicate some
of the old config strcutures for the benefit of the boot blocks; they
don't need something as flexible as the kernel does.
1997-01-30 10:31:44 +00:00
thorpej
40d51256bb
These files are no longer needed.
1997-01-30 10:00:39 +00:00
thorpej
5e781164af
Update for new-style config.
1997-01-30 09:58:57 +00:00
thorpej
add93ce69e
Garbage-collect some uneeded stuff now that we're new config only.
1997-01-30 09:55:45 +00:00
thorpej
d26d94a7a5
Regen to clear up RCS id snafu.
1997-01-30 09:20:42 +00:00
thorpej
cb63bb9de5
Garbage-collect all old-style autoconfiguration support; it is no
...
longer supported. The hp300 port uses new config now.
1997-01-30 09:18:33 +00:00
thorpej
9bb27910a9
Convert to new-style autoconfiguration; old-style config is no longer
...
supported.
1997-01-30 09:14:10 +00:00
thorpej
f19d55d659
- Garbage-collect the old-style configuration glue.
...
- Make sure we don't get interrupts in dcmselftest().
1997-01-30 09:11:24 +00:00
thorpej
f5bb637c10
- Convert these drivers to new-style autoconfiguration. Old-style
...
config is no longer supported.
- Use a much more obvious SCSI job queueing scheme.
1997-01-30 09:08:55 +00:00
thorpej
365324ec10
- Convert these drivers to new-style autoconfiguration. Old-style
...
configuration is no longer supported.
- Use a much more obvious HP-IB job queueing scheme.
1997-01-30 09:06:51 +00:00
thorpej
d49c71cb8a
- Use indicies, rather than pointer arithmetic, to track DMA chain
...
segments.
- Use a much more obvious DMA job queueing scheme.
- Fixup some debugging code.
1997-01-30 09:04:33 +00:00
thorpej
7bfe4e11c4
Garbage-collect old-style autoconfiguration glue.
1997-01-30 09:00:21 +00:00
thorpej
743140bb51
Garbage-collect old-style autoconfiguration code. Adopt boot device
...
detection code to new-style autoconfiguration.
1997-01-30 08:59:29 +00:00
hpeyerl
56542666eb
fix an *old* booboo where the dma queue wasn't being set in unexpected
...
case. Found, fixed, and dictated by jason. (thorpe)
1997-01-26 18:04:10 +00:00
hpeyerl
8cc55c80b6
::->: :-)
1997-01-26 17:55:52 +00:00
scottr
1085290516
Remove obsolete timezone specification
1997-01-20 16:55:32 +00:00
thorpej
112e338d6b
Fix botch in PA calculation for DIO-II devices. Bug noticed and fix
...
provided by Klaus Klein <kleink@layla.inka.de>, PR #3097 .
1997-01-12 21:27:26 +00:00
scottr
cc061d0a98
Normally, iteon() returns an int. If NITE == 0, define iteon() to be 0.
...
Closes PR 3091.
1997-01-10 00:07:27 +00:00
scottr
b917ce3294
Bracket kernel structs with #ifdef _KERNEL so that bootblocks will once
...
again build.
1997-01-09 01:07:59 +00:00
mrg
c71a371532
use pseudo-device ipfilter, not ipl.
1997-01-07 11:35:01 +00:00
thorpej
c56e780e4f
Bring some sanity into my frazzled existence:
...
- Always ensure that RAW_PART ("c") can be opened.
- Disallow unused or non-existent partitions from being opened.
- Don't do bounds checking or partition translation on RAW_PART.
This is consistent with other disk drivers in the NetBSD source tree,
and fixes a condition where the user could not fix a corrupted disklabel
due to a bogus offset for partition "c".
1997-01-07 09:29:30 +00:00
thorpej
32dda9a886
Kludge newvers rule, so that it works with old and new config.
1997-01-06 08:49:30 +00:00
thorpej
c26a11ab21
Add PFIL_HOOKS and ipl pseudo-device.
1997-01-06 08:48:36 +00:00
thorpej
7e3b804ce5
Add ipl pseudo-device.
1997-01-06 08:47:43 +00:00
thorpej
246654663f
Add "ipl" device at cdev major 18.
1997-01-05 21:29:49 +00:00
thorpej
f77141521c
Oops, build dio.o in the old config case, too. Pointed out by
...
Dave Carrel <carrel@cisco.com>.
1997-01-05 04:41:48 +00:00
thorpej
e2c6ed87ec
Fix several semantic bugs:
...
- Always allow RAW_PART to be opened, regardless of the partition table.
- Never do partition translation on RAW_PART; it's always offset 0.
- Always make sure the disklabel is read from RAW_PART.
- Make *strategy() return values consistent.
This fixes a condition where a bogus partition table could be written
to the disk from SYS_INST, and the user had no way to rewrite with
a correct partition table, since RAW_PART would be invalid.
1996-12-21 21:34:40 +00:00
thorpej
0d58626f72
This wasn't just a spelling error... I invented a whole new word!
1996-12-21 21:23:43 +00:00
thorpej
c0c07cd30e
Always use `SLOWSCSI'. Some devices need a long delay between phase
...
changes, apparently. This is reported to work around some odd failures
people were seeing during first-time installation onto a SCSI disk.
1996-12-17 09:21:42 +00:00
thorpej
7373a43fcf
Generate initial copies of these files.
1996-12-17 09:01:24 +00:00
thorpej
838edf78fd
Snapshot of new config for NetBSD/hp300. This isn't quite finished yet.
...
We're about 75% there. SCSI and HP-IB are not yet supported in a new
config kernel; some autoconfiguration hackery has to be done there, yet.
These changes are enough to network boot a diskless kernel.
New config glue is enabled with the "NEWCONFIG" kernel option. If that
option is not present, an old config kernel will be built. Any kernel
configured with config(8) will automatically pick up the NEWCONFIG
option from std.hp300.
1996-12-17 08:40:56 +00:00
thorpej
7b4ca2ebe5
Kill __BROKEN_INDIRECT_CONFIG
1996-12-17 08:11:50 +00:00
thorpej
9a8786f719
Clean up cpu_startup() a bit:
...
- move data structure allocation into a new function, allocsys(), like
the i386 port.
- garbage-collect the BUFFERS_UNMANAGED code.
1996-12-11 16:49:23 +00:00
thorpej
f82a494e0f
Fix typo in comment.
1996-12-11 09:10:38 +00:00
thorpej
66cbbf68ff
Copyright assigned to The NetBSD Foundation.
1996-12-09 17:35:24 +00:00
thorpej
5dc95f5908
Garbage-collect DMAINTLVL; it's not needed any more.
1996-12-09 06:18:13 +00:00
thorpej
49471d5fd5
Sync with reality.
1996-12-09 03:56:01 +00:00
thorpej
01667974d0
isrlink() now returns a cookie. We're not interested in the cookie, so
...
cast to (void).
Call dmacomputeipl() after we've hooked up our interrupt handler.
1996-12-09 03:16:26 +00:00
thorpej
648a1b19ae
isrlink() now returns a cookie. We're not interested in the cookie, so
...
cast to (void).
1996-12-09 03:14:06 +00:00
thorpej
0d6571ba4d
Defer hooking up the DMA controller interrupt. Add a new funciton,
...
dmacomputeipl(), which is called by drivers which use DMA once they've
hooked up their interrupts. This new function computes the appropriate
ipl to use for the DMA controller and (re-)establishes it's interrupt.
1996-12-09 03:09:51 +00:00
thorpej
75a37ecc60
Print the interrupt levels for bio, net, and tty computed during
...
autoconfiguration.
1996-12-09 03:07:11 +00:00
thorpej
ce7ecde8a3
Dynamically compute the PSL value for spl{bio,net,tty,imp}() calls.
1996-12-09 03:04:46 +00:00
thorpej
c36215249a
Add EXEC_SCRIPT (I don't even want to know how I forgot it before...)
1996-12-09 01:53:30 +00:00
thorpej
b5c8aff18b
In setroot(), fix mishandling of the `config netbsd root on nfs' case
...
that caused a NULL pointer dereference.
1996-12-07 19:00:46 +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
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
hpeyerl
05fe4c93dc
Force some drive mappings for reasons I won't get into.
1996-10-21 16:43:05 +00:00
thorpej
43ba106ec2
Remove declaration for now-gone function.
1996-10-20 23:47:40 +00:00
thorpej
af8d8d2a56
Arrange this file into sections (configure(), root device goo, console goo,
...
old-config goo). Place old-config goo at the end so that it's easy to
#ifdef our or delete (muahahah!).
Garbage collect a couple of unused functions.
1996-10-20 23:46:06 +00:00
thorpej
bbdd41a2a7
Back out last change, and add a comment about what should happen.
...
(*grumble* will teach me to do a `make clean' next time.)
1996-10-20 23:23:28 +00:00
thorpej
7133ecf2ca
Don't need to mark 0-NBPG as VM_PROT_NONE in kernel_map anymore; the
...
first entry is now properly setup in kmem_init().
1996-10-19 21:11:32 +00:00
thorpej
7958973110
Set VM_MIN_KERNEL_ADDRESS to NBPG. This is a better way of getting
...
the kernel_map to treat page 0 properly.
1996-10-19 21:07:42 +00:00
thorpej
cf9b36ab1d
Set up a kernel_map entry for the text segment with protection of
...
VM_PROT_READ|VM_PROT_EXECUTE. The previous default (VM_PROT_ALL)
would cause the following scenario:
- someone attempts to write kernel text (my test was writing
to an offset of /dev/kmem which was known to be in the text
segment, while in single-user mode).
- enter trap() with MMU fault (because of RO pte).
- trap() calls vm_fault(), which looks up vm_map_entry for
fauling address.
- vm_fault interprets write fault and VM_PROT_WRITE (in VM_PROT_ALL)
as COW; new page allocated, data copied to new page, new page
mapped in at trunc_page(<faulting va>).
- wow, look at the fireworks!
Fixes two potential symptoms:
- kernacc() returns TRUE when checking for permission to write
an offset in kernel text, which is bogus, since the text has
been mapped RO by pmap_bootstrap().
- Handling of a stray pointer that attempted to scribble into
kernel text would not be executed properly.
1996-10-19 08:51:33 +00:00
thorpej
6126eea479
Tell the `upper half' of the VM system that page 0 isn't mapped. If we
...
don't do this, kernacc() will bogusly return TRUE for page 0, causing a
NULL pointer dereference in uiomove() when reading /dev/kmem.
Thanks to Scott Reynolds for noticing the problem.
1996-10-18 08:57:14 +00:00
thorpej
150c33e60b
Use ${INSTALL}.
1996-10-18 05:55:26 +00:00
thorpej
9f1ba5739f
Don't need "options GENERIC" anymore.
1996-10-15 22:01:53 +00:00
thorpej
608efe383e
Use the hp300 version of db_memrw.c (forgot to commit this change the
...
other day).
1996-10-15 22:00:31 +00:00
thorpej
d2daeab10d
Garbage collect the "kernel jump to zero" stuff. VA 0 is now invalid,
...
so the kernel will fault if the PC gets trashed like that.
1996-10-14 22:11:16 +00:00
thorpej
ac35089824
Couple of small changes:
...
- Fix up usage of MBD_ISPID().
- Ensure that we never deal with a NULL proc, and if our proc has
no pcb, punt. Suggested by Gordon Ross.
- Eliminate some redundant NULL pointer checks in the T_MMUFLT cases;
proc0.p_addr is now initialized early, and we make a single test
for sanity at the top of trap() now.
1996-10-14 20:06:31 +00:00
thorpej
a72edba413
Couple more small changes:
...
- Initialize proc0.p_addr just after setting up the kernel stack, to avoid
getting NULL pointers in trap(). Change suggested by Gordon Ross.
- Panic if main() returns.
- Tidy up a couple of comments.
1996-10-14 20:02:48 +00:00
thorpej
ffc4c833ea
Be careful not to deref bad pointers in the MMU fault handler! (yow!)
1996-10-14 08:07:23 +00:00
thorpej
7744dc270c
Couple of small changes to how kernel is mapped:
...
- kernel text is now always read-only.
- page 0 is invalid.
1996-10-14 08:05:37 +00:00
thorpej
4fa7362d31
Add a db_memrw.c that understands how to write to read-only kernel text
...
(remaps page read/write/cache-inhibit, does write, restores previous
mapping). Kernel text no longer needs to be read/write with DDB/KGDB
is in the kernel.
Based on a similar module written for the Sun3 port by Gordon Ross,
and modified somewhat by me.
1996-10-14 08:02:27 +00:00
thorpej
5b66e34d14
A few small changes:
...
- Offset kernel text one page. Stash the PA of this offset page for
use later.
- Add a few comments.
- Free up some registers earlier in the initialization process.
- Use a `prototc' to set the Translation Control register, rather
than relying on a2 pointing just past the MMU trampoline in the
high page. (Suggested by Charles Hannum.)
- Set VBR to the kernel vector table just before turning on the MMU.
- Just before rebooting, set VBR to 0, which is what the BOOTROM expects
it to be.
1996-10-14 07:58:54 +00:00
thorpej
27f386f5b2
Garbage collect some now unneeded code, and declare the punit device
...
driver entry point switch.
1996-10-14 07:34:48 +00:00
thorpej
415248a4f2
Move the machdep_start() code into machdep.c. No need for different
...
versions of this function anymore, now that we have a sane kernel setroot().
1996-10-14 07:33:43 +00:00
thorpej
18c2b0460a
Garbage collect some hackish code that was needed when we had a lame
...
kernel setroot(). The device type for network boot is set like any
other device now. Also, call the punit entry point for device drivers
to properly set `bootdev'.
1996-10-14 07:31:47 +00:00
thorpej
9ff0348a49
Implement ctpunit(), a "set physical unit" entry point.
1996-10-14 07:29:57 +00:00
thorpej
9d51a5dcf7
Add a standalone driver entry point that sets the physical unit (HP-IB's
...
equivalent of a LUN) in `bootdev'. This is needed to properly detect the
boot device if booted from the tape unit of an HP-IB disk/tape combo.
1996-10-14 07:29:15 +00:00
thorpej
84da57f13b
Clean up the code that sets `bootdev' based on information provided
...
by the BOOTROM. Also, give network devices the attention they deserve.
1996-10-14 07:26:06 +00:00
thorpej
23640d012f
New root device detect/set code, lifted mostly from NetBSD/alpha.
...
The "options GENERIC" entry in kernel config files is not longer necessary
for "swap generic" kernels. Uses new config constructs which work with
some glue in an old config environment. This code will support new config
with minimal changes.
1996-10-14 07:20:26 +00:00
thorpej
8acf9f0215
Set the device class on non-dull devices. This is a transitional thing.
1996-10-14 07:14:11 +00:00
thorpej
7d13691de1
Add some new config glue to the legacy hp300 device structures. This is
...
a transitional thing.
1996-10-14 07:11:50 +00:00
thorpej
01d74572dd
Default the HIL keyboard to "US ASCII". This should fix a bug where
...
an unrecognized keyboard produced garbage on keypresses in the kernel,
but worked in the boot program (which has this default). The bug is
that the keymap pointers are unitialized.
1996-10-14 07:09:41 +00:00
thorpej
7ee4744ed2
Need to include <sys/exec.h>.
1996-10-14 06:51:50 +00:00
christos
ad67e04154
backout previous kprintf change
1996-10-13 16:50:51 +00:00
christos
30b3cc3d09
backout previous kprintf changes
1996-10-13 03:14:05 +00:00
christos
60dd5ceebe
printf -> kprintf, sprintf -> ksprintf
1996-10-11 00:06:28 +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
eeef0d1784
Prototypes for functions in locore.s and machdep.c (oops, forgot to
...
check this in the other day...)
1996-10-07 06:29:30 +00:00
thorpej
24d2e8ec5f
Sanity sweep.
1996-10-07 04:45:41 +00:00
thorpej
a2f9031d2f
Add support for copying the miniroot from HP-IB cartridge tape.
1996-10-07 04:45:10 +00:00
thorpej
bc504916f3
Garbage-collect some sun3-specific stuff, add some debugging code,
...
and KNF.
1996-10-06 19:07:53 +00:00
thorpej
61a0ffca58
Fixup (unused) netstrategy() routine's calling convention (just returns
...
EIO). Garbage collect unused netioctl() - conf.c redirects netioctl()
to noioctl().
1996-10-06 19:07:00 +00:00
thorpej
a3c29be5e0
Fixup ctstrategy() calling convention. The standalone ct driver
...
works again.
1996-10-06 19:05:27 +00:00
mycroft
6ea58d5fae
Serial console changes:
...
* Enable FIFO with trigger level 1.
* Set DTR and RTS so terminals are happy.
* Do not set IEN.
1996-10-06 01:42:45 +00:00
thorpej
67cd067f25
Nuke __BDEVSW_DUMP_OLD_TYPE.
1996-10-06 00:15:31 +00:00
thorpej
39cbdb7e9f
Fix kernel crash dumps. Still uses the old format for now.
1996-10-06 00:14:12 +00:00
thorpej
d01962702f
General cleanup:
...
- make a prototyping sweep
- do some garbage collection
- always print the status of enabling memory parity checking
Still some more to do.
1996-10-05 09:22:47 +00:00
thorpej
84b3384afb
Check for internal HP-IB in SYSFLAG much earlier (i.e. before the MMU
...
is turned on).
1996-10-05 09:19:58 +00:00
thorpej
f52b60c3a0
Prototype ledcontrol().
1996-10-05 09:18:22 +00:00
thorpej
2ec75a3c3c
Cast a volatile pointer to caddr_t for a call to badbaddr().
1996-10-05 09:17:38 +00:00
thorpej
a6a1f78d0c
Handle kernel trace traps and breakpoints like the Sun3 port:
...
- Only pass user trace traps and breakpoints on to trap().
Gets rid of some hair in the trace/breakpoint trap cases.
- Before entering the debugger, switch to a temporary
stack so that the debugger can alter the stack pointer.
- Add glue for KGDB (still not complete).
Some other minor cleanup:
- Protect against some bad pointer derefs.
- Be more a little more verbose when a fatal trap
occurs to aid debugging.
1996-10-05 07:24:10 +00:00
thorpej
8499e0131e
Handle kernel trace traps and breakpoints like the Sun3 port:
...
- Only pass user trace traps and breakpoints on to trap().
- Before entering the debugger, switch to a temporary
stack so that the debugger can alter the stack pointer.
- Add glue for KGDB (still not complete).
Clearly mark the MMU enable trampoline code.
1996-10-05 07:16:52 +00:00
thorpej
0ff075f6e7
Define FR_SIZE as sizeof(struct trapframe)
1996-10-05 07:11:44 +00:00
thorpej
2f9a90e967
Don't lower spl before calling main. For now, do it right before
...
calling hilinit(). Eventually, would like to enable them only after
autoconfiguration is finished.
1996-10-05 07:06:11 +00:00
thorpej
2793eb282e
If console is on an ite, make sure the HIL is initialized enough for
...
the keyboard to work. Fixes a bug where booting with `-d' worked
only on systems using a serial console.
While I'm here, eliminate some redundancy in the ite console intialization
code.
1996-10-05 05:22:04 +00:00
thorpej
5f728fb6de
Garbage-collect some now-unused PANICBUTTON code.
1996-10-04 22:22:15 +00:00
thorpej
608fae21af
Clean up handling of non-maskable interrupts.
1996-10-04 22:19:47 +00:00
thorpej
8672fd704e
At the end of the delay calibration routine, explcitly reset the timer.
...
This fixes a critical bug where a clock interrupt would happen sometime
between the call to hp300_calibrate_delay() and when proc0 is initialized.
This ends up dereferencing a bad pointer in itimerdecr(), which scribbles
over the first page of kernel text, specifically vectors 46 and 47 (decimal).
To complicate matters, the way the bug manifested itself was different
depending on whether or not DDB was configured into the kernel. When
DDB is in the kernel, kernel text is mapped read/write. When DDB is not
in the kernel, kernel text is mapped read-only. Note that the kernel
scribble happens early, typically before the console is initialized.
In the non-DDB case, the kernel will hang as soon as it's loaded because
the access causes a fault (before the console is initialized, so you
don't see the trap).
In the DDB case, the access does _not_ cause a fault. However, the
mechanism used to enter the kernel debugger is to issue a "trap #15".
Conveniently, this is one of the corrupted vectors (47), thus rendering
DDB useless (it actually caused a recursive panic/trap loop).
This _WILL_ be in the first 1.2 official patch.
1996-10-04 08:55:04 +00:00
thorpej
9f287be633
Add EXEC_AOUT to all kernels.
1996-10-03 01:25:32 +00:00
thorpej
0cb6f5925c
Correct an old comment; the 318, 319, and 330 _are_ tested (68020 w/ 68851).
...
(Read: I have a 319 :-)
1996-09-14 20:36:49 +00:00
thorpej
9476dabc1a
Correct a somewhat confusing typo in a comment, pointed out by
...
Scott Reynolds.
1996-09-12 18:54:23 +00:00
thorpej
be969d881e
Update for poll(2) changes.
1996-09-12 01:22:58 +00:00
thorpej
eae3f0bb96
When opening a disk for non-filesystem i/o, make sure we only return
...
an error condition when an error occurs.
Bug noticed by Terry Lambert <terry@lambert.org>.
1996-09-11 18:05:02 +00:00
thorpej
5704683922
- Pull in some interesting changes from the Amiga trap.c:
...
* SunOS glue
* 68060 exception frame size definitions
* 68060 fault detection macros
- Use `cputype' rather than `mmutype' where appropriate.
- Play the prototype game.
This file is much closer to being sharable by all m68k ports.
1996-09-11 00:44:24 +00:00
thorpej
f36cec2dfc
Define the CPU_* constants from <m68k/cpu.h> for assym.h
1996-09-11 00:32:16 +00:00
thorpej
75b43e0aa6
Declare a `cputype' global, and set it as appropriate.
1996-09-11 00:29:28 +00:00
thorpej
e469c7beca
Use <m68k/cpu.h>.
1996-09-11 00:11:42 +00:00
thorpej
1710b024c0
Document COMPAT_M68K4K, but leave it disabled by default.
1996-09-10 22:26:50 +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
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +00:00
thorpej
e0775c12c8
Don't `config-dependent' machdep.c; we already depend on the Makefile,
...
which accomplishes the same thing.
1996-09-07 06:52:21 +00:00
mycroft
fc3def4096
Remove duplicate declarations of LKM functions and macros.
1996-09-05 15:46:22 +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
thorpej
a90c2638f0
Add the United Kingdom and Swedish HIL keyboard maps to the kernels
...
used in the binary snapshots.
1996-08-25 01:22:13 +00:00
thorpej
9221f4ecc6
Add COMPAT_12 to all kernels, and COMPAT_11 to a few as well.
1996-08-22 21:02:49 +00:00
hpeyerl
f5f1393c35
Get rid of dkn stuff. It's deprecated.
1996-08-18 17:01:53 +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
thorpej
180c16eff6
Oops, forgot this required change in previous commit.
1996-06-26 18:11:24 +00:00
thorpej
fc699e8440
Major revamp of the boot code.
...
- Good bye SYS_PBOOT and SYS_NBOOT, hello SYS_UBOOT (unified boot)
Currently supports booting from SCSI and HP-IB disk and network
from a single boot block. Infrastructure for booting from
HP-IB tape is there, but it doesn't quite work yet.
- Add a slightly modified version of Gordon Ross's "rawfs",
which provides a filesystem-like interface to tape devices.
Still needs debugging (see above).
- Rename sys_inst.c to inst.c, so that the LIF directory entry
turns out right (used to look like SYS_SYS_I if loaded from
tape).
- Add a "netio_ask" hint to netio.c, so that a special instnetio.o
doesn't have to be compiled for SYS_INST. Defaults to using
bootparams, but if set, will prompt user for information
usually obtained from bootparams.
- General cleanup.
1996-06-26 17:44:21 +00:00
thorpej
5253727570
From Ignatios Souvatzis <is@NetBSD.ORG>:
...
- handle fpfault properly on the 68040
- properly distinguish between a bus error and an MMU fault
on systems with 68030 or 68851 MMUs
1996-06-23 05:48:12 +00:00
cgd
352d972c94
locc() is unused. Remove it from the machine-independent kernel interface.
1996-06-10 15:33:33 +00:00
thorpej
156eaa5f84
Add "needs-count" to the `ac' driver so an ac.h file gets generated.
1996-06-10 06:48:44 +00:00
thorpej
a323ce7b09
Add the "Python 28849" to the list of `supported' tape drives as a PYTHON
...
type.
1996-06-10 06:39:31 +00:00
thorpej
bcab59cd3c
Remove the old-style disk instrumentation support. Nothing uses it
...
anymore.
1996-06-06 16:17:41 +00:00
thorpej
e9e80a6043
Add calls to tty_attach() and tty_detach() where appropriate.
1996-06-06 15:36:06 +00:00
hpeyerl
3e834c5e86
Update to reflect reality (such as it is).
1996-05-26 23:45:42 +00:00
mrg
1af2be6068
document PORTAL
1996-05-20 18:15:11 +00:00
thorpej
f969979dea
Back most (not all) of the previous delay-related changes now that
...
delay is calibrated properly.
1996-05-18 23:56:59 +00:00
thorpej
62f7f3ad57
Implement a real delay calibration routine, adapted from Chuck Cranor's
...
mvme68k delay calibration algorithm.
1996-05-18 23:30:09 +00:00
christos
52d3532adb
- remove cpu_exec_aout_prep_oldzmagic and use exec_aout_prep_oldzmagic
1996-05-18 15:58:07 +00:00
thorpej
a8c7148dd2
XXX set up alldevs and allevents so that vmstat -i will work.
1996-05-18 01:39:57 +00:00
thorpej
63f4ec3e41
Put the vector table back in the text segment; putting it in the data
...
segment breaks doboot() on my 319 (but worked on my 380...bleh!)
1996-05-18 00:52:53 +00:00
thorpej
03fc26050d
Put the vector table _after_ the temp stack.
1996-05-17 16:32:28 +00:00
thorpej
503413590e
Changes for the new delay() function.
1996-05-17 15:38:08 +00:00
thorpej
91cb72e7ea
remove the now unused MHz constants, add a declaration for vectab[],
...
and document some globals.
1996-05-17 15:37:07 +00:00
thorpej
a5d6cd3a32
Move the vector table to the data segment.
1996-05-17 15:33:52 +00:00
thorpej
d845719070
Add a new function, hp300_calibrate_delay(), which sets the delay constant
...
based on a model's known CPU speed. cpuspeed value is now in MHz
instead of (MHz / 8).
1996-05-17 15:32:26 +00:00
thorpej
33e1caaf99
Couple of changes:
...
- New delay() function, modeled after sun3/mvme68k delay,
calibrated with a model's known cpu speed.
- Use the defined constants for machineid and ectype
when determining what kind of machine we have, rather
than their expanded equivalents, for clarity.
- Move the vector table to the data segment so that it
can be patched at run-time.
1996-05-17 15:27:26 +00:00
thorpej
bbc04e2011
Define the machineid and ectype constants.
1996-05-17 15:20:55 +00:00
thorpej
b20981c51d
Remove cpuspeed from here.
1996-05-17 15:19:02 +00:00
thorpej
3ad552e74b
Adjust for new DELAY() ... s/DELAY(1)/DELAY(5)/ and lengthen some
...
timeouts.
1996-05-17 15:15:29 +00:00
thorpej
c3fc839395
Change "DELAY(1)" to "DELAY(5)". This is basically equivalent to how
...
the old implementation of DELAY() behaved with small values.
1996-05-17 15:12:30 +00:00
thorpej
f708ced3a3
Adjust for the new values of cpuspeed.
1996-05-17 15:09:39 +00:00
thorpej
be71c11843
Add 2 missing ";"s ... they weren't noticed before because of the
...
old implementation of DELAY().
1996-05-17 15:08:13 +00:00
thorpej
7d279a797f
Add a "_kernel_text" symbol, for libkvm. From Gordon Ross.
1996-05-16 23:53:10 +00:00
thorpej
31526bc8e8
These haven't been kept up to date...
1996-05-15 23:50:30 +00:00
mycroft
540f9550c0
Make `make depend' work for libraries.
1996-05-11 16:11:30 +00:00
scottr
6bd0d2c7eb
Prototyping-related changes I missed the last time, from Thorsten
...
Frueauf. Closes PR 2378.
1996-05-09 21:26:08 +00:00
scottr
a7b314774d
doboot() takes no arguments (from Thorsten Frueauf)
1996-05-09 21:17:04 +00:00
thorpej
2de85463e2
Correct typos, PR #2382 .
1996-05-09 21:11:47 +00:00
thorpej
7ebfa3c7fc
Make the MI LANCE driver standalone, and use cfattach to resolve
...
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.
Changed struct ifnet to have a pointer to the softc of the underlying
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_start)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 00:57:58 +00:00
thorpej
090191b3aa
Make the MI LANCE driver standalone, and use cfattach to resolve
...
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.
1996-05-07 00:56:51 +00:00
scottr
d84817d322
Fix prototypes of cpu_set_kpc() and pagemove(); closes PR 2367.
1996-05-02 20:49:20 +00:00
thorpej
270d48fd22
Add "void" return type to consinit().
1996-04-27 00:39:59 +00:00
thorpej
8591bb3346
Prototype doboot() and give it the __noreturn__ attribute, so that
...
machdep.c will compile.
1996-04-27 00:38:44 +00:00
christos
78403e6c0c
Add a hardware dependent initialization function lehwinit()
1996-04-22 02:25:54 +00:00
cgd
d7d306aeb7
change LANCE copy & zero functions' names to start with amd7990_, and
...
remove their 'integrate' (usually defined to be 'static') keywords.
when lance drivers are split up by attachment, more than one file will
reference the copy/zero functions (i.e. not just the file that pulls in
am7990.c... and eventually inclusion of am7990.c should go away entirely).
1996-04-18 00:25:11 +00:00
thorpej
14bffff70d
Add a stub config_init() function, so kernel will link. Temporary, until
...
we use new config.
1996-04-07 18:21:08 +00:00
christos
ab0e60a42f
fdopen -> filedescopen
1996-03-14 21:20:59 +00:00
scottr
4d30db274f
Back out previous change.
1996-03-13 23:42:45 +00:00
scottr
eb473e57bd
Add second argument to longjmp() call.
1996-03-13 19:04:04 +00:00
cgd
18ec26aa21
add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
...
execpt without quotes. meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
thorpej
b2c3f54207
Fix logic errors in new console probe code that caused framebuffers
...
outside of "internal i/o" space to not even have a chance at console-hood.
Fix tested by Thorsten Frueauf <frueauf@ira.uka.de>, and offered with
my sincerest apologies that the bug ever existed in the first place.
1996-03-03 16:48:52 +00:00
thorpej
570949e0e4
Catch up with ITE data structure changes.
1996-03-03 04:23:33 +00:00
scottr
9e8b6a032a
Don't try to make dependencies for SFILES if it isn't defined.
1996-03-01 17:03:17 +00:00
cgd
3d67685d36
Do not build vnode_if.[ch] for each kernel. Build them once, like the
...
various syscall sources/headers, and just compile them. From PR 2142, OK'd
by mycroft.
1996-02-29 20:54:58 +00:00
thorpej
ee8a2c002f
Copyright assigned to The NetBSD Foundation.
1996-02-28 01:01:17 +00:00
scottr
f08c9ffa5a
make this compile again, since CONUNIT is no longer defined for us.
...
per Jason.
1996-02-27 22:11:44 +00:00
thorpej
0adab4d779
Avoid accidentally lowering a devices console priority.
1996-02-26 23:40:29 +00:00
thorpej
cf93780656
Adjust for the new console code; CONSCODE is now a kernel option, not
...
a dca-specific constant. For now, hardwire standalone DCA console
at select code 9 (which is what the old constant expanded to). Really
should make the way the bootblock console is probed look just like how
the kernel console is probed.
1996-02-26 21:51:25 +00:00
mycroft
2ce52ae489
Define build programs with `?=', so they can be overridden with `makeoptions'.
1996-02-26 02:53:20 +00:00
thorpej
fa7bee29a5
Completely rework how the console is probed. Console probing no longer
...
requires pre-autoconfigured devices. Fix up some prototypes. Part of the
long journey towards new config. (GETTING THERE!)
1996-02-24 00:54:53 +00:00
gwr
946696f064
Add m68k/db_memrw.c
1996-02-22 23:35:07 +00:00
thorpej
94ca9f6aa0
New interrupt handling code. Highlights:
...
- Interrupt service routines now take a pointer to
the device's softc, rather than a unit number.
- Interrupt handling code in locore.s condensed. Only
remaining "special" handlers are lev0 (spurious),
lev1 (HIL; don't ask), lev6 (clock), and lev7 (NMI).
Only remaining hard-coded device driver reference in
locore is HIL. (clock doesn't count...)
- "dcafastservice" eliminated. DCA driver has new mechanism
to guarantee prompt interrupt service at any ipl (not
just level 5).
- Interrupt code pulled out of autoconf.c and machdep.c and
placed in new file, isr.c
1996-02-14 02:56:38 +00:00
thorpej
d6f4511690
All interrupt routines (except the HIL; don't ask) now take a pointer
...
to a softc, rather than a unit number. Add a "dq_softc" member
to struct devqueue; this is a temporary measure until the
dma/controller/device callback spaghetti is untangled.
YAY! No more need for dcafastservice!
HIL: squish instances of "(void) splhil()" and "(void) spl0();".
1996-02-14 02:43:54 +00:00
thorpej
c88b047836
Compile the new interrupt handling code.
1996-02-14 02:33:25 +00:00
scottr
b62a5cfd54
When we panic, be a little smarter about whether we need to wait
...
for the user to hit a key before we reboot.
1996-02-09 18:57:20 +00:00
scottr
41378a47c0
Info from Mike Hibler <mike@cs.utah.edu> indicates that the probable
...
intent for the value of the C_REL constant was 0xc0. Testing has turned
up no adverse effect on tape or disk devices, and in fact this change
apparently makes my 9145 tape work as expected. (!) Closes PRs 1874 and
1971.
1996-02-09 18:00:35 +00:00
scottr
4058c67702
Specify return type for vunmapbuf()
1996-02-09 16:58:40 +00:00
mycroft
753fe3a25a
Fix mkdep problems due to missing flags.
1996-02-09 02:21:13 +00:00
christos
2c8314f73c
vm prototype changes
1996-02-05 02:06:38 +00:00
thorpej
996edfa606
Remove bogus "return (0);" in rdmatch() that wiggled its way in uninvited.
1996-02-03 03:00:29 +00:00
mycroft
d6b2d2e00f
config.old uses vers.o, not newvers.
1996-02-03 01:17:22 +00:00
mycroft
5bc076e17e
Use `-traditional-cpp' when building .s and .S files.
1996-02-03 00:43:50 +00:00
mycroft
aa15cd3f7f
Don't need unistd.h.
1996-02-02 23:53:20 +00:00
mycroft
56a63148c6
config.old doesn't grok %SFILES.
1996-02-02 23:49:19 +00:00
mycroft
dcd66e9f4d
Clone these, and fix many bugs.
1996-02-02 20:08:17 +00:00
scottr
c0f37b4d05
Use DISKUNIT()/DISKPART() from <sys/disklabel.h> instead of
...
our own home-grown versions.
1996-02-02 19:50:26 +00:00
mycroft
9db20bf150
Don't define _KERNEL here.
1996-02-02 19:42:08 +00:00
mycroft
9d9a70a5a2
Fix #includes.
1996-02-02 18:05:36 +00:00
mycroft
fc9d84fb46
assym.s -> assym.h
...
(Some ports did this already.)
1996-02-02 02:34:09 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
thorpej
134b410457
Use the common sigreturn routine.
1996-01-31 02:26:05 +00:00
thorpej
90a0b784de
Build memcpy.c
1996-01-30 19:47:32 +00:00
thorpej
abe8231c4f
Catch up with changes to libsa.
1996-01-30 19:09:09 +00:00
scottr
f9418ec605
Eliminate unnecessary goto and labels, and other minor cleanup.
1996-01-23 00:28:09 +00:00
thorpej
cd17a6b3af
Remove all the old STACKCHECK stuff; it hasn't been used for a long time.
1996-01-16 22:24:28 +00:00
thorpej
1eff435896
Use ${BINOWN} and ${BINGRP} per Arne H. Juul <arnej@ikke.idt.unit.no>
...
in PR #705 . Also, clean up some stuff left over from HP-BSD.
1996-01-15 01:41:37 +00:00
thorpej
524cf97f54
Kludge around a case where a flaky HP-IB disk might be slow to respond
...
to the identification request in rdmatch(). Similar in spirit to a
patch from Jason Downs (written eons ago), but limited to the broken
device we're trying to reach. My patch tested (and fixed :-) by
Herb Peyerl.
1996-01-10 20:54:29 +00:00
thorpej
2e1c1680c5
Fix declaration of hilqfree(), from Daniel Hagerty <hag@wizardz.com>,
...
PR #1918 .
1996-01-10 20:31:12 +00:00
thorpej
f1d8ca699f
Oops, compile hpux_machdep.c if COMPAT_HPUX. Forgetfulness pointed
...
out by Dave Carrel.
1996-01-08 03:27:36 +00:00
thorpej
5b39541e48
New generic disk framework. Highlights:
...
- New metrics handling. Metrics are now kept in the new
`struct disk'. Busy time is now stored as a timeval, and
transfer count in bytes.
- Storage for disklabels is now dynamically allocated, so that
the size of the disk structure is not machine-dependent.
- Several new functions for attaching and detaching disks, and
handling metrics calculation.
Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.
For usage and architectural details, see the forthcoming disk(9) manual
page.
1996-01-07 22:01:38 +00:00
thorpej
d9bce7422e
Move the obviously machine-dependent HP-UX compat code to hpux_machdep.{c,h}.
...
A fair bit of this, the m68k core dump and exec goo, can probably be
made into a generic m68k hpux module, eventually.
More to be placed in hpux_machdep.c - keep your eyes peeled...
1996-01-06 12:44:06 +00:00
jtc
2fce159ff8
Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
...
traditional usage.
1996-01-04 22:21:33 +00:00
thorpej
90964d13db
Implement a suggestion from Charles; use a wrapper function before
...
leintr() to deal with das blinkenlights. Also squishes the need
for LEINTR_UNIT.
1996-01-02 21:56:21 +00:00
thorpej
e7cf87f5dc
Add the last revision previous to the switch to the MI LANCE code of
...
hp300/dev/if_lereg.h to the standalone code; the standalone LANCE driver
for the hp300 needs it.
1996-01-01 18:10:54 +00:00
thorpej
3319ad7b61
XXX TEMPORARY STOP-GAP MEASURE! A 12-bit command modifier was being
...
squished into an 8-bit position in a command stream! Which one is wrong?
Changed the constant from 0x140 to 0x40, which is what ended up happening
anyhow. This exists in the old Utah sources, too! How long has this
bug existed?!
1995-12-31 04:11:42 +00:00
thorpej
34c2680a5b
Re-work the serial console support a bit; it doesn't depend on statically
...
allocated softc's now.
1995-12-31 00:27:16 +00:00
thorpej
f26be3a3d6
Fix something the switch to the MI LANCE code broke: use LE_TINT_HOOK
...
and LE_RINT_HOOK to blink the "LAN transmit" and "LAN receive" LEDs on
the front panels of 400-series machines iff the CPP symbol USELEDS is
defined in the kernel config file.
1995-12-30 21:03:02 +00:00
thorpej
67c76ca15d
Print unconfigured card id and select code regardless of -DDEBUG.
1995-12-30 18:25:25 +00:00
thorpej
11c7d655d8
Correct some comments about 8-port DCM boards. (Thanks, Mike, for
...
pointing out the True Nature of The Force...)
1995-12-29 17:21:29 +00:00
thorpej
9ba67f2c93
Increase maxusers from 16 to 32.
1995-12-29 17:16:29 +00:00
thorpej
9038d094fa
Enable COMPAT_HPUX by default. It's still not 100% yet, but it doesn't
...
seem to really hurt anything, either. Makes it easier for folks using
binary snapshots only to try it out.
GENERIC: now that the PT map allocation is fixed, increase the default
maxusers to 32.
1995-12-29 17:12:48 +00:00
thorpej
17eb6e2bc1
Move the old-style disk instrumentation "structures" to a central location
...
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
1995-12-28 19:16:31 +00:00
mycroft
ce000f04ef
Remove deprecated cpu_setstack().
1995-12-21 05:01:32 +00:00
thorpej
1094eb5008
Oops ... missed this file in the last round of device changes.
1995-12-11 19:41:47 +00:00
thorpej
540dfebf15
Rather than using individual HP300 model names, map those model names to
...
properties such as "M68040" and "M68K_MMU_MOTOROLA", used to conditionally
compile code. This is more in-line with now the other m68k ports do it,
and makes it much easier to find "common ground" among them.
In locore.s, use the MMU-type constants defined my <machine/cpu.h> rather
than "expanded" values.
Because HP300-model names are mapped to CPU/MMU combinations in
<machine/cpu.h>, no change to kernel configuration will be necessary.
1995-12-11 17:09:09 +00:00
thorpej
de6dad9228
Move bcopy/ovbcopy/memcpy into m68/m68k/copy.s, which is used by all
...
m68k ports already anyhow. No use in keeping 6 identical copies of this
function around.
1995-12-11 02:37:55 +00:00
mycroft
7877aa6eb5
Use the MI LANCE code.
1995-12-10 00:49:33 +00:00
thorpej
b1c7779d0a
Prevent the msgbuf from getting trashed across reboots by moving avail_end
...
back one page.
1995-12-09 07:54:19 +00:00
thorpej
862bb3adc1
Pass the correct number of arguments to readdisklabel().
1995-12-09 07:31:03 +00:00
mycroft
0e0ac5ed68
cpu_fork() now returns void.
1995-12-09 04:37:23 +00:00
thorpej
87206673fb
Keymap for the Swedish HIL keyboard, from Tomas Tengling <ltt@cd.chalmers.se>.
1995-12-06 22:13:23 +00:00
thorpej
9c784e07c1
Fix the integer overflow problem in pmap_init() when the user PT map is
...
allocated, as noticed by Chuck Cranor. In addition to re-arranging
the assignment as suggested by Niklas Hallqvist, check to see if maxproc
is higher than the number of available user PTs. If it is, lower maxproc
to that value, the rationale being that it's much more desirable to have
fork() return EAGAIN than to have your system wedge.
XXX note that root can still raise maxproc with sysctl(2) later. It's
probably worth having further discussion about this issue, but until
everyone has time to think about it, this seems like an acceptable solution
for the time being.
1995-12-05 20:01:54 +00:00
thorpej
52ec09e420
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting the drivers ready for new config.
1995-12-02 18:21:49 +00:00
thorpej
deb00c27b3
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting the drivers ready for new config.
Clean up namespace, remove several instances of global arrays. Instead,
use a softc to carry state around. Where possible, pass a pointer to
the softc rather than a unit number.
Pointers to hardware and software constructs are now stored per port
in each instance of the softc (one softc per board) rather than indexed
by minor number.
1995-12-02 18:18:50 +00:00
thorpej
41cf6f071f
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting the drivers ready for new config.
Clean up namespace, remove several instances of global arrays. Instead,
use a softc to carry state around. Where possible, pass a pointer to the
softc rather than a unit number.
1995-12-02 18:15:50 +00:00
thorpej
3ac76475ea
Use a "match/attach" rather than "init" scheme for probing devices.
...
This is a step towards getting drivers prepared for new config.
1995-12-02 18:11:21 +00:00
thorpej
de5ce5f48c
Change "hilloop" to "hilsoftc" and make slightly more new config-friendly.
...
Remove all uses of curproc.
1995-12-02 02:48:47 +00:00
thorpej
b618522128
Make the DMA controller driver a little more new config-friendly. Still
...
more work to do, but this is a step in the right direction.
1995-12-02 02:46:45 +00:00
thorpej
da66c0a255
Enable COMPAT_HPUX.
1995-11-28 08:48:18 +00:00
thorpej
38b63746fb
Note the new status of COMPAT_HPUX, but keep is disabled by default.
1995-11-28 08:47:38 +00:00
thorpej
63b0022b86
Update a #include for the "new" location of HP-UX emulation code.
1995-11-28 08:12:37 +00:00
thorpej
ffcccc41bd
Compile compat/hpux/hpux_exec.c and compat/hpux/hpux_file.c if COMPAT_HPUX
...
is defined.
1995-11-28 08:10:09 +00:00
thorpej
b92924680d
Garbage collect some stuff that isn't used. Rename the relocation info
...
structure to be consistent with the other m68k ports. XXX that struct needs
to move to an m68k common file.
1995-11-20 01:15:26 +00:00
thorpej
df59198ddc
Put doshutdownhooks() in the right place. Pointed out by cgd.
1995-11-20 00:58:54 +00:00
thorpej
8272af3168
Re-arrange boot() a bit; call doshutdownhooks(), if we're rebooting, say so,
...
etc. Modeled after the alpha port's boot().
1995-11-19 23:24:15 +00:00
thorpej
8122bc0e33
Prevent the ITE_ACTIVE bit from being cleared in iteoff() if the ITE_ISCONS
...
bit is set. Works around the fact that the last process to have the
console open exits, the bit is cleared, and "syncing disks...", etc. is
not seen if the system is rebooted with reboot(8). Fixes PR #1455 .
1995-11-19 23:14:22 +00:00
thorpej
31430a5279
Cosmetically change one #include directive.
1995-11-19 22:32:38 +00:00
thorpej
905cb9dda1
Re-arrange things such that we can print out disk geometry regardless of
...
COMPAT_NOLABEL.
XXX One day when the world doesn't assume DEV_BSIZE bytes/sector, we'll be
able to actually use the stuff sensed from the drive, rather than a table.
1995-11-19 19:07:18 +00:00
thorpej
d0e01feb5c
Do an indirect driver a little more like an indirect driver would like to
...
be done. Set up a structure filled with function pointers in the
controller-specific probe routines, and jump through them, instead of
if()'ing our way though each operation.
Be a little more discriptive; print out the controller type found
during the probe in a way that's somewhat meaningful.
1995-11-19 17:57:15 +00:00
thorpej
af18124282
We no longer need -fno-builtin; syscall namespace has been cleaned up a bit.
1995-10-22 06:05:21 +00:00
thorpej
62150b43b1
Truncate the incoming packet if it doesn't fit into the buffer.
1995-10-19 18:43:27 +00:00
thorpej
ef52ec31c1
Recompile genassym if the Makefile changes.
1995-10-18 22:50:15 +00:00
thorpej
43358aae60
Deal with vendor, product, and revision strings properly.
1995-10-16 08:51:49 +00:00
thorpej
5dcaa0b51c
Be a tad bit more informative when the drive is attached. Print geometry
...
info when appropriate, because, darn it, it's useful.
1995-10-15 10:03:18 +00:00
thorpej
54ed756bc4
Add another dca and grf
1995-10-10 02:12:37 +00:00
thorpej
ab16c2efa6
Remove unneeded RCS ids.
1995-10-09 08:07:37 +00:00
thorpej
2d5f7a7b07
Pass correct number of arguments to hpibgo().
1995-10-09 07:57:43 +00:00
thorpej
83dfe0816e
Remove the icode stuff; it hasn't been used in a long time.
1995-10-08 20:19:22 +00:00
thorpej
a8637d68f8
blkclr -> bzero
1995-10-08 19:33:36 +00:00
thorpej
09024536ef
Remove __main(), strlen(), bzero(), and bcmp(). They're all in libkern.
1995-10-08 19:30:51 +00:00
thorpej
3b70bc6b37
Finish up the system call function renaming; sysarch -> sys_sysarch and
...
vtrace -> sys_vtrace.
1995-10-08 19:01:26 +00:00
mycroft
245f292fed
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:25:19 +00:00
thorpej
c2ca33b9c1
Initialize the kernel PT map as thoroughly in the 68040 case as the
...
non-68040 case. Fix up a comment there, too.
1995-10-05 06:54:12 +00:00
thorpej
a6359b2633
Fix segment table reference bug, from Micheal Hitch.
1995-10-05 06:47:25 +00:00
thorpej
e43d278d31
Several changes:
...
* Reset the card on "fresh open" as a sanity measure.
* Use the "secret bit" to enable interrupts.
* Make some parts look/behave like their cousins in dev/isa/com.c
* Set the FIFO threshold based on line speed.
* Be a little more informative when port is attached.
* Implement TIOC{G,S}FLAGS; ttyflags now works.
First two items prevent deadlock on some systems (notably the 380,
425, and 433) which some people have been reporting. Use of the
"secret bit" seems to be safe on systems which don't need it. Changes
tested on a 319, 340, 345, and 380.
1995-10-04 17:46:08 +00:00
thorpej
442aff9376
Say what I really meant in a printf()...
1995-10-04 08:39:14 +00:00
thorpej
b675177228
Put new-style RCS ids in the startup banner. Makes bootblock revisions
...
much easier to recognize; old method could have revision corrupted by
local RCS control.
1995-10-04 07:24:31 +00:00
thorpej
d08330454a
Determine the select code of the console device, or -1 for internal grf.
...
Pass this value to the kernel in register d5. This value isn't currently
used by the kernel, but will be in the future.
1995-10-04 06:54:42 +00:00
thorpej
f060c456de
Couple of changes:
...
* Implement TIOC{G,S}FLAGS; ttyflags works now.
* Reset the card on a "fresh open" as a sanity measure.
* Make dcmopen() and dcmclose() a little more like the
corresponding routines in the new dca.c
1995-10-04 06:39:06 +00:00
thorpej
d7b36ab7a2
Add mt0.
1995-10-02 00:36:07 +00:00
thorpej
f12fd2307e
Driver for HP 7974a, 7978a/b, 7979a, 7980a, and 7980xc 9-track HP-IB tapes.
...
Original version contributed to Utah by Mt. Xinu. Ported to 4.4BSD by
Mark Davies and Andrew Vignaux.
1995-10-02 00:28:20 +00:00
thorpej
a33b9f4fdb
Assume primary swap is `b' partition, not `root partition + 1'.
1995-09-24 02:18:11 +00:00
thorpej
3810bc32eb
Compile the system installation program and install it in /usr/mdec/rbootd
...
as SYS_INST.
1995-09-23 17:40:54 +00:00
thorpej
a8c323442d
Add a standalone system installation program. Currently implements:
...
* Prompt user for disklabel information and label disk.
* Copy miniroot image from NFS server to `b' partition.
* Boot kernel in miniroot image into single-user mode.
Hooks for tape support are there, but the meat for that isn't implemented yet.
1995-09-23 17:38:51 +00:00
thorpej
a35f639de0
If compiled for the system installation program, prompt for myip, gateip,
...
netmask, serverip, and path rather than using rarp/bootparam.
Catch up with libsa changes.
1995-09-23 17:31:10 +00:00
thorpej
d429f2e11f
Re-arrange a mite; for the system installation program. Catch up with libsa
...
changes.
1995-09-23 17:28:11 +00:00
thorpej
188f6e6912
Add *close() routines. Basically, zaps softc structure so that partition
...
information will be re-loaded upon next open.
Catch up with libsa changes.
1995-09-23 17:19:58 +00:00
thorpej
b8e9fb1b0b
Catch up with libsa changes.
1995-09-23 17:17:03 +00:00
thorpej
f03897c2b6
"Oops." Get the declaration of sys_arch() correct.
1995-09-22 15:27:10 +00:00
thorpej
7c36f209e7
Need <sys/mount.h> now.
1995-09-21 22:26:04 +00:00
thorpej
ddf9c6da16
Add 4 vnds to each, add 4 ccds to GENERIC, update BASALT to match
...
current reality.
1995-09-21 07:27:52 +00:00
thorpej
ad05d707bf
Compile the kernel with -fno-builtin.
1995-09-19 23:34:06 +00:00
thorpej
7d7396c414
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:53:47 +00:00
thorpej
f47d026fb3
Fix cosmetic typo in kernel name prompt.
1995-09-13 18:52:39 +00:00
thorpej
ef09db9674
Add a memcpy() entry as suggested by Gordon Ross. Use <machine/asm.h>
...
where appropriate.
1995-09-10 19:42:17 +00:00
thorpej
fcdfdcb926
Fix missing clock-ticks in child after fork as suggested by cgd & Allan Briggs.
1995-09-03 00:44:43 +00:00
thorpej
7c55f97d9b
Really batting 1.000 today...
1995-09-03 00:07:21 +00:00
thorpej
231db77094
Fix thinko in netboot-related changes.
1995-09-02 23:36:09 +00:00
thorpej
acdc651ece
Add support for network booting; uses the following procedure:
...
rbootd->rarp->bootparam->nfs
Add "reset" option to disk and network boot prompts to reload boot code.
1995-09-02 05:04:14 +00:00
thorpej
a23346b0d5
Grok booting from the network.
1995-09-02 04:54:06 +00:00
thorpej
aa213636df
Example configuration for a diskless hp300.
1995-09-02 04:39:51 +00:00
mycroft
29053c58b2
SA_ONSTACK --> SS_ONSTACK
1995-09-01 20:05:59 +00:00
thorpej
ba2d89fa98
Bring this up to speed.
1995-08-18 20:24:02 +00:00
thorpej
351c20ab5e
Haven't had hpfplib for a long time.
1995-08-18 16:07:40 +00:00
mycroft
54c9a1df90
Replace splnet() with splsoftnet(). Add splnet().
1995-08-13 00:22:40 +00:00
mycroft
c5ec5c3003
Add splsoftnet().
1995-08-13 00:03:11 +00:00
thorpej
0b486f9aa0
Add bounds_check_with_label().
1995-08-08 06:23:08 +00:00
mycroft
8e77047f2c
Make new-style core dumps.
1995-08-07 06:13:57 +00:00
mycroft
61d9ac2bb7
Remove vnode_if.[ch] when cleaning.
1995-08-05 23:39:41 +00:00
thorpej
b56fc99724
Catch up with an include file change I missed before.
1995-08-05 16:47:34 +00:00
thorpej
1773fd4286
Kernel configuration file for my hp380.
1995-08-04 08:26:52 +00:00
thorpej
6143739a03
Acknowledge the Archive Viper 60 tape. Fixes pr-863.
1995-08-04 08:17:43 +00:00
thorpej
fc1f217977
Update for conf.h changes.
1995-08-04 08:12:57 +00:00
thorpej
62572d6658
Kill bogus if_addrlist check.
1995-08-04 08:08:41 +00:00
thorpej
89e7efa8d1
Zap compiler warnings in the check for a trace trap.
1995-08-04 08:06:27 +00:00
thorpej
4313e3aa62
Make the boot blocks compile (and work!) again.
1995-08-04 07:55:34 +00:00
thorpej
be13d8f6bf
Spring cleaning.
1995-08-04 07:40:31 +00:00
mycroft
6dfa7461a5
Add -Werror.
1995-07-24 03:30:07 +00:00
mycroft
7263209ce6
Make each disk and tape driver define its own read and write functions.
...
Deprecate rawread() and rawwrite() completely. Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-04 07:15:28 +00:00
paulus
b41c6a7d1c
Add call to pppintr from netintr.
1995-07-04 06:54:52 +00:00
cgd
c83f9c5568
remove unused cpu_exec() definitions. moved "broken swap" markers, for
...
ports that still need it, to types.h.
1995-06-28 02:55:18 +00:00
cgd
d4a54b73d2
kill user-land DELAY macro, as suggested by gwr.
1995-06-28 02:43:36 +00:00
cgd
2d49c3885b
clean up definitions of ctod(), dtoc(), ctob(), btoc(), btodb(), and
...
dbtob(). remove unused definitions of ctos(), stoc(), and dtob().
1995-06-26 06:55:38 +00:00
cgd
1c0be437b1
define __BDEVSW_DUMP_OLD_TYPE for ports where it's true. clean up
...
some m68k ports inclusion of common header.
1995-06-26 05:13:37 +00:00
christos
7f0e620523
Makefile.`arch`: - Add -lcompat
...
- Change clean: target to be a double dep one,
so libraries can use the clean target too
- Add genassym to the clean targets
1995-06-24 20:41:28 +00:00
jtc
55fbbc705d
Wrap with #ifndef _XXX_FLOAT_H_/#define _XXX_FLOAT_H_/ ... /#endif.
1995-06-20 20:45:22 +00:00
mycroft
3126edd708
Arrest the KNF policeman.
1995-06-02 17:51:21 +00:00
hpeyerl
f6d7cb01ee
Check curproc != NULL before PMAP_ACTIVATE.
...
From Chuck Cranor <chuck@maria.wustl.edu>
1995-05-29 19:36:22 +00:00
mycroft
22aa7c18f0
Update curpcb before possibly copying it.
1995-05-25 01:11:29 +00:00
mycroft
8e18358c86
Make sure proc0's md_regs is initialized.
1995-05-25 01:09:10 +00:00
hpeyerl
caef1dfaa2
KNF police.
1995-05-24 13:12:12 +00:00
jtc
f90f8d10aa
Removing -DKERNEL, transition to _KERNEL has been completed
1995-05-16 22:24:17 +00:00
mycroft
4b15d144ec
Put the address of the ps_strings structure in A2.
1995-05-16 14:34:19 +00:00
mycroft
76860a15b0
Add a child_return() function to clean up the child's state correctly, and
...
use this in cpu_fork(). Generalize proc_trampoline() so it can also be used in
this case.
1995-05-12 18:24:46 +00:00
mycroft
94cb5327ca
Stylistic change.
1995-05-12 13:04:33 +00:00
mycroft
46426ac542
main() should never return.
1995-05-12 13:03:23 +00:00
mycroft
9877d5d787
Eliminate the double mapping of the kernel stack. Enable swapping.
1995-05-12 12:54:44 +00:00
mycroft
7bf54feda1
Add vnd.
1995-05-12 12:49:54 +00:00
jtc
8aa6c376b6
KERNEL -> _KERNEL
1995-05-11 16:52:54 +00:00
christos
078a98c864
Fixed compat hpux files.
1995-05-10 17:02:52 +00:00
cgd
8703076975
define BROKEN_SWAP and/or cpu_swapout as appropriate.
1995-05-05 03:41:51 +00:00
cgd
0e59975fac
rename files files for new config/config.old naming
1995-04-28 08:19:12 +00:00
christos
c5f01c2a4c
Fixed comparison in SYS__syscall to be against sysent instead of
...
p->p_emul->e_sysent [Thanks Charles for pointing this out].
I think that this code needs to be fixed anyway for emulations where
SYS_syscall is not the same number as the NetBSD one (0)... (Only the
alpha port so far?)
1995-04-22 20:49:06 +00:00
christos
de42a28a1b
- added sunos_machdep.c for sun3, atari, amiga and mac68k.
...
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.
1995-04-22 20:24:40 +00:00
mycroft
9dbd0e8627
Use vfs_shutdown().
1995-04-21 21:56:59 +00:00
mycroft
055a6395e0
Update to match conf.h
1995-04-19 22:37:27 +00:00
mycroft
44e9c73f2c
Update for global changes.
1995-04-19 22:16:30 +00:00
mycroft
f1e8ea1dcc
Kluge the *tty() routines until this port is converted to config.new.
1995-04-19 19:15:47 +00:00
jtc
4d37095e31
Fix typo: ieefp.h -> ieeefp.h.
1995-04-16 16:47:03 +00:00
mycroft
81f3a84289
Add USPACE.
1995-04-12 15:27:48 +00:00
mycroft
6ad0e4cf93
More UPAGES --> USPACE.
1995-04-12 08:30:40 +00:00
mycroft
0e218b6169
Change some usages of UPAGES to USPACE.
1995-04-12 08:18:56 +00:00
mellon
df78dbb096
Reference cninit.c as well as cons.c
1995-04-11 09:52:11 +00:00
mycroft
e25c1817cf
kernel_pmap --> pmap_kernel()
1995-04-10 13:08:28 +00:00
mycroft
22cefc03bc
Bring back pmap_kernel(), for now always inlined as a pointer to
...
kernel_pmap_store.
1995-04-10 12:41:29 +00:00
mycroft
127e0761c9
Add mmopen(), mmclose(), and mmmmap() where appropriate. Lock vmmap when
...
needed. Make types consistent.
1995-04-10 11:54:47 +00:00
mycroft
d751b03236
Minor consistency nits.
1995-04-10 10:01:40 +00:00
mycroft
3f22df0746
Declare all return types.
1995-04-10 01:56:41 +00:00
mycroft
a9e1bbb0c7
Add no-op open and close functions.
1995-04-10 01:23:19 +00:00
mycroft
374185caff
Most of the console functions return void.
1995-04-10 01:01:40 +00:00
mycroft
0ed4893351
mmmap --> mmmmap
1995-04-10 00:59:33 +00:00
mycroft
5ca64d4b70
hilmap --> hilmmap
1995-04-10 00:58:36 +00:00
mycroft
0323181eb1
Switch grfmap and grfmmap.
1995-04-10 00:58:10 +00:00
mycroft
1b8aff7880
map --> mmap
1995-04-10 00:55:57 +00:00
mycroft
84de5b1135
Update to make con[fs].h.
1995-04-10 00:50:50 +00:00
mycroft
e957423a98
Move fp_except and fp_rnd definitions to machine/include.
1995-04-09 21:31:58 +00:00
mycroft
25b58554cb
Update.
1995-03-31 18:27:30 +00:00
hpeyerl
217531ad26
Update to reflect reality.
1995-03-28 23:57:20 +00:00
jtc
8ba211cde0
Added #define _KERNEL
1995-03-28 18:37:27 +00:00
jtc
71ab4ed9dc
KERNEL -> _KERNEL
1995-03-28 18:13:48 +00:00
cgd
fa2133533d
invoke ktrsyscall with (vp, code, argsize, args) as args.
1995-03-26 08:03:29 +00:00
jtc
d57fb977bb
Added -D_KERNEL to CFLAGS alongside each -DKERNEL.
1995-03-23 19:46:18 +00:00
cgd
b8403d582b
don't be so quick to cast macro arguments to unsigned; if the
...
arguments are really off_t's (e.g. to btodb), then you can lose
information. This was the "> 4G file systems don't work" bug; physio
uses btodb, which was broken.
1995-03-18 07:22:43 +00:00
mycroft
2f805fa51b
copy*str() should use size_t.
1995-03-09 12:05:21 +00:00
mycroft
dc3d752c6c
Fix last arg to scdebug_ret().
1995-03-09 08:59:45 +00:00
mycroft
add762f71c
Panic if the emulation type is invalid.
1995-03-08 06:49:22 +00:00
mycroft
e518635e13
Fix some types:
...
* code, args, and rval should use register_t.
* argsize should be a size_t.
Remove old notimp() kluge; replaced by a better mechanism.
Add some of the SunOS compat hooks.
1995-03-08 06:39:06 +00:00
mycroft
6c30f4a892
Remove file systems.
1995-03-05 23:04:25 +00:00
mycroft
3af978980c
Make the dump code more consistent with i386. Mostly cosmetic.
1995-03-05 22:19:26 +00:00
mycroft
30a80c01af
Make these consisteny with i386. Mostly cosmetic.
1995-03-05 22:06:42 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
mycroft
b39bd2f2d3
Move common code for finishing a buffer into a separate function.
1995-02-23 22:23:40 +00:00
mycroft
ae95dc7533
More disks, tapes, MSDOSFS...
1995-02-23 22:22:07 +00:00
mycroft
f96a1945c5
Remove `nboot' completely.
1995-02-21 09:16:34 +00:00
mycroft
85eb2facec
Use the libsa exec().
1995-02-21 09:06:13 +00:00
mycroft
28983f9e3f
Tweak to make the twiddler look better.
1995-02-21 06:39:01 +00:00
mycroft
e9685fc52f
Don't define netif_debug here.
1995-02-20 00:19:43 +00:00
mycroft
30b00f8878
Slight rearrangement.
1995-02-20 00:15:06 +00:00
mycroft
19a789aae8
Update to the new RCS id convention.
1995-02-20 00:12:09 +00:00
mycroft
6cd040ac12
Don't stall if we get packets back-to-back.
1995-02-19 23:54:18 +00:00
mycroft
388209113e
Don't panic if the battery is dead.
1995-02-19 23:53:19 +00:00
mycroft
2fd9d0abfb
Add unfinished netboot code, and reorganize the Makefile somewhat.
1995-02-19 19:17:01 +00:00
mycroft
d045c68f75
Update for split fu/su functions.
1995-02-08 14:53:33 +00:00
mycroft
b500256b0f
Remove [fs]ui{byte,word}().
1995-02-08 14:52:31 +00:00
mycroft
e732893c41
Remove fu/su functions.
1995-02-08 14:51:08 +00:00
mycroft
44965e0438
Include common m68k version of copy.s.
1995-02-08 14:22:30 +00:00
mycroft
19ff4e7205
Don't include copy.s from here.
1995-02-08 14:20:06 +00:00
mycroft
86dbbad738
Use common m68k version of copy.s.
1995-02-08 14:18:04 +00:00
mycroft
04695541bb
Clean up deleted files.
1995-02-08 14:16:40 +00:00
cgd
2ef4ca1f3d
vn -> vnd renaming, for consistency
1995-01-25 04:48:07 +00:00
hpeyerl
3fc42a912d
NULLFS
1995-01-24 14:01:28 +00:00
hpeyerl
83865999ab
options GATEWAY.
1995-01-23 15:14:33 +00:00
jtc
9540190d45
This file, which will be included by <sys/cdefs.h>, will contain macros
...
such as __warn_references() and __weak_reference() which are actually
machine dependant. This will make it easier for ports that are being
bootstraped with ELF and ECOFF based toolchains.
This change also introduces a new macro, _C_LABEL(x). _C_LABEL expands
its argument, an identifier, to a character string of the identifier
name as it is represented in an object file.
For most ports, _C_LABEL(x) will expand to "_x", for ELF based ports
_C_LABEL(x) will expand to "x".
1995-01-19 01:38:36 +00:00
mycroft
96d96ccc04
Do not allow opening a device which is not `alive'.
1995-01-18 10:02:43 +00:00
mycroft
baf132fa75
Display the correct diagnostic on a coprocessor exception. From Masaru Oki.
1995-01-18 07:37:06 +00:00
mycroft
6f1144b29d
Make sure to unlock when aborting.
1995-01-09 11:16:50 +00:00
mycroft
7af86b7eb7
Copy physlock code from SPARC port, and some minor cleaning.
1995-01-09 09:13:09 +00:00
mycroft
770773f4ad
Add mt.
1995-01-07 22:54:16 +00:00
mycroft
923bbe6e3b
Various diffs from Mike Hibler; necessary for mt driver.
1995-01-07 10:30:10 +00:00
mycroft
81ec9ebcef
Add LKM stuff. Some general cleanup.
1995-01-05 21:06:36 +00:00
hpeyerl
2d28f622d7
Make the LEDS blink like Jason's heart. from <thorpej@cs.orst.edu>
1994-12-30 07:22:21 +00:00
mycroft
b5e0ae3fc4
microtime() returns void.
1994-12-29 03:48:38 +00:00
cgd
e5049f4d59
make the definition of _JBLEN mach. dep. header-dependent.
1994-12-20 10:36:27 +00:00
hpeyerl
cff8a14e10
so machines with only an rd or sd will compile. from Thorpej. PR#610.
1994-12-20 06:53:45 +00:00
mycroft
9614f9bb82
Add mt and pollc stuff.
1994-12-16 04:14:13 +00:00
mycroft
2012971fa4
Fix typo in previous.
1994-12-16 04:00:21 +00:00
mycroft
a7393f95f3
Remove fp arg to d_open.
1994-12-14 18:52:32 +00:00
mycroft
b0e55a5994
Add dummy itestart(), and use ttrstrt() rather than a local version of the same.
1994-12-13 14:20:33 +00:00
christos
40abc70ce2
changed open prototype
1994-11-14 05:55:23 +00:00
mycroft
38d3366f0f
Fix type of `code' arg to sendsig().
1994-11-08 04:22:39 +00:00
mycroft
f875a9efe6
Allocate pv_pages differently.
1994-11-08 01:17:19 +00:00
cgd
d4510670f1
fix for bug 559, as reported by Jason Thorpe. (fix by me)
1994-11-06 21:49:08 +00:00
cgd
132b41434c
new RCS ID format.
1994-10-26 07:22:45 +00:00
mycroft
0ec2e0b85c
Attempt to deal with trace exceptions from single-stepping a trap instruction.
1994-10-25 15:33:40 +00:00
mycroft
79e18619fb
Add a cpu_cleanup() function, to support some experimental code.
1994-10-20 22:43:23 +00:00
mycroft
d2b4ef0319
Don't try to load p_priority from the run queue head.
1994-10-20 20:47:53 +00:00
cgd
9da8a598cd
update for new syscall args description mechanism
1994-10-20 04:38:33 +00:00
mycroft
b7c9fb174f
Clean up deleted files.
1994-10-20 04:29:36 +00:00
cgd
49c34d3337
move arch dependence to archs. clean up a bit. deal with weird MAXPARTITONS.
1994-10-14 18:26:22 +00:00
hpeyerl
3595156bad
begone 'softcar' begone!
...
hello 'ppp'.
goodbye 'ccd'.
1994-10-04 17:32:30 +00:00
mycroft
53c4d8a7e6
Fix byte order problem in multicast filter calculation.
1994-09-29 21:24:12 +00:00
mycroft
9b9fa4f2a0
Fix misguided attempt to reorganize bootdev, and fix a few
...
other miscellaneous bugs and nits.
1994-09-19 00:23:36 +00:00
mycroft
274730a866
Make genassym depend on genassym.c
1994-09-18 00:57:38 +00:00
mycroft
775fc8b821
Add LED frobnication code, from 4.4-Lite.
1994-09-18 00:43:19 +00:00
mycroft
b073160a6c
Fix typo.
1994-09-16 21:17:21 +00:00
mycroft
c3e6d1057b
Add tun.
1994-09-16 21:14:58 +00:00
jtc
23ece5babc
asm -> __asm (PR #463 ).
1994-09-16 02:39:36 +00:00
mycroft
c7d5bf7b64
Nuke struct ste, struct ste40, struct pte, and HP_PAGE_SIZE. Use my
...
pv_entry allocator. Change pa_index() to pmap_page_index() for consistency
with other ports.
1994-09-09 23:52:49 +00:00
mycroft
c7b57907f0
Do a hack similar to the AST optimization for SIRs on syscall exit.
1994-09-09 23:40:15 +00:00
mycroft
f66f685ad2
Very simple change to avoid a complete register save/restore pair when handling
...
ASTs after a syscall.
1994-09-09 03:58:38 +00:00
mycroft
675c4aae2b
Remove some functions which are in libkern.
1994-09-09 03:11:31 +00:00
mycroft
e0fa548a12
Optimize the run queue frobnication, and add some more DIAGNOSTIC checks.
1994-09-09 02:56:54 +00:00
mycroft
d20de15399
Add USPACE.
1994-08-24 19:32:36 +00:00
brezak
dd945bf3c1
Don't echo here
1994-08-22 21:41:23 +00:00
brezak
901e645db3
Do echo here just like libsa::gets()
1994-08-22 21:41:07 +00:00
mycroft
1785232aa9
vn --> vnd
1994-08-17 20:16:16 +00:00
mycroft
c809e30fcb
No COMPAT_HPUX at the moment.
1994-08-17 20:16:07 +00:00
mycroft
8f2482ff3d
Fix `make depend' error.
1994-08-15 06:42:04 +00:00
mycroft
eade2eabf4
Clean up deleted files.
1994-08-05 23:16:10 +00:00
brezak
62a05786ea
Use installboot.sh from 4.4 instead of installboot.c
1994-08-04 19:42:16 +00:00
mycroft
a18c0c0d83
Look for errors in the right place in a transmit descriptor, and count
...
collisions.
1994-07-25 22:54:58 +00:00
mycroft
e307d33fdc
Clean up deleted files.
1994-07-24 02:10:46 +00:00
mycroft
2b3a0d92f6
MDP_AST is deprecated.
1994-07-19 21:43:57 +00:00
mycroft
993ebf5d8d
Clean up deleted files.
1994-07-18 07:15:50 +00:00
mycroft
07a265f1c0
Add some missing options to GENERIC, and rename.
1994-07-18 07:15:45 +00:00
cgd
511df844bb
add COMPAT_44
1994-07-18 07:07:17 +00:00
mycroft
3451593ece
Dorothy, I don't think we're in Utah any more...
1994-07-18 06:27:12 +00:00
mycroft
cf21bbfd5e
Make grf truly optional.
1994-07-16 13:15:03 +00:00
cgd
b4dc71d3d9
on COMPAT_44, allow execution of 4.4BSD binaries
1994-07-16 06:43:00 +00:00
cgd
930318d5aa
get device.h from the right place
1994-07-16 06:24:46 +00:00
mycroft
e88e13f3bb
Fix a bogon relating to >16-bit addresses that I introduced. Fix up BPF
...
support for received packets.
1994-07-15 21:20:48 +00:00
mycroft
db0e00db86
Clean up a bit.
1994-07-10 17:53:12 +00:00
mycroft
60b6c8c0fe
This #endif got truncated...
1994-07-07 01:31:00 +00:00
mycroft
f810838a9c
Speed this up a bit, do multiple transmit buffers, etc.
1994-07-06 01:36:23 +00:00
mycroft
923bab6d40
HPFPLIB --> FPSP
1994-07-05 18:16:43 +00:00
mycroft
53dacdcce5
Add FPSP magic.
1994-07-05 17:11:21 +00:00
mycroft
fc6b5fa682
Redo the interface to FPSP, using the supplied glue code.
1994-07-05 17:08:51 +00:00
mycroft
1d45aaf9e2
Fix a compiation problem.
1994-07-05 17:08:16 +00:00
mycroft
0535e409f8
Clean up deleted files.
1994-07-03 11:44:17 +00:00
mycroft
15814de648
Switch to Motorola emulator.
1994-07-03 11:41:33 +00:00
mycroft
1c1622ca22
Clean up deleted files.
1994-07-03 11:40:39 +00:00