jtk
1541178d9b
update the data segment mapping clamps to handle more screwy BIOS requests
1996-09-13 22:58:27 +00:00
jtk
bfd321ca95
don't shift size fields; they're not descriptors
1996-09-13 03:10:56 +00:00
jtk
662c47ecd3
use ls, not ${LS}; remove now-unneeded Makefile.inc
1996-09-13 02:24:30 +00:00
thorpej
fcde57a426
For ioctl commands which may change the device's state, ensure that
...
the caller has the device open for writing.
1996-09-13 00:35:59 +00:00
jtk
04f1e23fe1
BIOS trampoline is a static beast; generate it in the sources like
...
syscalls.h & friends, and include it when needed from the source directory.
1996-09-13 00:02:36 +00:00
mrg
df4a844f44
forward decl. struct mbuf (for now).
1996-09-12 23:11:40 +00:00
explorer
f5a52c4260
Move an #ifdef _KERNEL up above all the packet filter stuff. This
...
could very well break the packet filter stuff, but it will make things
like rcp.c compile, and rcp.c should not need to include sys/mbuf.h
to do so...
1996-09-12 22:56:03 +00:00
scottr
e09160652b
Sync with m68k/cpu.h changes. Also, test fpu_type instead of mmutype
...
when handling fp exceptions.
1996-09-12 21:25:31 +00:00
scottr
d3beac22f0
Sync with m68k/cpu.h changes
1996-09-12 21:25:29 +00:00
scottr
027b51f1f9
Define spladb() (conservatively, at least for now).
1996-09-12 20:39:19 +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
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
scottr
d407764c72
Add uk, remove ch device
1996-09-12 05:34:59 +00:00
scottr
7a6fae71e8
Add ss, uk SCSI devices
1996-09-12 05:33:41 +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
scottr
a453e56ffd
This is the development/debug machine
1996-09-12 04:50:43 +00:00
scottr
7b33c93009
Update to current reality.
1996-09-12 04:49:52 +00:00
thorpej
22adc20819
Add an FPU_UNKNOWN constant; just a placeholder for any unknown FPU.
1996-09-12 02:52:34 +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
9aeee9fb17
Remove a couple of opcodes that are already (and more appropriately)
...
defined in scsi_changer.h
1996-09-12 01:57:17 +00:00
mrg
c98a14ad90
update these for poll(2) changes.
1996-09-12 01:35:34 +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
jonathan
2bc8c4e5c2
Merge in 4.4BSD-Lite -> 4.4BSD-Lite2 changes. (untested).
...
The Lite2 changes include:
* Remove the last vestiges of high-bit-set-means-delay for output chars.
* Handle the 2100/3100 having partial modem control on line 2 only,
whereas the 5000/200 has modem control signals on lines 2 and 3.
* Add RTS/CTS support for lines 2 and 3 on a 5000/200.
* Add more s = spltty(); splx(s); where needed but not present.
1996-09-11 06:41:19 +00:00
explorer
5d76f7cbac
remove unneeded placeholder
1996-09-11 05:24:25 +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
a437d4f6cb
Use <m68k/cpu.h>.
1996-09-11 00:23:47 +00:00
thorpej
e469c7beca
Use <m68k/cpu.h>.
1996-09-11 00:11:42 +00:00
thorpej
521a717f6d
Factor out common Motorola 68k CPU definitions from the m68k port
...
cpu.h header files.
Some more work could be done here, but it's a good start.
1996-09-11 00:08:52 +00:00
mycroft
da2cd7eb82
If we're in SYN-SENT or SYN-RECEIVED state, don't reset the keepalive
...
timer until we transition to ESTABLISHED state. Suggested by TCP/IP
vol 3.
1996-09-10 23:26:05 +00:00
thorpej
7734e8980b
Add COMPAT_M68K4K.
1996-09-10 22:48:05 +00:00
thorpej
9ff195106c
Document COMPAT_M68K4K, but leave it disabled by default.
1996-09-10 22:45:17 +00:00
thorpej
1710b024c0
Document COMPAT_M68K4K, but leave it disabled by default.
1996-09-10 22:26:50 +00:00
thorpej
73a5b90800
Pull in the COMPAT_M68K4K stuff when appropriate.
1996-09-10 22:07:10 +00:00
thorpej
0d3a57ea3f
Add COMPAT_M68K4K to the exec switch.
1996-09-10 22:05:03 +00:00
thorpej
c9bf6a7e5a
Add exec glue for `COMPAT_M68K4K'; just map the executable the way
...
a MID_M68K4K expects to be mapped. Allows any m68k port with
NBPG == 4096 to run NetBSD/hp300 executables, and will allow hp300s
to run legacy executables when that port's default format is eventually
changed to match the other m68k ports.
1996-09-10 22:01:20 +00:00
cgd
0b77b04b6e
set a0 to be the initial sp, and set pv to be program entry point.
1996-09-10 19:13:42 +00:00
jtk
2b5e1cd158
clean up missing prototype, extra variable
1996-09-10 11:22:33 +00:00
leo
0f821f9aa6
Conform to the hp300 style of trap.c as suggested by Jason.
1996-09-10 09:05:40 +00:00
leo
2340b495ce
- Add suline() for the new trap.c (Shouldn't this move to m68k/copy.s?)
...
- Fix some bugs in the interrupt handlers introduced by the new mapping
of the st io-area.
1996-09-10 08:58:42 +00:00
leo
7a87b91e9b
Add suline/susword prototypes for new trap.c
1996-09-10 08:45:16 +00:00
jonathan
be23611556
Apply diff from the 1.2 release branch, so that ugly IOASIC debugging
...
is disabled by default:
>revision 1.9.4.2
>date: 1996/09/09 20:19:11; author: thorpej; state: Exp; lines: +2 -18
>Disable IOASIC_DEBUG so that autoconfiguration looks normal, by request
>of Jonathan Stone
1996-09-09 21:32:20 +00:00
mycroft
b3ffba62a6
Move strip(1) flags into a separate variable, so that $STRIP can
...
be passed to subordinate make(1)s. Remove $TOUCH. Add HOSTED_CC,
HOSTED_CPPFLAGS, and HOSTED_CFLAGS, and use them when depending genassym.
1996-09-09 21:06:55 +00:00
mycroft
dbacbd3636
Use machine/asm.h. Garbage collect.
1996-09-09 18:42:51 +00:00
thorpej
0d89093b48
This file is obsolete; the ahb driver now lives in ahb.c
1996-09-09 18:32:42 +00:00
cgd
7ba205c37e
Sync the 53c94 SCSI driver with the sparc version. Update the DMA code to
...
match the interfaces required by the driver.
1996-09-09 18:10:35 +00:00
mycroft
379839a0df
Make the build process more sane.
1996-09-09 18:07:40 +00:00
mycroft
79e03b2967
Pass $STRIP to the sub-make.
1996-09-09 18:03:46 +00:00
cgd
adeb6b4058
replace sequences of 8 spaces with tabs (only one instance). kill
...
unnecessary newlines after return statements but before function
close-braces.
1996-09-09 18:01:30 +00:00
mycroft
825aca4d5d
Oops; include paths are relative to $S.
1996-09-09 17:18:47 +00:00
mycroft
9bb1acd303
Rework the token bucket filter to use a list of packets rather than a static
...
array. Also, fix several memory leaks. From Bill Fenner.
1996-09-09 17:14:04 +00:00
mycroft
23437fc3d2
Cosmetic changes, some from Bill Fenner.
1996-09-09 17:09:50 +00:00
mycroft
3fbde733bc
Sync with version in ../boot.
1996-09-09 16:55:11 +00:00
cgd
6891e01ba2
add missing underscore to __alpha_, to map interrupt names properly.
...
It worked right before because of happy coincidence.
1996-09-09 16:39:44 +00:00
cgd
2b118fc59b
add entries for rd (cdev + bdev), ss (cdev), and uk (cdev).
1996-09-09 16:38:52 +00:00
mycroft
842eae0878
Add a file for local additions to GENERIC.
1996-09-09 16:37:08 +00:00
mycroft
a693d5fcb0
Sync with GENERIC.
1996-09-09 16:33:20 +00:00
cgd
65538ec48d
add specs for 'rd'
1996-09-09 16:31:36 +00:00
mycroft
02b3e8d73e
Add ss, uk. Minor touchups.
1996-09-09 16:30:47 +00:00
mycroft
97c4dc0c80
Remove old comment about rd, and add to chrtoblk[].
1996-09-09 15:51:34 +00:00
mycroft
62a6cce9ca
Add in_nullhost() and in_hosteq() macros, to hide some protocol
...
details. Also, fix a bug in TCP wrt SYN+URG packets.
1996-09-09 14:51:07 +00:00
jtk
4b9b2da0f5
I meant to depend on apm.h, not Makefile
1996-09-09 11:34:01 +00:00
jtk
ec11419661
fix compilation problems when APM not configured
1996-09-09 11:31:40 +00:00
jonathan
de227b74e6
* Add missing printf("\n") at end of attach routine in cfb, sfb, pm drivers.
1996-09-08 19:28:03 +00:00
oki
9682743e21
delete unused prototype.
1996-09-08 18:46:12 +00:00
mycroft
a32047fa0c
Add cdev_decl(rd), for previous.
1996-09-08 15:59:56 +00:00
jtk
3b509ead1a
whoops, forgot to include flags details in bioscall() comments
1996-09-08 15:51:39 +00:00
mycroft
f5c7d8bcc1
Save 68 bytes of the packet for ICMP, not 64. From Laine Stump, PR 2296.
1996-09-08 15:49:43 +00:00
jtk
1a1feb3827
change APM to use new almost-generalized BIOS trampoline:
...
/*
* void bioscall(int function, struct apmregs *regs):
* call the BIOS interrupt "function" from real mode with
* registers as specified in "regs"
* (for the flags, though, only these flags are passed to the BIOS;
* the remainder come from the flags register at the time of the call:
* (PSL_C|PSL_PF|PSL_AF|PSL_Z|PSL_N|PSL_D|PSL_V)
*
* Fills in *regs with registers as returned by BIOS.
*/
Thanks to Charles Hannum for complaining and inspiring me to hack this
together.
1996-09-08 15:43:37 +00:00
jtk
fda7345c98
re-implement BIOS trampoline as a more general-purpose, reusable trampoline.
...
calling interface (via a grapple in locore.s) is:
/*
* void bioscall(int function, struct apmregs *regs):
* call the BIOS interrupt "function" from real mode with
* registers as specified in "regs"
* (for the flags, though, only these flags are passed to the BIOS;
* the remainder come from the flags register at the time of the call:
* (PSL_C|PSL_PF|PSL_AF|PSL_Z|PSL_N|PSL_D|PSL_V)
*
* Fills in *regs with registers as returned by BIOS.
*/
still some generalization to do (moving this to a better named location,
cleaning up #if tests from NAPM > 0 to something else to allow easy
sharing by other drivers)
Thanks to Charles Hannum for complaining about the previous BIOS grapple
and inspiring me to hack this one together.
1996-09-08 15:36:51 +00:00
mycroft
90cf086c4f
Restructure ns_control() like other protocols.
1996-09-08 14:49:41 +00:00
mycroft
5fda0ab8a3
Make sure the control mbufs are freed in all cases.
...
Return ENOPROTOOPT rather than picking pseudo-random error values.
Restructure *_ctloutput() functions to match other protocols.
1996-09-08 14:48:21 +00:00
mycroft
0804856d01
Make sure the control mbufs are freed in all cases.
...
Return ENOPROTOOPT rather than picking pseudo-random error values.
Restructure *_ctloutput() functions to match other protocols.
iso_ifreq and SIOC*_ISO are no longer needed; use the standard versions.
1996-09-08 14:28:08 +00:00
jonathan
50326ae738
* Call doshutdownhooks() before rebooting.
...
* Split the machine-dependent part of rebooting out into a separate
function, prom_halt(), making boot() a candidate for moving into
mips/mips.
1996-09-08 11:49:49 +00:00
is
3efed5ad51
s/reutrn/return/, although in normally inactive code.
1996-09-08 11:21:11 +00:00
is
569aabbde8
"Never type in what you can equally well cut'n'paste." - (myself)
1996-09-08 07:15:56 +00:00
mycroft
1dce8ddb7f
Add char device for `rd'.
1996-09-08 03:31:39 +00:00
thorpej
ed0c45596a
Add some forward declarations.
1996-09-08 02:09:50 +00:00
thorpej
de5110f41e
Use <m68k/exec.h>.
1996-09-08 01:00:35 +00:00
thorpej
c5e5dec3b7
All of the m68k ports' exec.h's were essentially the same. Merge them.
...
Override the N_PAGSIZ() macro; this one checks the MID of the executable
and returns the appropriate page size.
1996-09-08 00:57:29 +00:00
mycroft
9110bcca3a
Add uk device.
1996-09-08 00:46:57 +00:00
mycroft
9db220fa82
Use cdev_uk_init().
1996-09-08 00:40:08 +00:00
mycroft
1ca30a00cc
Add cdev_uk_init().
1996-09-08 00:38:54 +00:00
mycroft
9e7223f23d
Use cdev_scanner_init() rather than local cdev_ss_init().
1996-09-08 00:11:51 +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
7cbc74f45c
Use INFTIM, not -1.
1996-09-07 21:47:23 +00:00
mycroft
f0ab97d9b1
Define INFTIM, a la Solaris.
1996-09-07 21:44:59 +00:00
mycroft
f14cece0ae
Turn off DEBUG by default now.
1996-09-07 20:26:09 +00:00
thorpej
26ecf6820b
Use the stock ld(1) and the srec program to generate the serial line
...
bootstrap program.
1996-09-07 19:23:03 +00:00
thorpej
a27c9a94f5
Add a public domain S-record generator.
1996-09-07 19:21:32 +00:00
mycroft
d3cf361da8
Oops. [bc]dev_lkm_dummy() doesn't take any arguments.
1996-09-07 18:39:30 +00:00
mycroft
a0ff652bcf
Definitions for poll(2). Prototype it here.
1996-09-07 17:42:49 +00:00
mycroft
826fb76b6f
Regen.
1996-09-07 14:24:17 +00:00
mycroft
1449e67e30
Modify poll(2) prototype.
1996-09-07 14:20:09 +00:00
mycroft
07d2eae876
Regen.
1996-09-07 14:18:04 +00:00
mycroft
cdd2b02b50
Modify poll(2) prototype.
1996-09-07 14:16:42 +00:00
mycroft
c9663d2cad
Regen.
1996-09-07 13:24:34 +00:00
mycroft
17b9974c5a
Implement poll(2).
1996-09-07 13:23:39 +00:00
mycroft
cb488ac22a
Definition of pollfd is no longer needed.
1996-09-07 13:02:43 +00:00
mycroft
f51fa207ba
Regen.
1996-09-07 13:01:41 +00:00
mycroft
4a60463da8
This is no longer needed.
1996-09-07 13:01:29 +00:00
mycroft
264dd4757c
Regen.
1996-09-07 12:56:49 +00:00
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +00:00
mycroft
67417a473a
Use bus.h.
1996-09-07 12:12:18 +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
261a7626ca
Oops. Copy out the right number of command bytes.
1996-09-07 04:59:06 +00:00
mrg
e27343e07d
fix a couple of minor nits after discussions with jason.
1996-09-07 04:55:16 +00:00
mhitch
b7ef581afb
The MAXINE serial console is on scc0 (the only SCC on the MAXINE) instead
...
of scc1. Fix the check of which scc to initialize the console serial line
so that the MAXINE serial console will work.
1996-09-07 01:25:37 +00:00
mhitch
3686def7f7
Add parenthesis to correct a check for current SII state, so that a forced
...
disconnect will be done (it would never have been done with the old code).
1996-09-07 01:19:45 +00:00
thorpej
f6a91a9c52
Regen.
1996-09-06 18:01:37 +00:00
thorpej
ea052e2547
Add the ETI NE3300 Ethernet card to the list of known EISA devices.
...
From Andrew Gillham <gillhaa@ghost.whirlpool.com>.
1996-09-06 18:01:07 +00:00
jonathan
ac5bac38be
* This driver initialized mfb devices to black-on-black. If being used
...
as a console, initalize as white-on-black so console messages are legible.
(Sean Davidson reports that rcons still messes up the display, perhaps
due to using the wrong pixel depth).
1996-09-06 07:01:06 +00:00
mrg
ae47956db0
add packet filter interface code. see pfil(9) for more details. you
...
need the PACKET_FILTER option to enable this code. currently, ipfilter
version 3.1.1-beta has been converted to use this new interface.
1996-09-06 05:07:43 +00:00
mycroft
94bfaac456
Wrap the definitions of CONADDR and CONUNIT in #ifndef.
1996-09-06 05:06:01 +00:00
cgd
e6e14683fe
note that the AlphaStation 500 works (with the same caveats as the
...
AlphaStation 600).
1996-09-06 04:01:37 +00:00
perry
94a217e163
Commit PR 2671, which adds an "IPNOPRIVPORTS" config option that turns
...
off the code that normally only allows root to bind low TCP
ports. Useful on firewalls and such.
1996-09-05 18:10:03 +00:00
mycroft
82f0b829e8
compoll() -> comsoft()
1996-09-05 16:42:32 +00:00
mycroft
fc3def4096
Remove duplicate declarations of LKM functions and macros.
1996-09-05 15:46:22 +00:00
mycroft
8427290044
wtpoll() -> wtsoft()
1996-09-05 15:37:18 +00:00
mycroft
110ee78a6f
Remove cyselect().
1996-09-05 15:35:09 +00:00
mycroft
59f71c45fc
Clean up sys_select() slightly.
1996-09-05 15:32:52 +00:00
mycroft
af113f915d
Use SET(), CLR(), ISSET().
1996-09-05 15:31:40 +00:00
thorpej
fa0e4a3082
Make the SPARC kernel compile again after recent tty cdevsw changes.
1996-09-05 09:32:47 +00:00
thorpej
2c02b8ec56
Remove some unused variables.
1996-09-05 09:26:14 +00:00
thorpej
d1384a9b2a
Don't include the FDDI drivers in the install kernels. It's highly
...
unlikely that these will be needed in an install situation, and
we need the space.
1996-09-04 07:35:07 +00:00
thorpej
f60341a382
Store the SCSI version in the scsi_link, and set the LUN in the CDB
...
if the version is <= SCSI-2. This should help some older SCSI
devices that previously needed the "NOLUNS" quirk. While this is
not strictly necessary on SCSI-2 devices, the spec allows it,
so we set it for SCSI-2 devices "just in case". See section 7.2.2 of
Draft X3T9.2 Rev 10L for details.
1996-09-03 18:20:31 +00:00
mycroft
e9e01a4d00
Regen.
1996-09-03 03:19:46 +00:00
mycroft
5de9f548a2
Give every emulation its own Makefile for the syscall table.
1996-09-03 03:18:04 +00:00
mycroft
a8fd25767d
Define execv() and execve() consistently across emulations.
...
Do path name translation.
1996-09-03 03:12:17 +00:00
mycroft
65605b0484
Fix bogus offset calculation in ibcs2_sys_read(), per PR 1804.
1996-09-03 02:44:14 +00:00
mycroft
086bf59214
Remove gratuitous insn.
1996-09-03 02:07:34 +00:00
mycroft
aeda55543b
Splice in Ignatios' bus error detection code.
1996-09-03 02:07:02 +00:00
mhitch
704caddf5f
Fix several errors when setting a color map entry for the maxine display.
...
1. Start at the specified entry instead of entry 0.
2. Use the blue value instead of the green when setting the blue color entry.
3. Don't use the starting index again for storing the saved entry - the cmap
pointer was previously initialized using the starting index. This fixes
a hard hang on the maxine when console output is done after calls to
set the color map (usually by the X server).
1996-09-02 17:35:52 +00:00
is
905db38340
Add IP multicast support as per RFC 1122 section 3.3.7 to ARCnet.
...
"The mapping of IP Class D addresses to local addresses is
currently specified for the following types of networks:
[...]
o Any network that supports broadcast but not multicast,
addressing: all IP Class D addresses map to the local
broadcast address."
1996-09-02 17:28:22 +00:00
mycroft
42f3427158
+cs8 -istrip -parenb
1996-09-02 16:27:52 +00:00
mycroft
0a59726320
Fix obvious typo.
1996-09-02 12:42:11 +00:00
mycroft
b3eac79b64
tty stop functions really should return void, not int, and certainly not both.
1996-09-02 06:43:16 +00:00
mycroft
125a8c5ce5
Add a set of generic file system operations that most file systems use.
...
Also, fix some time stamp bogosities.
1996-09-01 23:57:15 +00:00