Commit Graph

19232 Commits

Author SHA1 Message Date
phil 3f09e4a7e4 Sync with gcc2netbsd. (and do the right thing.) 1996-04-11 21:22:42 +00:00
thorpej e17cddf913 If the power device is configured, don't forget to compile the driver.
Also, add some whitespace for readability.
1996-04-11 21:05:42 +00:00
thorpej 41a08fd254 Include fdc.h, not fd.h, due to change in files.sparc. 1996-04-11 19:20:03 +00:00
christos 2429048059 add rawip, ticlts, ticots, and ticotsord 1996-04-11 12:59:45 +00:00
christos 5fda4b10a2 - small ioctl naming changes.
- pass ioctl fd explicitly.
1996-04-11 12:54:40 +00:00
christos 3b309224fd - Pass ioctl file descriptor explicitly.
- some 'T' ioctl's are for streams, call the stream function in the default case
1996-04-11 12:53:48 +00:00
christos 4a0b33e910 Handle different address families, and in particular AF_UNIX. 1996-04-11 12:52:41 +00:00
christos 8edeaa1f71 Add accept message 1996-04-11 12:52:03 +00:00
christos d37bbda397 - keep the address family in the global state, now that we are using it.
- add netaddr_un
1996-04-11 12:50:31 +00:00
christos 0a8a2051dc - Make unix domain sockets work.
- Implement GETSOCKNAME and GETMYNAME
- Implement getmsg(ACCEPT) [incomplete]
- Implement LISTEN [incomplete]

There are too many changes in the code, this is why the incomplete checkpoint.
1996-04-11 12:49:13 +00:00
christos 8294057bdb Svr4 does not have unix domain sockets; it emulates them with mode 0 named
pipes. Emulate that behavior, by telling svr4 we've found mode 0 named pipe
when we find a unix domain socket. Also record the name and device,inode
pair of sockets found.
1996-04-11 12:46:41 +00:00
christos dcf6c8ee56 New files to provide a device,inode -> pathname mapping for unix domain
sockets. This is needed for putmsg(2)
1996-04-11 12:43:29 +00:00
christos 260951021b Use uprintf instead of printf for debugging. Lot's of printing causes panics
on the sparcs, and even if that was not the case, you end up losing text.
1996-04-11 12:41:25 +00:00
mrg 2a0a8867ae fix long-time bug in fdesc -- /dev/tty was a named pipe rather than a
mirror image of the real /dev/tty, a char dev.  make it a char dev.
1996-04-11 11:24:29 +00:00
mycroft c8ab43244b Actually keep track of the naughty PSL bits.
Use VIF, rather than IF, by default, to be compatible with dosemu.  XXXX
1996-04-11 10:07:17 +00:00
mycroft 48643c6605 Export [gs]et_vflags(), and always use them when saving/restoring registers
in VM86 mode.
Allow changing of *all* PSL bits in VM86 mode; some applications don't work
right otherwise, and all the nasty bits are virtualized anyway.
Make sure PSL_VIF, PSL_VIP, and PSL_VM don't show up in the user's view of
the PSL.
1996-04-11 07:47:33 +00:00
mycroft b61f5e52cd Set the flag mask earlier.
Use SS_ONSTACK, not SA_ONSTACK.
1996-04-11 05:11:03 +00:00
mycroft ff8268cfea Fix a couple of 16-bit extension errors. 1996-04-11 03:21:42 +00:00
cgd 789a455ab4 if no DDB, define Debugger() to be a panic. 1996-04-10 23:01:13 +00:00
gwr 32d12d3be4 Make the ring size configurable in the tty driver.
Make the pseudo-interrupt functions return void.
Call the tty layer at spltty (to be safe).
1996-04-10 21:44:35 +00:00
thorpej 5eb08a6790 Get the current working directory from "/bin/pwd" rather than "pwd".
Changes to the shell make the behavior of "make obj" inconsistent
with previous behavior, depending on the login shell used by the user.
See PR #2200 for details.  PR remains open while further analysis is
done.  This at least restores the previous semantics for us csh(1) users.
1996-04-10 21:08:05 +00:00
thorpej f502eb5e5d Remove extra "the", from Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>,
PR #2318.
1996-04-10 20:57:19 +00:00
pk c0919485d4 Move some of the SCSI target juggling to autoconf's fake_bootpath() routine.
Fix incorrect interpretation of bootpath's val[2] as a SCSI unit.
1996-04-10 20:48:35 +00:00
pk e4394459a1 `bootdv' is gone. Instead, set the device pointer in the `struct bootpath'
that is passed in the attach arguments.
1996-04-10 20:46:05 +00:00
pk c28fcc3539 Use extra value in `struct bootpath' to describe the PROM's bootpath better.
Use the bootpath[] array in setroot() to determine partition info in case
of boot devices of type DV_DISK. Also, precook more SCSI device info in
fake_bootpath() to simplify dk_establish().
1996-04-10 20:40:14 +00:00
pk 5f2d466997 Make room for another `value' in struct bootpath. Drop the global `bootdv'
in favour of storing the device pointer in the bootpath[] element corresponding
to the boot device. This also allows the opportunity to get to "intermediate"
devices (e.g. busses) should the need for this ever arise.
1996-04-10 20:33:38 +00:00
mycroft 0609135a66 Add explicit return types. 1996-04-10 19:03:46 +00:00
gwr f6762bf5cf Retry calls to the PROM strategy function. Fixes PR# 2145
Call prom_iopen only on the first disk_open call, otherwise
only the first file open attempt ever works. Fixes PR# 1726
Both from der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
1996-04-10 18:31:14 +00:00
jonathan 368824e74c Fixes for -Wall -Wmissing-prototypes:
Add prototypes to (most of) src/sys/arch/pmax/pmax. (The  un-protytyped
   parts still have pending merges with the Pica port.)
   Fix splx() glitches in pmax/clock.c.
   Delete old cpu/fpu identification from pmax/autoconf.c, use r4400/r4600/idt
   aware code from Pica port, now in mips/mips/mips_machdep.c.
   Delete unused multi-CPU autoconfiguration code; NetBSD/pmax does not
   support decsystem 5800s anyway.
