Commit Graph

1755 Commits

Author SHA1 Message Date
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
tsutsui b161c7f8d3 Remove declaration of hilkbdcnattach() which is declared in dev/hilvar.h. 2003-07-27 04:38:06 +00:00
thorpej 063033a023 Since everyone uses clock_subr.c (or should, if they don't currently),
list it in conf/files instead of in every port's files.*.
2003-07-27 01:17:37 +00:00
tsutsui bf6ea868f8 Create ${MACHINE_ARCH} symlink as well for stand progs. 2003-07-20 02:38:43 +00:00
tsutsui aa0eea7974 In softintr_dispatch(), clear ssir bit before calling softintr handlers
with a single_inst op, otherwise sometimes softintr might be lost.
2003-07-19 16:06:27 +00:00
tsutsui 1fe335b800 Allow bus_space_map(9) to map DIO address which is not page aligned.
(required by MI com(4) driver support for 98644A DCA serial)
2003-07-19 16:02:06 +00:00
tsutsui 7d2ff25d49 Rename clockattach() to todr_attach(). 2003-07-19 02:39:27 +00:00
tsutsui acc15558d0 Some cosmetics on bus_space_tag_t initialization. 2003-07-05 16:57:04 +00:00
tsutsui f60951ffdb Initialize bus_space_tag in rtc_softc properly in rtcattch(). 2003-07-05 16:48:12 +00:00
tsutsui 2dcba30bb6 cosmetics 2003-07-05 16:21:17 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
thorpej f4fff81d3a Adapt to ktrace/lwp changes. 2003-06-29 15:49:49 +00:00
darrenr 960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
he 870b85989a Defflag PANICBUTTON, now that machdep.h includes opt_panicbutton.h. 2003-06-28 08:22:02 +00:00
martin d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
tsutsui 6eced4bc4e Fix part number in comment.
hp300/dev/scsireg.h says it's HP 98265A SCSI, and
I can't find any description about 98658.
(typo of 98568A backplane expander?)
2003-05-25 05:09:26 +00:00
tsutsui 33ae4dd814 Regen from diodevs rev 1.6:
> Fix part number of DIO SCSI interfaces.
> It should be 98265A, and 98625A is fast HP-IB interface.
2003-05-25 04:59:57 +00:00
tsutsui de711bc064 Fix part number of DIO SCSI interfaces.
It should be 98265A, and 98625A is fast HP-IB interface.
2003-05-25 04:56:36 +00:00
gmcgarry 8e726b5268 Clean-up the DIO bus. Includes two main changes:
1) Pass address and ipl locators at attachment;
2) Remove hack which made the internal HP-IB controller
   look like a DIO device.

The hack to allow the nhpib driver to support internal and DIO
controllers appears to be a leftover from 4.3BD where it was not
possible to have a driver attach to different busses.  NetBSD has
supported bus-dependent attachments for a long time.
2003-05-24 06:21:21 +00:00
thorpej f4ca0d67fe Include <sys/disk.h>. 2003-05-12 14:48:12 +00:00