Commit Graph

68172 Commits

Author SHA1 Message Date
scw
d657bddd8c In data_abort_handler(), honour pcb_onfault even in the case where
current_intr_depth > 0.
2003-11-20 14:44:36 +00:00
fvdl
56bf58a34b Add (commented out) and document NO_TSC_TIME. 2003-11-20 13:32:41 +00:00
fvdl
a8ea4f26c8 If NO_TSC_TIME is defined, do not use the tsc microtime. This option can
be used to make time pass a little more smoothly when running under
VMware.
2003-11-20 13:30:29 +00:00
junyoung
e58c050c81 Use predefined macro rather than hardcoded value. 2003-11-20 12:30:34 +00:00
sekiya
53acd623c8 Add pckbc to device list. 2003-11-20 08:34:05 +00:00
sekiya
b26a57f648 Add driver for pckbc at hpc. There's an interrupt issue that still needs
to be resolved.
2003-11-20 08:31:13 +00:00
petrov
b5706bc691 Remove nwindows calculation, it's not used. Set l_cpu in cpu_switch. 2003-11-20 08:08:52 +00:00
petrov
b56164b9ed Set curcpu() for SMP. 2003-11-20 08:04:04 +00:00
manu
3c00d1aad5 Start to implement another strange feature: signals as Mach software
exceptions. This can be requested with ptrace, and cause signals to
be transformed into a particular kind of exception.
2003-11-20 07:12:34 +00:00
lukem
6918f15fc1 Provide appropriate no-op defaults for _MK* macros, in case <bsd.own.mk>
is too old.
2003-11-20 07:08:02 +00:00
jonathan
89d603f9ea This file was derived from FreeBSD, where "in6pcb" is a macro for
"inpcb", and this struct inpcb* and struct inp6cb* are the same type.

On NetBSD they are different types, so we must change the types of
formal argument in IPv6-specific functions from "struct inpcb *" to
"struct in6pcb*".

The code didn't compile on NetBSD beforehand, if both FAST_IPSEC + INET6
were configured. This fix will cause even more short-term breakage for
that case, but its a step in the right direction: it shows up what
still needs to be fixed.
2003-11-20 06:35:09 +00:00
sekiya
b4a9ea3c2d ip2x can't handle four-meg ramdisks; use a three-meg ramdisk instead and
compile the kernel with -Os.
2003-11-20 05:27:07 +00:00
chs
0b0e802177 de-__P, remove register, ansify. 2003-11-20 03:58:47 +00:00
uwe
246d903de4 In intc_intr_priority() don't panic if the evtcode is not one of
those, that have their priority set in IPR registers, e.g. IRL
interrupts on Dreamcast.  Reported by Christian Groessler.
2003-11-20 01:22:19 +00:00
fvdl
f2fdecfc92 Correct number of arguments to sysctl_rdint. 2003-11-19 22:40:55 +00:00
jonathan
b6e73d53fb Footwork for fast-ipsec and IPv6: when compiling sys/netinet/tcp_input.c
for both FAST_IPSEC and INET6, include <netipsec/ipsec6.h>.
2003-11-19 20:47:00 +00:00
jonathan
130f3bfc26 Patch back support for (badly) randomized IP ids, by request:
* Include "opt_inet.h" everywhere IP-ids are generated with ip_newid(),
  so the RANDOM_IP_ID option is visible. Also in ip_id(), to ensure
  the prototype for ip_randomid() is made visible.

* Add new sysctl to enable randomized IP-ids, provided the kernel was
  configured with RANDOM_IP_ID. (The sysctl defaults to zero, and is
  a read-only zero if RANDOM_IP_ID is not configured).

