Commit Graph

38980 Commits

Author SHA1 Message Date
mycroft f85e332440 Use pmap_kenter_pa() to map pages to dump, not pmap_enter(), so that it's more
resistant to VM lossage.
2004-07-22 15:12:46 +00:00
rumble 44f3c135e7 KNF and consistency 2004-07-20 05:19:23 +00:00
rumble 5189fbb0b4 Allow for console attachment by statically allocating a softc
extension. Tweak cs_softreq when appending the transmit queue.
Finally, add a bit of debugging.
2004-07-20 04:55:21 +00:00
rumble ae62a41f43 Properly initialise the tx and rx queue head and tail positions. 2004-07-20 04:43:44 +00:00
perseant 1524f4361c Change "acardide*at ..." to "acardide* at ..." so adjustkernel will dtrt. 2004-07-20 00:08:51 +00:00
tron ad1499aa47 Enable ehci(4) by default. 2004-07-19 14:23:59 +00:00
jmmv aee8313407 Add the Spanish keymap.
While here, add support for the Num Lock key (with all needed changes in the
numeric keypad), Print Screen, Hold Screen, Pause, Insert, and Delete.

Ok'ed by silence in port-mac68k@.
2004-07-19 13:31:08 +00:00
chs 7a0d577e38 put RAS_DECL() back to declaring a function by default (since SH5
requires that).  instead, allow <machine/types.h> to override the
default definition and do so on hppa.
2004-07-19 03:12:31 +00:00
chs 6686a4e466 include bsd.own.mk so this builds again. 2004-07-19 01:41:26 +00:00
heas 420275788e Collect and save the FFB DAC version, which will be needed for the h/w cursor
since the Elite3d's logic is reversed.  From FreeBSD.
Fix comments in wsdisplay_accessops initialisation.
2004-07-19 01:04:35 +00:00
heas 381b4b602e Add comments for a few of the FFB registers.
From FreeBSD.
2004-07-19 01:00:48 +00:00
heas f509a0a9b2 If we are serial console, insert a delay just after switching from prom
i/o functions to talking to the sab directly, allowing any residual prom
output to drain.  There does not appear to be a prom "flush" function.

Adresses PR 26226.
2004-07-19 00:28:42 +00:00
chs 4ee5744873 add decl for hppa_ras(). de-__P. 2004-07-18 23:31:26 +00:00
chs 0d86a5cd52 add hppa support for RAS, context stuff, siginfo and scheduler activations:
- add a RAS hook in cpu_switch().
 - fill in the definition of struct mcontext.
 - implement cpu_upcall(), cpu_getmcontext(), cpu_getmcontext() and
   cpu_switchto().
 - for now, force the right priviledge bits and space regs in setcontext().
 - use correct values for __SIMPLELOCK_*.
 - move the user stack to start at a multiple of the pthread stack size
   so that libpthread can use the sp-masking trick.
2004-07-18 23:21:35 +00:00
chs 611ac30047 use mi_userret(). 2004-07-18 20:57:34 +00:00
chs 807ed3c6d2 store the kernel stack pointer for a sleeping LWP in its PCB instead of
in its trapframe.  this is needed for scheduler activations, so that we can
change the user stack pointer via the trapframe.  from openbsd.
2004-07-18 20:27:11 +00:00
tsutsui ef6be1434f Add options COMPAT_20. 2004-07-18 05:56:15 +00:00
tsutsui 7bd44baa54 Sync some entries with GENERIC. 2004-07-18 05:54:43 +00:00
tsutsui 07d4821916 Add options COMPAT_20. 2004-07-18 05:41:51 +00:00
heas 9fb2efa68d Use aprint_normal consistently. 2004-07-17 21:23:10 +00:00
yamt 1a4759a97e as i386 does, propagete errors from uvm_fault() to users of pcb_onfault
via v0 so that eg. read(2) can return more appropriate errors
rather than always EFAULT.

ok'ed by Jason Thorpe.
2004-07-17 12:21:20 +00:00
petrov b0a06b6467 Update uvmexp's traps and syscalls. Reviewed by Jason Thorpe. 2004-07-17 04:56:31 +00:00
tls f2621c88af Set the system clock (via Xen) in resettodr(), if domain 0.
This has a couple of beneficial effects:

1) The TOD time will be preserved across boots, as one would expect.

2) Newly-started VMs will get the correct time according to domain 0.
   Previously, since we never set the time back to Xen, each VM would
   get the uncorrected system clock time, never even seeing any
   changes made since the current startup.

