Commit Graph

46071 Commits

Author SHA1 Message Date
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
dsl
aa21c2800b When copying system call arguments into kernel space, either copy 4
arguments (enough for the majority of calls) or the maximum of 10 (8 plus
2 for sys__syscall).
Avoids all the unlikely-to-be-predicted-correctly in the unrolled loop.
This might be a problem if a thread's stack doesn't have the extra args
mapped - but that is extremely unlikely.
2007-11-21 00:15:08 +00:00
xtraeme
f0927a591f Put back again softintr_init() that was removed in rev 1.67, this fixes
the panics that people reported on current-users.

Tested and verified by Greg Oster.
2007-11-20 23:10:49 +00:00
pooka
b7737261b0 pud (userspace char/block drivers) build goo 2007-11-20 18:54:31 +00:00
ad
10564377d6 Use the softint API. 2007-11-20 17:13:04 +00:00
macallan
bc546cac16 don't bother looking for console-specific properties on devices that aren't
PCI_CLASS_DISPLAY
2007-11-20 17:06:18 +00:00
sborrill
d849e6b356 Add support for /boot.cfg configuration file in x86 boot loader.
This allows easy configuration of banner text, console device and timeout
as well as allowing menus of commands to be displayed. If /boot.cfg
is not present, then the existing behaviour does not change.

The sections in the boot loader source are surrounded by #ifdef SMALL
allowing this functionality to be removed if space is at a premium.
2007-11-20 15:37:36 +00:00
yamt
3a40ff100a put back IPL_IPI as it's still used. 2007-11-20 14:31:46 +00:00
yamt
c64de7a608 sync the prototype of cpu_switchto with sys/cpu.h. 2007-11-20 13:37:37 +00:00
ad
a72bb4a2f0 For the last time, compile! 2007-11-20 01:53:50 +00:00
ad
ce2527b4f4 IPL_IPI -> IPL_HIGH 2007-11-19 23:07:48 +00:00
ad
772ae8c190 G/C the PDP cache generation stuff. When allocating, just check for a valid
entry where nkpde currently points.
2007-11-19 21:46:51 +00:00
ad
59a5b82b4e Fix cpu_need_resched(). 2007-11-19 19:03:13 +00:00
ad
f73e8d8529 IPL_IPI -> IPL_HIGH 2007-11-19 19:02:20 +00:00
ad
73f1f51cda Fix cpu_need_resched. 2007-11-19 19:01:19 +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
417cd168ee Use the softint API. 2007-11-19 18:41:29 +00:00
ad
8fa4c02554 pccons was removed. 2007-11-19 18:29:25 +00:00
nisimura
a656f3f7be - SandpointX3 practices serial mode EPIC with the help of special
FPGA circuit.  pin A input only; pin B/C/D are not counted in.
- With EnCorePP1 heuristics find that i82559 (AD25) responds to EPIC 2.
2007-11-19 14:36:14 +00:00
jnemeth
e67de88d89 PR/37404 - Rui-Xiang Guo -- sync phy list with GENERIC 2007-11-19 11:04:46 +00:00
macallan
09f5c97a83 add genfb at pci
This should work with all firmware-supported PCI framebuffers but so far it's
only been tested with a PGX
2007-11-19 03:43:28 +00:00
macallan
56fd80e18a pull in ofw_subr.c for some convenience OpenFirmware routines 2007-11-19 03:26:04 +00:00
macallan
3cb71681aa do as macppc does and pass a bunch of parameters to PCI console framebuffers
With this we no longer need machine-dependent code in framebuffer console
drivers and we can use genfb at pci for otherwise unsupported graphics
chips as long as there's firmware support.
2007-11-19 02:52:56 +00:00
macallan
f8e81531fa put the physical address of each psycho's memory range into a device
property so we can look it up in device_register() later on
ok'ed by martin
2007-11-19 02:45:50 +00:00
ad
2783731b63 Set curlwp for the boot CPU before entering main(). 2007-11-19 02:12:11 +00:00
bouyer
29d8eba17f Properly setup the IO APIC for ISA and pciide compat interrupts too.
Makes ACPI kernels works again with pciide controllers in compat mode.
2007-11-18 18:44:17 +00:00
ad
2795528241 #include <sys/atomic.h> instead of local prototypes. 2007-11-18 18:09:10 +00:00
he
842094660b Add an overlooked define of IPL_ZS, matching with splzs(). 2007-11-18 14:01:28 +00:00
he
3d297e5d56 Ensure that file ends with a newline. 2007-11-18 13:52:44 +00:00
skrll
caacd2c467 Typo in comment. From OpenBSD. 2007-11-18 12:18:21 +00:00
tsutsui
b069af69e5 Remove complete items and a non cobalt specific one. 2007-11-18 07:14:57 +00:00
isaki
6ab6aa4fcf Use the same prototypes as libx68k.h. 2007-11-18 05:00:08 +00:00
isaki
ed972ce998 Correct filename in a comment. 2007-11-18 04:59:51 +00:00
dsl
6748a0d09a Remove syscall_fancy.
Use MI code for SYS_SYSCALL and SYS___SYSCALL.
Optimise code to minimise normal path.
2007-11-17 19:48:40 +00:00
macallan
376f378895 deal with macppc not defining OPENPIC 2007-11-17 18:02:42 +00:00
macallan
a11007a5fa have uninorth and bandit pull in their resp. IPI support stuff 2007-11-17 17:07:57 +00:00
macallan
40e17603bf sprinkle #ifdef OPENPIC so SMP-kernels without OpenPIC support build again. 2007-11-17 17:02:55 +00:00
ad
e15eca1b5a Make it compile. 2007-11-17 15:28:37 +00:00
skrll
64ad60da4f Remove the .note section when creating the a.out kernel image. 2007-11-17 09:07:42 +00:00
kefren
7ff1853b95 Initialize sensor's state
on behalf of xtraeme
2007-11-17 08:30:35 +00:00
martin
62901ed523 Initialize curlwp early 2007-11-16 23:46:20 +00:00
martin
223dc4f56f Define a simple variant of CPUINFO_FOREACH for non-MULTIPROCESSOR
kernels. The SMP variant does not work early in bootstrap, but I'll
leave that for Andrew to fix ;-)
2007-11-16 23:21:14 +00:00
xtraeme
31962fc6e5 Extend the envsys2 API (one more time, sorry) as defined in:
http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.
2007-11-16 08:00:11 +00:00
skrll
74c813c4e9 s/proc/lwp/ in comment 2007-11-16 07:36:10 +00:00
ad
33e2fcd08e Avoid doing rep; movsl with %ecx == 0, since it's expensive. Suggested
by dsl@.
2007-11-16 01:37:58 +00:00
ad
e4df9c1dd8 Disable TLB shootdown IPIs while in the debugger. Crashdumps may try to
use them, and all but one CPU is paused. Reported and tested by martin@.
2007-11-15 19:46:44 +00:00
ad
deae4f32c5 Remove support for 80386 level CPUs. PR port-i386/36163. 2007-11-15 19:18:32 +00:00
xtraeme
a73f1d379b Update for it(4) -> itesio(4) rename. 2007-11-15 12:58:28 +00:00
skrll
c85b38c0c8 Explicitly include <machine/reg.h> 2007-11-15 10:22:25 +00:00
joerg
611565d05b Remove GENERIC_LAPTOP and INSTALL_LAPTOP. To compensate, switch
bootfloppy-big to actually use INSTALL_LARGE (with ACPI) and 5 floppies.
2007-11-15 00:31:19 +00:00