Commit Graph

1774 Commits

Author SHA1 Message Date
tsutsui 3aa8405cb9 Regen from diodevs rev 1.7:
> Change device ID for 98624A HP-IB from 0x80 to 0x01.
> nhpib.c in Lite2 used 0x01 and my 98624 also has an ID 0x01.
2003-11-23 01:59:25 +00:00
tsutsui ff8bdea2e8 Change device ID for 98624A HP-IB from 0x80 to 0x01.
nhpib.c in Lite2 used 0x01 and my 98624 also has an ID 0x01.
2003-11-23 01:57:35 +00:00
tsutsui 919cc25d24 Add an entry of "com0 at dio0 scode 9" so that /dev/ttyC0 and
compat symlink (/dev/tty0) are always reserved for DCA serial.
2003-11-22 17:24:29 +00:00
tsutsui b6c031f59c TAB/space cleanup. 2003-11-17 14:37:59 +00:00
tsutsui b2fe3a3641 - define LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET
- set WARNS?=1
2003-11-14 16:53:37 +00:00
tsutsui 212f884f43 Misc cleanup:
- KNF
- WARNSfy
- remove __P()
- remove register declarations
- const'ify some variables
- make some local functions/variables static
- bcopy -> memcpy
- bcmp -> memcmp
- bzero -> memset
- space/TAB fix
etc.
2003-11-14 16:52:40 +00:00
tsutsui 306f405de0 Use "" rather than '\0' for null string. 2003-11-14 13:08:45 +00:00
tsutsui 6a20c93bb1 Revert part of previous NULL -> '\0' changes, where actually NULL is required. 2003-11-14 11:39:49 +00:00
tsutsui 302df7965a Backout part of rev 1.4 which caused uninitialized pointer dereference.
(How does it works!?)
2003-11-13 15:53:31 +00:00
tsutsui d859f28a2d Use 32bit daddr_t for now so that uboot.lif works again.
XXX The real fix is adding prototype declarations for all functions.
2003-11-13 15:50:46 +00:00
tsutsui 9b10e90d9a Don't use htobe32() for int16_t values. 2003-11-13 14:07:01 +00:00
tsutsui a0795dd18e Use int16_t and int32_t rather than short and int. 2003-11-13 14:06:22 +00:00
tsutsui 81d609b1f5 Remove obsolete comments about curproc. 2003-11-08 12:17:25 +00:00
tsutsui dc9a6c03b4 Adapt to replacement of apcireg.h and dcareg.h. 2003-11-08 12:02:33 +00:00
tsutsui f009006333 Remove obsolete files by MI com(4) driver support. 2003-11-08 11:22:11 +00:00
tsutsui 30f361a050 Move apcireg.h and dcareg.h to stand/common since they are no longer used
by kernel.
2003-11-08 11:19:30 +00:00
tsutsui 63b14eb5b6 Switch DCA and APCI serial devices to use MI com(4) driver.
DCA is tested on HP362 and HP382 with serial console,
but APCI on HP4xx is not tested yet.
2003-11-08 11:18:33 +00:00
dsl 2ffbd2ab99 Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS.
Avoid unpredictable branch in i386 locore.S
(pad fields left in struct proc to avoid kernel bump)
2003-11-04 10:33:15 +00:00
cl afee7aa4d7 Extend the #ifdef M68040 so that the `sig' variable declaration is moved
in as well, as it's otherwise not used. (from atari/atari/trap.c and
x68k/x68k/trap.c)
2003-11-02 16:49:38 +00:00
cl ef56cc40ab Reduce code duplication by adding mi_userret() in sys/userret.h
containing signal posting, kernel-exit handling and sa_upcall processing.

