Commit Graph

1751 Commits

Author SHA1 Message Date
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
thorpej e43fecb228 Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself.  This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
thorpej 36da248c07 Back out the following chagne:
http://mail-index.netbsd.org/source-changes/2003/05/08/0068.html

There were some side-effects that I didn't anticipate, and fixing them
is proving to be more difficult than I thought, do just eject for now.
Maybe one day we can look at this again.

Fixes PR kern/21517.
2003-05-10 21:10:23 +00:00
thorpej b77900c3c2 Simplify the way the bounds of the managed kernel virtual address
space is advertised to UVM by making virtual_avail and virtual_end
first-class exported variables by UVM.  Machine-dependent code is
responsible for initializing them before main() is called.  Anything
that steals KVA must adjust these variables accordingly.

This reduces the number of instances of this info from 3 to 1, and
simplifies the pmap(9) interface by removing the pmap_virtual_space()
function call, and removing two arguments from pmap_steal_memory().

This also eliminates some kludges such as having to burn kernel_map
entries on space used by the kernel and stolen KVA.

This also eliminates use of VM_{MIN,MAX}_KERNEL_ADDRESS from MI code,
this giving MD code greater flexibility over the bounds of the managed
kernel virtual address space if a given port's specific platforms can
vary in this regard (this is especially true of the evb* ports).
2003-05-08 18:13:12 +00:00
gmcgarry 9687966318 Fix from Steve Peurifoy in PR#18849:
"Occasionally a blocking open of dcm port 0 will hang in ttyopen()
waiting for carrier detect to be asserted when it's already
present.

The problem is that dcmmint() will return before updating the
value of sc->sc_mcndlast if the device is not open.  If carrier
detect drops after the device is closed, sc->sc_mcndlast will
no longer correctly represent the "previous" state of the
signals when the next transition of carrier detect occurs.
A subsequent blocking open will wait forever for an event
which has in fact taken place."
2003-05-04 02:10:07 +00:00