Commit Graph

2287 Commits

Author SHA1 Message Date
christos
b2fabde467 - add siginfo translation for all arithmetic faults and traps.
- skip the current instruction for all faults, to avoid infinite loops on
  SIGFPE (from OpenBSD)
Info from: http://bitsavers.vt100.net/pdf/dec/vax/archSpec/EK-VAXAR-RM-001_Arch_May82.pdf
2009-02-16 23:55:31 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
jym
92ae85d18e Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
2009-02-06 18:50:26 +00:00
mrg
c6a4afa995 add COMPAT_50 to all the configs with COMPAT_40. 2009-01-24 05:06:05 +00:00
christos
e6a971bc07 Patches from Brad Parker to support vax730. 2009-01-22 18:49:02 +00:00
he
d4b1297c8f Re-adapt to the changed return types for major() and minor(). 2009-01-21 16:24:33 +00:00
pooka
854c6deca2 Use kernel locking routines only with _HARDKERNEL 2009-01-14 23:20:34 +00:00
mjf
2cebf05ce3 - Separate the COMPAT_13 and COMPAT_16 code into their own files and
compile them only when the relevant config options are set.

- Provide a sendsig_sigcontext() implementation using the existing vax
  signal code; it already does the correct thing.
2009-01-13 23:56:13 +00:00
yamt
70de973662 g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
christos
af8f3048ca fix dev_t printf formats. 2009-01-11 22:37:50 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
cegger
074ef1779e add stub for sendsig_sigcontext().
I leave this to our vax guys to implement it.
Implementing it is another step to make vax kernels build again.
2008-12-27 16:26:06 +00:00
cegger
42f4c567d4 catch up with latest changes: sendsig -> sendsig_siginfo 2008-12-20 12:50:24 +00:00
cegger
dcf705893e use M_ZERO on malloc() and remove subsequent bzero(). 2008-12-19 18:49:37 +00:00
cegger
9b87d582bd kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
pooka
ee352f3d33 Make kernel_pmap_ptr a const. Requested by steve_martin. 2008-12-10 11:10:17 +00:00
pooka
29d439f898 Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.
2008-12-09 20:45:44 +00:00
martin
719a906ef5 As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
2008-11-30 18:21:31 +00:00
cegger
651359d330 build fix: include <sys/buf.h> 2008-11-24 13:45:37 +00:00
ad
6ba528b5bc Remove softdep, pass 1. We are focused on improving journalling.
Proposed on tech-kern@.
2008-11-24 11:41:07 +00:00
hans
6e50d3937a Fix unibus interrupts on SBI machines. OK by matt. 2008-11-20 17:08:03 +00:00
hans
7c2871cb2a fix build for 11/780-only kernel configs. OK by matt. 2008-11-19 22:54:16 +00:00
hans
dae9680b33 fix build for kernel configs lacking KA46, KA48, KA49 and KA53 support.
OK by mhitch.
2008-11-19 20:26:40 +00:00
ad
92ce8c6a3d Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
2008-11-19 18:35:57 +00:00
hans
7a092e0d4e uba device registers should be volatile. OK by ragge. 2008-11-19 15:39:10 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
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
joerg
ab9987d535 Missing assym.h dependency. 2008-03-01 13:59:26 +00:00
xtraeme
f402cadf9a Remove CTL_MACHDEP_NAMES, it's not used anywhere.
Ok by martin@.
2008-02-27 18:26:15 +00:00
matt
ba7104fdd4 Model this syscall.c on the i386 syscall.c. Don't have separate
syscall_fancy and syscall_plain.  Use p->p_trace_enabled.
2008-02-24 12:57:39 +00:00
matt
57db79967d Never ever trust the user. Fix bug introduced in version 1.8 of trap.c
by ragge nearly 13 years ago.
2008-02-24 08:38:39 +00:00
matt
aa6e59f5dc A number of performance changes:
Change internal register SSP to contain curlwp insread curcpu().  This
shrinks the GENERIC by 2KB.
Add rwlock stubs (rw_enter, rw_exit, rw_tryenter).
Simplify simple lock code for uniprocessors.
Do SPL raise/lower in cpu_handle_ipi instead of simple_locks.
2008-02-23 05:48:13 +00:00
matt
8310bd848b Revert last change. 2008-02-22 17:38:38 +00:00
matt
ca4e85e5a3 Fix panic in readdisksubr.c 2008-02-22 15:57:53 +00:00
matt
49ffaced1c Fix a bug in the pmap pcb tracking code. While here, rewrite it to simplier.
Use a field in the pcb itself (since it's basically free) and keep track of
what pmap "owns" a pcb (for consistency checking).  use M_ZERO as appropriate.
2008-02-22 08:46:48 +00:00
matt
9433f6a071 expand some printfs. Don't bother checking for curlwp == NULL; it can't
happen anymore.  Convert some variables to bool.
2008-02-22 03:20:39 +00:00
matt
6c90a57c76 Rethink softint cleanup. instead of post softint, do it before so we always
know it was done right.  This fixes KSP invalid panics.
2008-02-22 03:18:40 +00:00
matt
80798140ed Switch NetBSD/vax to the CAS model of mutexes. Fix the locking primitives
in lock_stubs.S so they actually function correctly.
2008-02-22 03:16:01 +00:00
matt
a0283d03d4 Add back some includes which were inadvertantly removed. 2008-02-22 03:14:22 +00:00
matt
4e3cca57c1 More softint fixes. We need to restore the softint lwp's pcb to it's initial
state since it may have been blocked or interrupted by another softint.
2008-02-21 03:52:47 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
matt
a027746fa0 Make NetBSD/vax work again. Add support for __HAVE_FAST_SOFTINTS.
Add a few small optimizations.
2008-02-20 16:37:52 +00:00
matt
0269822f9b ci_curlwp must be set to &lwp0 very early in the boot. Now we get further
into the kernel before dying.
2008-02-19 22:18:03 +00:00
ad
fb00b83874 Give bbusy() an interlock argument. If the we need to wait for the buffer,
the interlock is dropped and reacquired when awoken. This allows for
busying buffers attached to a list that is not locked by bufcache_lock.
2008-02-15 13:46:04 +00:00
matt
c32578800f Fix typo (casdata/cashash) 2008-02-13 18:42:36 +00:00
matt
9a46bba2ed Add IPL_VM 2008-02-13 18:41:35 +00:00
matt
c905608a9f Add VAX_PHYS_TO_S0 (for asc_tcds)
Include <machine/cpu.h> for badaddr
2008-02-13 18:41:05 +00:00
ad
372461e58e Add aliases for atomic_cas_foo_ni(). 2008-02-10 13:32:14 +00:00
dsl
c2a8c787c3 Remove the 'args' parameter to 'trace_exit()' it is no longer used.
Instead of passing the (un)real system call code and syscall table pointer,
just pass the number of arguments - which is what ktrace really wants.
Ride forthcoming 4.99.53
2008-02-06 22:12:39 +00:00
matt
9e910bd0fa Make sure device interrupts are handled at IPL_VM 2008-02-05 00:04:24 +00:00
matt
a7a4e9f149 Preliminatry TC support. 2008-02-03 08:45:40 +00:00
matt
7a66d8d486 use memt instead of iot since everything is memory mapped. 2008-02-03 08:42:48 +00:00
matt
9c814f7331 Reorganize a bit to be able to support multiple sgmaps. 2008-02-03 08:41:22 +00:00
matt
62d5d69912 De-__P 2008-02-03 08:39:48 +00:00
matt
36cebfbb00 misc type cleanups 2008-02-03 08:37:40 +00:00
matt
4471287922 sysmachine uses lwp now. 2008-02-03 08:37:06 +00:00
matt
65f79aefb7 Make process_sstep use ANSI declaration. 2008-02-03 08:36:41 +00:00
matt
4b1e334f7e No need for RW_OWNER/RW_LOCK anymore 2008-02-03 08:35:33 +00:00
matt
bae16e79c9 Add physaddr support from mbufs (commented out since it doesn't quite work
right yet).
2008-02-03 08:34:57 +00:00
matt
54c38b27ff Add {,_}atomic_cas_{32,ptr,uint,ulong}. Nuke rw_cas 2008-02-03 08:34:04 +00:00
matt
c9c1064fa3 Switch this to use atomic_cas_ulong. 2008-02-03 08:33:00 +00:00
matt
67ba75fa05 Change IPL_SOFTBIO to 0x0b 2008-02-03 08:32:25 +00:00
matt
2395825b1c Add PMAP_VTOPHYS 2008-02-03 08:32:08 +00:00
matt
7fbe2ba862 Make sysmachine take a lwp instead of a proc. 2008-02-03 08:31:48 +00:00
matt
15753da255 Add cpu_intr_p (checks PSL_IS in PSL).
Change badaddr to take a volatile pointer
2008-02-03 08:31:09 +00:00
matt
0ae740580b change all u_int{8,16,32}_t to uint{8,16,32}_t 2008-02-03 08:30:19 +00:00
christos
d180539684 make the kernel link again from Henry Bent 2008-01-31 03:31:31 +00:00
christos
bfd5f301c3 complete removal of soft interrupts from Henry Bent 2008-01-31 03:30:36 +00:00
joerg
6e869e402d Refactor in_cksum/in4_cksum/in6_cksum implementations:
- All three functions are included in the kernel by default.
  They call a backend function cpu_in_cksum after possibly
  computing the checksum of the pseudo header.
- cpu_in_cksum is the core to implement the one-complement sum.
  The default implementation is moderate fast on most platforms
  and provides a 32bit accumulator with 16bit addends for L32 platforms
  and a 64bit accumulator with 32bit addends for L64 platforms.
  It handles edge cases like very large mbuf chains (could happen with
  native IPv6 in the future) and provides a good base for new native
  implementations.
- Modify i386 and amd64 assembly to use the new interface.

This disables the MD implementations on !x86 until the conversion is
done. For Alpha, the portable version is faster.
2008-01-25 21:12:10 +00:00
skrll
ebb5deb738 Define PT_MACHDEP_STRINGS 2008-01-25 11:59:20 +00:00
joerg
3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
joerg
7e82e3084b Timecounter support for VAX. Basic testing in simh done on a backported
version to netbsd-4.
2008-01-07 16:40:16 +00:00
dsl
b8bcdbe9e6 Don't pass 'curlwp' into trace_enter() and trace_exit(). 2008-01-05 12:53:52 +00:00
ad
fee5b86dc3 Don't need sys/lock.h 2008-01-05 00:19:46 +00:00
joerg
700e393dca time.tv_sec -> time_second 2008-01-04 22:43:45 +00:00
joerg
84487ad85b Needs sys/simplelock.h. 2008-01-04 21:56:36 +00:00
joerg
a547a2785a Use time_second instead of time.tv_sec. 2008-01-04 21:43:58 +00:00
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
dsl
35e44a2658 Fix the remaining sys_sysarch() stub function. 2007-12-22 08:59:02 +00:00
tsutsui
b3b089f419 Use (char *) on pointer arithmetic. 2007-12-22 08:29:40 +00:00
tsutsui
f35eb8772f Put a workaround for gcc ICE on ddb/db_command.c. 2007-12-22 08:17:57 +00:00
dsl
7e2790cf6f Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
2007-12-20 23:02:38 +00:00
dyoung
adde197943 Use IFADDR_EMPTY(). 2007-12-05 22:51:01 +00:00
dyoung
3f6c5b6545 Don't open-code queue(3) macros (x = ifnet.tqh_first; y =
x.if_list.tqe_next).  Instead, use the macros themselves.
2007-12-05 01:02:15 +00:00
ad
4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
plunky
1effb490f2 remove alias for _insque and _remque since they are no longer
used. leave the vax_insque function for no reason except that
it maps to an actual instruction.
2007-11-22 23:02:05 +00:00
yamt
9f6672e12b fix changes which i forgot to commit with sys/arch/vax/include/mutex.h rev.1.9. 2007-11-22 13:13:15 +00:00
yamt
aebd6aa5c9 add comments 2007-11-21 11:15:50 +00:00
yamt
38d5e34116 make kmutex_t and krwlock_t smaller by killing lock id.
ok'ed by Andrew Doran.
2007-11-21 10:19:06 +00:00
yamt
c64de7a608 sync the prototype of cpu_switchto with sys/cpu.h. 2007-11-20 13:37:37 +00:00
ad
dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad
bd6663fc4d Don't set l_usrpri / spc_curpriority here. mi_userret() does it. 2007-11-05 20:37:48 +00:00
xtraeme
4ba09b41c3 Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
2007-11-04 14:34:19 +00:00
yamt
23005df1e0 defparam PAGER_MAP_SIZE. 2007-10-25 13:03:03 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad
9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
ad
2af68666da Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.
2007-10-08 16:41:05 +00:00
ad
6299e033fb ci_need_resched -> ci_want_resched 2007-10-01 21:23:02 +00:00