XXX the pc532, sparc, sparc64 and vax ports should have their
XXX userret() code rearranged to use this.
2003-10-31 16:44:34 +00:00
tsutsui 2f551b5f25 NULL -> '\0' 2003-10-28 17:54:35 +00:00
tsutsui 93e8757186 Replace (a bunch of) NULL with '\0'. (we should define NUL?) 2003-10-26 16:15:55 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
jdolecek 694c204404 add major for 'ses' for archs which have the other scsi devices 2003-10-24 08:09:53 +00:00
jdolecek ef5bb330f5 reassing majors for crypto and pf to use the newly defined MI major
range
2003-10-10 22:42:39 +00:00
jdolecek 4e915c9ccd update the comment - the space for machine-dependant majors
is reduced to 0-143
follows discussion on tech-kern
2003-10-10 21:21:25 +00:00
thorpej 68723a995b * Shuffle some data structures so, and add a flags word to ksiginfo_t.
Right now the only flag is used to indicate if a ksiginfo_t is a
  result of a trap.  Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap.  Expands to 0 if the ksiginfo_t was
  not the result of a trap.  This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
  Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
  the case of non-trap-generated signals that have a > 0 si_code.

This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.

As discussed on tech-kern.  Reviewed and OK's by Christos.
2003-10-08 00:28:40 +00:00
jdolecek e6286b949a Add some framework for MI assignment of device majors - add sys/dev/majors
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.

Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.

Follows recent discussion on tech-kern@
2003-10-05 08:04:24 +00:00
simonb 106fc7cad0 White-space nit. 2003-10-02 13:53:49 +00:00
simonb b73d5ee5b9 Use common m68k struct trapframe instead of rolling our own. 2003-10-02 13:53:08 +00:00
simonb 8d464a511c Don't depend in libc, et al. 2003-10-02 13:52:07 +00:00
cl 0dcee00de1 add register storage class for gcc3 2003-09-28 23:21:06 +00:00
cl 5701ee6c8e catch up with const ksiginfo_t and const sigset_t 2003-09-28 21:12:26 +00:00
cl 3f16119f55 Cast through (void *) to appease gcc3. 2003-09-27 20:01:58 +00:00
christos cfba45c856 constify sendsig/trapsignal 2003-09-25 22:00:02 +00:00
cl 6821f967f5 SA_SIGINFO support for m68k (compat hpux) 2003-09-22 14:35:58 +00:00
cl 4169237230 SA_SIGINFO support for m68k (port specific changes) 2003-09-22 14:26:57 +00:00
cl a4186d3dd8 add COMPAT_15/COMPAT_16 2003-09-22 14:11:15 +00:00
cl 3c10927ebe add MD part of SA/pthread pagefault handling on all m68k ports 2003-09-17 23:17:39 +00:00
itojun fc918f8713 add rnd(4) device to installation media.
necessary for many purposes, including password seeding, tcp sequence number,
and more.  see tech-security
2003-09-06 03:25:23 +00:00
itojun 4440262659 create /dev/crypto 2003-08-22 05:06:22 +00:00
he 1c6c843936 Adapt to const-ification of first arg of open function in fs_ops. 2003-08-21 23:28:27 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
tsutsui 42bb8b65cc Add majors for MI SCSI devices (cd, ch, ss, and uk). 2003-08-01 01:52:51 +00:00
tsutsui 7751dc9174 Reserve some major numbers for wscons, as per comments in hp300/conf.c
(which is in Attic) rev 1.47.
2003-08-01 01:43:18 +00:00
tsutsui 16cf56440e Move dev/scsireg.h into stand/common since it is no longer used by kernel. 2003-08-01 01:25:44 +00:00
tsutsui 0da9bed83e Switch hp300 to MI SCSI with MI mb89352 SPC SCSI driver (at last),
and remove old hp300 MD oscsi support derived from 4.4BSD-Lite2.
2003-08-01 01:18:39 +00:00
tsutsui 7c9baaa885 Add "oddbyte" bus_space(9) access ops for DIO devices which have
odd byte address space.
2003-08-01 00:29:16 +00:00
tsutsui 7a65036308 Modify hp300 bus_space(9) structures/functions to add hooks to override
access functions. This is required by some DIO devices to use MI drivers.
2003-08-01 00:23:17 +00:00
itojun 3f14c71f75 reserve cdev major # for PF. ok'ed by technical-exec 2003-07-27 14:17:57 +00:00