Note that the implementation of randomized IP ids is still defective,
and should not be enabled at all (even if configured) without
very careful deliberation. Caveat emptor.
2003-11-19 18:39:34 +00:00
christos
5a02ed0f97 - don't use MALLOC for non constant counts
- check malloc() size.
2003-11-19 16:43:38 +00:00
christos
4ca4498262 Don't include malloc.h if you are not going to use it. 2003-11-19 15:48:21 +00:00
christos
42e971bfba Previous fix was incomplete; did not handle negative values.
It is best to use size_t's when dealing with sizes, so that
testing for negative ones, is not needed.
2003-11-19 15:46:16 +00:00
scw
1ba37196a9 Include arch/powerpc/ibm4xx/intr.c only if a particular board actually
uses the generic 4xx interrupt implementation.
There are some 4xx boards with entirely different interrupt controllers.
2003-11-19 14:27:24 +00:00
scw
c16a38a4d1 Add support for an MBR disklabel if EVBPPC_HAS_MBR is defined. 2003-11-19 13:58:11 +00:00
jonathan
6ec8242194 Wrap noisy pointless message about denied userspace requests with
`#ifdef CRYPTO_DEBUG', per Jason Thorpe's  suggestion.
2003-11-19 04:14:07 +00:00
jonathan
86b22c558b Fix typo. 2003-11-19 03:24:20 +00:00
jonathan
22b38bb12a Clean up userlevel access to software kernel transforms, in preparation
for using /dev/crypto for OpenSSL:

1. Add comments explaining crypto_devallowsoft, explaining the
OpenBSD-style three-way logic actully implemented in crypto_newsession().

2. Pass crypto_devallowsoft as the final argument to crypto_newsession(),
instead of a constant 0 value.

3. Set the default value of crypto_devallowsoft to 1, to allow
/dev/crypto access only for hardware-supported transforms.

Items 1-3 may be revised to match the FreeBSD two-way logic, if the
consensus is that there's no point to forcing software transforms.
But as a first step, let the description match what the code actually does.

GC unused variables usercrypto, userasmcrypto, cryptodevallowsoft from
cryptodev.c, in favour of variables crypto_usercrypto, crypto_userasmcrypto,
crypto_devallowsoft, which are used as well as defined in crypto.c.
2003-11-19 03:18:33 +00:00
matt
2a5baf8a0e Add missing lpt entries. 2003-11-19 02:54:50 +00:00
gavan
f6aee98e0f Save arguments passed into scratch registers, rather than scratch
registers into arguments passed.

Avoids corruption of anything pointed to by r3 and r4 on entry to
os_get_env, and allows pass-by-reference values to be returned.
2003-11-19 00:11:55 +00:00
jonathan
94d42f90db Add opencrypto and drivers for PCI cryptographic accelerators --
hifn (Hifn 7751), ubsec (Broadcom 582x) -- to i386 GENERIC kernel.
2003-11-18 23:07:37 +00:00
jonathan
a91ce15e10 Remove erroneous '2 *' from 'bzero(*sched, 2 * sizeof(rijndael_ctx));'
After using AES from sys/crypto, we only malloc sizeof(rijndael_ctx),
and we were bzero()ing past the end of the aes ctx, leading to panics.
2003-11-18 23:01:39 +00:00
lukem
1d646ef2fe install /usr/include/sys/soundcard.h as a symlink to ../soundcard.h 2003-11-18 23:00:04 +00:00
gavan
de7bc02bb2 Mark module as 32-bit compatible 2003-11-18 22:46:33 +00:00
scw
61aab8b582 On a fatal fault, dump the trapframe's contents to the console.
This is useful when DDB is not available, or practical.
2003-11-18 22:39:05 +00:00
briggs
3a312a4033 Use aprint_* instead of printf. 2003-11-18 21:40:13 +00:00
briggs
fa618d5cf3 Use aprint_normal instead of printf in scsipi_print_xfer_mode(). 2003-11-18 21:39:12 +00:00
jonathan
9845fd1063 Add support for Broadcom and Intel gigabit lan devices on (i386)
laptop motherboards. From GENERIC_LAPTOP revisions 1.81->1.83.
2003-11-18 21:21:58 +00:00
jonathan
f95098aec9 Add wm* and igphy*/makphy*, for laptops with Intel Pro/1000-family
gigabit Ethernet on the motherboard.
2003-11-18 21:15:46 +00:00
jonathan
64f5634e18 Add bge* and brgphy*, for laptops with Broadcom gigabit on motherboard. 2003-11-18 20:54:44 +00:00
itojun
7db67502f8 avoid integer type truncation. be picky about integer computation overflow.
inspired by ftp://ftp.openbsd.org/pub/OpenBSD/patches/3.3/i386/011_ibcs2.patch
2003-11-18 19:46:37 +00:00
dbj
6a88e9174b add "show mount" ddb command 2003-11-18 18:26:18 +00:00
manu
28116d3012 Don't release the bootstrap port too much, as it is shared between
processes.
2003-11-18 15:57:13 +00:00
manu
74076749f8 Avoid leaking some Mach ports allocated in the kernel on fork, exec and
exit operations.
2003-11-18 14:11:33 +00:00
martin
ccd8c9e649 Remove spurious space accidently introduced in last. 2003-11-18 13:13:03 +00:00
martin
63a3b1e4ae Change K&R string literal continuation lines to ANSI C string concatenation.
Fixes PR kern/23474.
2003-11-18 13:01:21 +00:00
chs
da3e14c277 fix address computation in vmapbuf(). use uvm_km_valloc_prefer_wait().
call pmap_remove() explicitly in vunmapbuf(), this has been required
for several years now.  fixes PR 20933.
2003-11-18 11:37:39 +00:00
manu
2079e3b2b5 SIGTRAP is used for breakpoints 2003-11-18 11:20:34 +00:00
chs
5dcca2231a restructure autoconf for [ABCDJK]-class machines. add phantomas bus.
adapted from OpenBSD by Jochen Kunz.
2003-11-18 04:04:42 +00:00
chs
d277a48ec3 a stripped-down config to work around netboot problems. 2003-11-18 04:03:32 +00:00
chs
cfb436dcf3 remove link_set hack, new toolchain doesn't need it. 2003-11-18 03:25:48 +00:00
manu
e04d06c9bb More work on exceptions. Once a task has raised an exception, it remains
blocked in the kernel. The task that catched the exception may unblock
it by sending a reply to the exception message (Of course it will have
to change something so that the exception is not immediatly raised again).

Handling of this reply is a bit complicated, as the kernel acts as the
client instead of the server. In this situation, we receive a message
but we will not send any reply (the message we receive is already a reply).
I have not found anything better than a special case in
mach_msg_overwrite_trap() to handle this.

A surprise: exceptions ports are preserved accross forks.

While we are there, use appropriate 64 bit types for make_memory_entry_64.
2003-11-18 01:40:18 +00:00
cl
ac4fd64ba5 - remove blocked/unblocked upcall ordering.
- always wait for unblocked upcall if we have to continue a blocked
  thread.

=> removes wakeup from sys_sa_stacks when a stack is returned.
=> avoids extra sa_unblockyield syscall when unblocked upcall is
   delivered before blocked upcall is processed.
=> avoids double pagefault if we continued a thread before the
   pagefault was resolved.
=> avoids losing unblocked state if we continued a thread after
   skipping the unblocked upcall.
2003-11-17 22:57:52 +00:00