Commit Graph

49508 Commits

Author SHA1 Message Date
macallan 31e90ebd10 add a few more register definitions, needed by the latest crime_drv. 2009-03-26 04:11:58 +00:00
dyoung 3a72540da6 This only got the definition of device_xname() by chance, so explicitly
#include <sys/device.h>.
2009-03-26 00:30:10 +00:00
dyoung 9fd1ce14c3 It is only by accident that these get the definitions they need from
<sys/device.h>, so explicitly #include <sys/device.h>.
2009-03-25 22:56:00 +00:00
dyoung 61cf8013a0 It is only by accident that this gets the definitions it needs from
<sys/evcnt.h>, so explicitly #include <sys/evcnt.h>.
2009-03-25 22:54:56 +00:00
dyoung f81f62377d It is only by accident that these get definitions they need from
<sys/device.h>, so explicitly #include <sys/device.h>.
2009-03-25 22:53:51 +00:00
cegger 8d8839858d catch up with i386 xen kernels:
enable cgd by default
2009-03-25 06:26:44 +00:00
agc 5e3c351cee Catch up with the changes in i386 GENERIC, and enable cgd by default
in XEN2 and XEN3 kernels.

Xen really requires cgd, and as users are likely to get a domain given
to them without the possibility of recompiling a kernel for
themselves, we need to provide this by default.

As discussed with bouyer@, and with his OK.
2009-03-24 22:42:50 +00:00
martin bce5c2205a Now that we compile the Atheros HAL from source we pass all the right
flags to the compiler so it obeys the same ABI as the rest of the kernel.
Remove the hacks used to work around the abi differences (using %s7 as
curlwp) intruduced for the binary hal.
2009-03-24 21:36:46 +00:00
tsutsui 8567f2b149 Put back zstty0 and zstty1 lines for onboard zs(4) serial ports
so that they are properly assinged to ttya and ttyb as pre-wscons kernels.
Ok'ed by macallan@.
2009-03-24 12:16:12 +00:00
pooka 20f51bbafd need putter too 2009-03-24 11:53:22 +00:00
pooka d2478264ae file-system PUFFS 2009-03-24 11:52:21 +00:00
tsutsui 92da7d73c5 Revert kludge in previous.
The warning was triggered by __builtin_memcpy() on vax, and
it has been disabled in libkern.h for _STANDALONE programs.
2009-03-23 13:52:32 +00:00
tsutsui 2a6ed85992 - use -Os to shrink bianries
- remove local shrinked memcpy() from bootxx.c bacause
  now it's identical with __OPTIMIZE_SIZE__ libsa one
  derived from src/common/lib/libc/string/bcopy.c.

Tested netboot from le0 and bootxx + boot from sd0 on SS1+.
2009-03-23 13:47:32 +00:00
ad dabb2cae17 Set up module_map correctly so that the system does not panic if it
becomes full.
2009-03-22 19:57:11 +00:00
uwe 1ebb57a8c6 Don't bother trying to attach GPIO, AFE and FIR modules for which we
have no drivers.

Standby TIMER that we don't use.  One of the timers is always out of
standby on my Jornada on boot (WinCE uses it), so save some power.

Standby AFE and FIR for which we have no drivers (I don't know if any
hpcsh hardware actually uses them, so they are likely to be in standby
already anyway).
2009-03-22 02:25:11 +00:00
ad 2fc1c0de55 Add 2 event counters:
"x86", "io bitmap copy"
"x86", "ldt sync"
2009-03-21 22:55:08 +00:00
ad e23c2bc3ad A couple more comments. 2009-03-21 22:17:13 +00:00
ad b8dea7e04e Add a comment. 2009-03-21 21:42:00 +00:00
ad 3c11640e0d Fix 'boot -z' bogons. 2009-03-21 15:01:56 +00:00
ad 418272808a Correction to previous. 2009-03-21 14:48:02 +00:00
ad d16d704d62 PR port-i386/40143 Viewing an mpeg transport stream with mplayer causes crash
Fix numerous problems:

1. LDT updates are not atomic.

2. Number of processes running with private LDTs and/or I/O bitmaps
   is not capped. System with high maxprocs can be paniced.

3. LDTR can be leaked over context switch.

4. GDT slot allocations can race, giving the same LDT slot to two procs.

5. Incomplete interrupt/trap frames can be stacked.

6. In some rare cases segment faults are not handled correctly.
2009-03-21 14:41:29 +00:00
uwe 490f3711c0 Interrupt handling changes (revision 1.23) bumped down _IPL_N to 8 for
some reason.  Restore it to correct 16.

HTF did hpcsh work all this time with hd6446x_imask[_IPL_N] indexed
with IPLs 0..15 is a mistery...  Discovered by accidentally triggering
hd64461 timer interrupt that is not enabled and should have been
masked.