1996-04-10 17:38:18 +00:00
jonathan 66e92bbfaf fixes for -Wall -Wmissing-prototypes:
prototype the function-pointer member of the pmax struct pdma.
1996-04-10 17:38:04 +00:00
jonathan 39917746c1 fixes for -Wall -Wmissing-prototypes:
Update the pmax SCSI drivers (rz and tz) to  use <machine/conf.h>.
    Fix the driver entry points to have the correct signatures -- add
    "ioflag" args to read() and write(), add "struct proc *p" arg to
     open and close.
    Stop using __BDEVSW_DUMP_OLD_TYPE, and update the rzdump and tzdump
    entry points to have the correct, MI signatures.

    NB: this is just syntactic sugar: both the caller and the dump entry
    points ignore the additional args, and do exactly what they did before.
    This must be fixed before using dump entry points in non-pmax drivers
    (e.g., the MI scsi code).
1996-04-10 16:33:44 +00:00
jonathan beaeb261bf fixes for -Wall -Wmissing-prototypes:
add prototyped declarations for the callbacks which add old-style
(4.4bsd/pmax conf.old) SCSI controllers, and which configure SCSI slaves
on such controllers.

rewriting the SII driver to work with the MI scsi would be a better option,
if time were available, and the MI scsi code supported SCSI controllers with
an 8k upper bound on transfers.
1996-04-10 16:27:38 +00:00
jonathan 68a943bdf6 Create pmax-specific <machine/conf.h>, with prototyped declarations
for the cdevsw and bdevsw entries into pmax device drivers.
1996-04-10 16:17:23 +00:00
mycroft a86feda616 Remove broken hack that attempted to do the same as the previous. 1996-04-10 05:47:19 +00:00
mycroft 198877f9dc Fix COMPILE.s so the output file is named correctly. 1996-04-10 05:44:49 +00:00
cgd cd9ef2be9c make the EISA code look a bit more like the PCI code, in the way
the bus is configured, interrupts are handled, etc.  define
eisa_chipset_tag_t and eisa_intr_handle_t types, and the following
functions:
        eisa_attach_hook()
        eisa_maxslots()
        eisa_intr_map()
        eisa_intr_string()
        eisa_intr_establish()
        eisa_intr_disestablish()
to do the right things for the i386.
1996-04-09 23:00:25 +00:00
cgd 4444d2866e there's now a eisa_machdep.c which must be included when including
EISA support.
1996-04-09 22:59:03 +00:00
cgd 3ccd8b454e it's now safe to include both isavar.h and eisavar.h. Also, pass
an appropriate cookie (NULL) to the EISA attach code for use with the
EISA functions.
1996-04-09 22:58:29 +00:00
cgd 4889b6bcc2 use the new interfaces for interrupt attachment, etc. 1996-04-09 22:47:00 +00:00
cgd d645bb042d make the EISA code look a bit more like the PCI code, in the way
the bus is configured, interrupts are handled, etc.  machine-dependent
header (machine/eisa/eisa_machdep.h) defines eisa_chipset_tag_t and
eisa_intr_handle_t types, and the following functions:
	eisa_attach_hook()
	eisa_maxslots()
	eisa_intr_map()
	eisa_intr_string()
	eisa_intr_establish()
	eisa_intr_disestablish()
Don't define the interrupt establish/disestablish functions directly
in terms of the ISA functions any more (on some wacked out systems,
there can be a difference).
1996-04-09 22:46:11 +00:00
jonathan 8a1933076a Fixes for -Wall -Wmissing-prototypes:
Replace impliclty-sized types (u_long, u_short) used in
	declarations of byteorder functions witho explicitly sized types
	(u_int32_t, u_int16_t).

Avoids problems with using ntohl(foo) as (eg) an argument to printf().
1996-04-09 20:56:45 +00:00
cgd c40712b45d fix extra spaces at ends of lines, etc. (all spacing nits.) 1996-04-09 20:55:22 +00:00
jonathan 08a45c0a18 Fixes for -Wall -Wmissing-prototypes:
Do not define __BDEVSW_DUMP_OLD_TYPE, as it breaks prototyping
	of device dump functions, and should be port-dependent in any case.
The pmax 4.4bsd/pmax-derived drivers are being fixed, and the pica port
uses the MI scsi drivers already.
1996-04-09 20:54:08 +00:00
jonathan 57fd0e266b Fixes for -Wall -Wmissing-prototypes:
include <sys/systm.h> to get a prototyped declaration of printf().
	include <machine/autoconf.h> for port-specific typedefs.
	Remove unused variables.
1996-04-09 20:50:06 +00:00
cgd 8b65ecffc3 time seconds/usec sent over the net are signed. 1996-04-09 20:40:32 +00:00
cgd f85f062d77 spaces vs. tabs 1996-04-09 20:07:16 +00:00
ragge 62b2afac2d Removed a function that were #ifdef vax'ed. 1996-04-09 17:21:56 +00:00
phil b3a1b0b9b2 Add except to the pc532 make. 1996-04-09 16:54:18 +00:00
phil 07df601bbf Add missing ~. (PR 2311) 1996-04-09 16:33:32 +00:00
pk 4c26e95dde Initialize relevant elements of the `romaux' structure in romprop(). 1996-04-09 15:24:00 +00:00