I don't understand how XenoLinux slaves the other domain's clocks to
the Xen "wall clock" time that we're setting here, so I haven't even
tried.  But now we can run ntpd in each domain without a huge offset
at boot caused by never updating the wall clock time at all...
2004-07-16 22:36:33 +00:00
christos 935764b9b1 catch up with darwin new functions 2004-07-16 04:56:30 +00:00
manu f6a07159af typo 2004-07-15 20:21:55 +00:00
manu 1e147c565c Remove an outdated comment. 2004-07-15 11:51:56 +00:00
atatat f68a9f1ff2 Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
2004-07-15 03:53:44 +00:00
atatat 1ce3b064a0 Make uudecode into a tool that can be used to build a kernel and redo
the athhal-elf.o handling to take advantage of it.  This means that
bsd.files.mk is no longer included by Makefile.i386 so CFLAGS won't be
duplicated.
2004-07-15 03:35:20 +00:00
manu 51267dac7d Correctly set MSR static user bits on thread creation, as the calling
process might not have done it. This fixes crashes on thread creation.
2004-07-14 19:58:51 +00:00
uch 3e92a012a2 enable to power off and reset card. 2004-07-14 14:33:23 +00:00
tsutsui 3edbd6052a Add device-major for lpt. 2004-07-14 14:13:24 +00:00
tsutsui 7565fb7456 Now multicast on mec0 is confirmed working, so remove XXX comment
in mec_setfilter() function.

Thanks to Gerald Heinig for providing multicast test programs.
2004-07-14 09:45:47 +00:00
chs 8f2322ff01 remove an extra instruction I added with an overzealous cut+paste. 2004-07-14 07:23:10 +00:00
tsutsui c2de425692 Reenable lpt at mace since shared interrupt code was fixed in mace.c rev 1.2. 2004-07-12 13:45:40 +00:00
tsutsui 204f5095a2 Enable mec Ethernet at mace. 2004-07-12 13:16:14 +00:00
mycroft 09e877af0b Make this build again. 2004-07-11 20:01:04 +00:00
uch 87b3504abb cosmetic changes. (whitespace,<tab>) 2004-07-11 16:04:58 +00:00
msaitoh 38e0720545 Add Dothan 2004-07-11 15:22:05 +00:00
tsutsui fff3ff1b2c Add a working driver for O2 (IP32) on-board MACE MAC-110 Ethernet.
Note:
- I don't have any hardware docments for this device, so this driver might
  have some odd descriptions guessed by results of try-and-errors.
  (the only info I have is the Linux driver, but I think it doesn't describe
   the hardware specifications very well anyway)
- All RX packets and most TX packets are copied from/to buffers in the driver
  due to hardware restriction, so performance is not so good for now.
  Maybe RX packets can be directly DMA'ed to mbufs by the same method used
  of fxp(4), but the hardware seems to require 4kbyte aligned RX buffers.
- Multicast filter setup function is not tested yet (no info).
- Currently only tested on R5000 O2 with disabled L2 cache, so needs
  more tests on other CPU (i.e. RM5200/R10000/R12000) models.
- Currently BUS_DMA_COHERENT is not used for the device control data DMA
  to avoid performance issue on memcpy() against RX buffers, but it might be
  problematic when L2 cache is enabled or on R10000 models.
2004-07-11 03:13:04 +00:00
martin 9d71aa9ed6 Adapt to new sparc bus_space_tag_t world order. 2004-07-10 22:30:29 +00:00
nathanw 7e753fcf97 cyrix6x86_cpu_setup: Save and restore the original value of CCR3
across the "coma bug" workaround to avoid clearing the MAPEN bit if it
was originally set by firmware. This appears necessary for proper
functioning of SMM on Geode CPUs, and thus for proper emulation (ugh)
of access to certain PCI configuration registers or VGA register
spaces. With this change, VGA and soundblaster emulation work on Geode
NX1 systems.

This was also the underlying problem that led to the introduction of
the PCI_QUIRK_SKIP_FUNCn quirks in pci_quirks.c, which are no longer
necessary (and counterproductive if you want to use VGA or a
Geode-specific audio driver). See the thread "pci probe" on port-i386
in August 2003 (The Soekris 4801, apparantly the most popular
Geode-based NetBSD box, has neither VGA nor audio, which may explain
why this wasn't noticed at the time).
2004-07-10 21:25:53 +00:00
pk ea3030771a Use bus_space_tag_alloc(). 2004-07-10 20:37:07 +00:00
cube 120187b856 Add commented out EST_FREQ_USERWRITE to GENERIC_LAPTOP too. 2004-07-10 18:52:30 +00:00
cube ca1f4e2485 Add an option to allow any user to write to machdep.est.frequency.target,
which is very handy on a laptop to control EST through another program that
you don't necessarily want to run as root (in my case, gkrellm).

The option's name is EST_FREQ_USERWRITE, and is disabled by default.
2004-07-10 18:51:01 +00:00
uwe b65388fd20 Sync with relevant portions of GENERIC 1.160.
Uncomment FFS, as MFS needs it.
2004-07-10 12:17:09 +00:00
uwe afd4d28baa Sync with relevant portions of GENERIC 1.160.
options<space> police.
Uncomment FFS, as MFS needs it.
2004-07-10 12:12:55 +00:00
uwe 2ab14a9acf options<space> police. 2004-07-10 12:05:35 +00:00
tsutsui 43f42bdb21 Count mace interrupts by evcnt(9). 2004-07-10 08:47:33 +00:00
tsutsui 9864035c97 Remove a debug printf. 2004-07-10 08:44:42 +00:00
tsutsui 0d31ac4463 Make sure shared interrupts properly handled. 2004-07-10 07:39:13 +00:00