_IPL_N used to be *also incorrect* 15 before Andy's change, which
makes one wonder if dumb luck is severly underappreciated.
2009-03-21 06:11:08 +00:00
uwe 1251c9c4c1 Print only the offending masked HD6446x interrupt, not all of the NIRR. 2009-03-21 04:58:32 +00:00
uwe 89c9d74da9 Fix typo in message. 2009-03-21 03:51:41 +00:00
uwe ba51317c25 Minor cosmetic. 2009-03-21 03:13:30 +00:00
uwe 76c0e81d47 In the current code the even loop is never exited, but it's cleaner to
have explicit kthread_exit at the end of the event thread routine.
2009-03-21 02:23:03 +00:00
uwe df7998fac1 Move channel attachment to event thread (we already have one, so it's
easier to do it there rather than mess with config_interrupts()).

From kiyohara@.  Discussed with drochner@, who pointed out that pcmcia
drivers are expected to attach with interrupts enabled.
2009-03-21 02:02:39 +00:00
tsutsui e61fbf18ec Build common standalone MD sources in libsa. 2009-03-20 13:59:49 +00:00
tsutsui 1b7ed0b13a Switch sun68k standalone programs to using MI libsa and libkern.
Bump version.

Tested bootxx + ufsboot on TME (sun2 and sun3) and 3/80 (sun3x).
2009-03-20 11:42:25 +00:00
he 2c9ccd9e54 Correct one more bungled bcopy() -> memcpy() conversion. 2009-03-19 23:09:13 +00:00
he 9cd8fe02fa Correct a few more bungled bcopy() -> memcpy() conversions. 2009-03-19 22:52:16 +00:00
he 521052f60d It seems gcc is unhappy about a literal 0 as a pointer argument
to memcpy().  Work around that by using a local variable instead.
(This looks a bit dubious, but who am I to judge the restrictions
in the standalone environment on the vax -- this should not change
the semantics of what was here before.)
2009-03-19 14:11:20 +00:00
he 009f7e26ee Now that the stand/ code was converted to use memcpy(), the private
implementation of bcopy() needs to become memcpy() as well.  The
simpler local implementation is needed so that the boot code doesn't
overflow the available space.
2009-03-19 14:05:24 +00:00
tsutsui 18014b1a99 Remove bcmp() from MD libsa.
XXX: These ports should be rewritten to use MI libsa for maintainability.
2009-03-19 10:19:33 +00:00
mrg 4df09e915b remove a bunch of special casing to handle improperly set segment
registers.  if we faulted trying to set them, just fall into
"we_re_toast", and arrange for a SEGV to be delivered to the
userland process.  fixes kernel mode faults.

from andrew doran.
2009-03-19 02:59:00 +00:00
he 9df5574fb1 Correct a bzero() -> memset conversion. 2009-03-18 22:13:05 +00:00
dyoung 75c7534526 Remove native compatibility options to stop the config(1) errors
that Juergen Hannken-Illjes reports:

    sys/arch/i386/conf/MONOLITHIC:16: already have options `COMPAT_NOMID'
    sys/arch/i386/conf/MONOLITHIC:17: already have options `COMPAT_09'
    ...
2009-03-18 20:57:45 +00:00
cegger e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger 35fb64746b bcmp -> memcmp 2009-03-18 15:14:29 +00:00
tsutsui 83a448a377 Include <string.h> for memcpy(3). 2009-03-18 13:24:38 +00:00
cegger df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
cegger 20cd1777db ansify function definitions 2009-03-18 07:41:54 +00:00
uwe 7ae7c6b0f8 Turn on display on attachment. Fixes the scenario when serial console
is used and you reboot (using kloader) with screen turned off.
2009-03-18 02:49:34 +00:00
dyoung 69fbb7297e Reactivate native compatibility in GENERIC. 2009-03-17 20:04:39 +00:00
he 6dc3c9a69e Make putchar() conform to the stand.h prototype, so that this builds again. 2009-03-17 19:41:32 +00:00
he f39d6889ae Due to the way these files are used, ref. libdos/makedoscalls.awk and
libiocs/makeiocscalls.awk, we need a space between the function name
and the parameter list in the declaration.
2009-03-17 18:58:26 +00:00
he 75306d0938 Correct the sense of the test for LIBSA_NO_FS_CLOSE
so that this builds again.
2009-03-17 18:43:43 +00:00
dsl 98ae204731 Add some 'int' into function definitions where the K&R one didn't
specify a type.
2009-03-17 18:19:15 +00:00
he 62db563030 Re-balance parenthesis in a couple of places. 2009-03-17 10:16:55 +00:00