Commit Graph

2159 Commits

Author SHA1 Message Date
dyoung
94d985722a It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled.  So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks().  Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown().  No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown().  I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that.  Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
2008-11-11 06:46:40 +00:00
hans
af5e538279 fix userret() and resurrect cpu_setfunc() to make vax build again. ok by matt. 2008-10-22 11:24:28 +00:00
ad
d1b01a3709 Provide a small inline wrapper for sysent::sy_call() and use it to store
the active syscall description in struct lwp. To be used at some future
point to prevent unloading of modules that provide syscalls, while the
syscalls are in use.
2008-10-21 12:16:58 +00:00
cegger
b119a37e7e build fix: get prototype for cpu_upcall() 2008-10-17 08:12:23 +00:00
hans
ce49696b30 Set nexaddr on qbus vaxen to enable remapping of buffers when booting
from MSCP devices. Fixes MSCP boot problem introduced by moving boot up
to allow for bigger kernels. OK by matt.
2008-10-16 13:39:25 +00:00
hans
991c2cc9b0 fix detection of unknown massbus devices, ok by matt 2008-10-16 12:47:22 +00:00
wrstuden
fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
hans
193647776f fix compile with options TRAPDEBUG, ok by matt 2008-10-10 21:13:35 +00:00
mrg
db754c0bc1 remove a strain # endif from the previous commit. 2008-08-31 23:23:42 +00:00
matt
9906ead4b6 Drop support for compiling a.out kernel. Elves rule! 2008-08-29 18:25:01 +00:00
hans
094d45b30f Add new accelerated driver for SPX graphics found in some VAXstations,
remove old broken lcspx driver. This is a bugfixed and refactored
version of the spx driver originally developed by Blaz Antonic in 2005.
OK'ed by mhitch.
2008-08-12 17:54:47 +00:00
tls
fca9d633b9 Add accept filters to GENERIC kernels where they exist. 2008-08-10 15:31:20 +00:00
matt
91d4704c12 Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of the
NetBSD defined ones.  Redefine the NetBSD ones in terms of the C99 ones.
Step 1 to having <fenv.h>
2008-08-05 16:47:41 +00:00
matt
c5e5572326 For ARITH traps, set the siginfo code appropriately for FP related traps. 2008-08-05 16:00:31 +00:00
matt
a97a3faaf7 Add the AFLT_FLT* code for T_ARITHFLT. 2008-08-05 15:59:28 +00:00
matt
e56d3c9caf Add PSL_{IV,FU,DV} bits. 2008-08-05 15:56:04 +00:00
simonb
0751ba4bff Add "options WAPBL" to standard GENERIC/INSTALL type configs. 2008-07-31 07:40:59 +00:00
ad
b94f79f0e8 Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@. 2008-07-02 17:28:54 +00:00
ad
06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
ad
fd089e08cf Remove ref to uvm.page_idle_zero 2008-06-04 11:30:25 +00:00
tsutsui
6b0322861b Add options COMPAT_40 to files which have options COMPAT_30. 2008-05-30 20:10:01 +00:00
chs
6740bb5440 enable profiling of assembly functions. 2008-05-25 15:56:11 +00:00
ad
1e62ed170b Remove unneeded playing about with kernel_lock. 2008-05-21 14:07:29 +00:00
jklos
b92aa793c1 Fix leds.c to compile. 2008-05-04 00:10:42 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad
284c2b9aef Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.
2008-04-24 18:39:20 +00:00
ad
6d70f903e6 Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.
2008-04-24 15:35:27 +00:00
ad
30abe39468 - Retire SYCALL_MPSAFE. With the exceptions of darwin and irix emulations,
all system calls are now MPSAFE.
- Remove unneeded acquire/release of kernel_lock.
2008-04-24 11:51:18 +00:00
matt
e21c02e25f Put RCSIDs in section ".ident" 2008-04-13 15:07:39 +00:00
tsutsui
78a1d236b6 Split device_t/softc for MI ncr53c9x and some related devices,
with various cleanup.
2008-04-13 04:55:52 +00:00
tsutsui
5147571380 Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes. 2008-04-04 16:00:57 +00:00
tsutsui
d9941582bf Split device_t/softc for le(4) and variants and misc cosmetic changes. 2008-04-04 12:25:06 +00:00
he
87e42a468b Convert from use of bcopy() to memcpy() so that this builds again. 2008-03-31 06:19:59 +00:00
matt
6e8b97e230 After a process in swapped in, refresh the pcb's paddr. 2008-03-15 18:42:06 +00:00
matt
9e8ca25d60 Switch dz driver to PRIVALLOC and device_* accessors. 2008-03-15 00:57:15 +00:00
matt
eb34c39d65 This is not (has never?) being used. 2008-03-15 00:27:18 +00:00
matt
3fbab323bd Switch to PRIVALLOC and device_* accessors 2008-03-15 00:25:05 +00:00
matt
3143c8de1f Use 0 sized softc and switch to PRIVALLOC 2008-03-15 00:24:13 +00:00
matt
5e7971cbf0 Fix device access. Use a 0 sized softc and switch to PRIVALLOC for mem_cmi. 2008-03-15 00:23:17 +00:00
matt
4e11517afe Use device_* 2008-03-15 00:21:48 +00:00
matt
e344d4551d Use a 0 sized softc / switch to PRIVALLOC. 2008-03-15 00:21:30 +00:00
matt
022989947e Comment out xmi and nmi devices. 2008-03-15 00:20:08 +00:00
jkunz
2f13c500d2 Fix falout from recent VAX code rototill:
MicroVAX 4000/[3-7]00 could not get HW Ethernet address.
2008-03-14 21:35:01 +00:00
jkunz
3682eb424e Fix falout from recent VAX code rototill: MicroVAX 4000/1xx and 3100m9x could not get HW Ethernet address. 2008-03-14 20:49:29 +00:00
matt
fad3202138 This file is no longer used. 2008-03-11 05:43:35 +00:00
matt
9586b67527 Update to new world order 2008-03-11 05:43:17 +00:00
matt
dfba816635 Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code.  Move to prototype definitions.  staticfy, constify, avoid casting.
Use device_* accessors.
2008-03-11 05:34:01 +00:00
christos
2853595ad1 Allow KA53 to link, from Hans Rosenfeld. clk_page is used only if VAX46, VAX48
or VAX49 are defined.
2008-03-07 16:02:43 +00:00
christos
80acf2debe Fix KA53 console. From Hans Rosenfeld. 2008-03-07 15:58:33 +00:00
rmind
c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00