Commit Graph

169054 Commits

Author SHA1 Message Date
dogcow 690e5f1c0b add matching END(). found via -Wa,--fatal-warnings 2008-04-22 04:47:44 +00:00
tls 822d920956 Commit a quick workaround for the not-power-of-two cache colors problem
pointed out by Simon (Simon's option #3): use the greatest power of two
which is a divisor of the desired number of cache colors.

This code might want to stay even after the cache probing code is fixed.
2008-04-22 02:23:05 +00:00
jmcneill fd495c5ce3 AcpiOsGetThreadId should return lwpid, not pid -- otherwise we always return
the same value! Fixes the AE_AML_MUTEX_NOT_ACQUIRED issue when evaluating
_BST on ASUS Eee PC. Who knows what other mysterious bugs this has caused
over the years...
2008-04-22 02:02:50 +00:00
dyoung d5063688b1 Delete some gratuitous casts, s/(char *)//. 2008-04-22 00:14:20 +00:00
jmcneill de45d1c96b Cleanup uhub autoconfiguration messages. 2008-04-21 23:31:18 +00:00
njoly d8f896655c Add LINUX_IPC_64 support for LINUX_IPC_SET in shmctl. Required, at
least, for amd64 which use LINUX_IPC_FORCE64.
2008-04-21 22:57:06 +00:00
njoly f1bd64daf3 Rename LINUX_SHMCTL_FORCEIPC64 define to LINUX_IPC_FORCE64. 2008-04-21 22:38:18 +00:00
veego 0f11cf3c0e ${gen_files} was splited into:
${gen_files_k5} ${gen_files_cms} ${gen_files_rfc2459}
 ${gen_files_pkinit} ${gen_files_pkcs12} ${gen_files_pkcs8}
 ${gen_files_pkcs9} ${gen_files_digest} ${gen_files_kx509}
Change CLEANFILES to reflect that change.
2008-04-21 21:30:59 +00:00
cegger a76bb1857c regen. 2008-04-21 21:18:59 +00:00
cegger a9cad030a2 Phison Electronics, vendor of my USB Stick 2008-04-21 21:17:51 +00:00
martin 51905d0a31 Be more precise when matching the boot device - with ata disks and
atapibus cdrom drives both using the same "target/lun" space, we could
confuse cdrom@0,0 for disk@0,0. Now match the complete string (we still
don't care how firmware calls a device, just rely on it being consistent).

Problem noticed by Jonathan A. Kollasch.
2008-04-21 21:00:23 +00:00
dsl 9890613c15 Fix integer random numbers when bounds given in the wrong order. 2008-04-21 20:33:41 +00:00
cegger 9427277807 add acpitz at acpi 2008-04-21 20:20:12 +00:00
tls 6a70e45954 Work around PR38480 by making it possible to omit options MTRR from
amd64 INSTALL kernels -- and doing so.  At least you can now get an
INSTALL kernel onto a box with this odd MTRR configuration to debug it.
2008-04-21 19:06:42 +00:00
tls 8b5e4b7c91 As suggested by rmind, do not check return status of KM_SLEEP/PR_WAITOK
allocations.  A little hair-raising but it does make the code easier to
read.
2008-04-21 19:05:41 +00:00
jmcneill 3d052baa7f Patch from Intel that addresses an issue with implicit returns when the
interpreter is in slack mode:

  http://www.moblin.org/pipermail/devel/2008-April/000017.html

Fixes PR#38469 by Juergen Hannken-Illjes
2008-04-21 18:59:42 +00:00
plunky 7c883dd79e HAVE_IPV6 is defined by libkrb5/Makefile when USE_INET6 != "no" 2008-04-21 18:31:17 +00:00
veego 638a0ef64f Apply the change in rev 1.15 also to the non PAM code. 2008-04-21 17:37:51 +00:00
christos ab3d20195f PR/28627: Andreas Gustafsson: Try 5 times to calibrate before failing. Should
fix issues with CPU's that don't produce consistent timing output due to code
morphing or power-savings.
2008-04-21 15:23:35 +00:00
cegger 20161b7289 Access Xen's vcpu info structure per-CPU.
Tested on i386 and amd64 (both dom0 and domU) by me.
Xen2 tested (both dom0 and domU) by bouyer.
OK bouyer
2008-04-21 15:15:33 +00:00
xtraeme a7315e0fc1 Misc cleanups from Geoff Wing. 2008-04-21 14:25:48 +00:00
ad 96947a72d2 Fix typo, PR misc/38474. 2008-04-21 13:00:12 +00:00
ad 6bd54792e3 Regen. 2008-04-21 12:57:00 +00:00
ad a2249ef75c Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE. 2008-04-21 12:56:30 +00:00
ad 45e89afb6f Unneeded kernel_lock frobbing. 2008-04-21 12:51:37 +00:00
ad 4d9ff4744f Fix TIOCSIG handling for SIGINFO. 2008-04-21 12:49:20 +00:00
yamt a2c6efe92f ttygetinfo: fix a locking error in rev.1.215. 2008-04-21 11:56:01 +00:00
ad d9bace2a92 Acquire kernel_lock directly in LFS syscalls. 2008-04-21 11:45:34 +00:00
martin 26190df844 Fix minor device_t split fallout. 2008-04-21 08:16:12 +00:00
dyoung 197afa999c Change int to bool in a couple of places. 2008-04-21 05:33:55 +00:00
dyoung babbbc034d s/(caddr_t)// 2008-04-21 02:10:45 +00:00
dyoung 246781acda Change bzero calls to memset calls. 2008-04-21 02:08:09 +00:00
ad 185116891b Don't send signals from a hardware interrupt handler. XXX This is still
dodgy, because sc->sc_asyncproc can exit and we don't find out about
that.
2008-04-21 00:30:21 +00:00
tls 002d314a9b Don't use mtrr functions if not options MTRR. There are many more instances
of this bug, particularly in the COMPAT_FOO32 code.
2008-04-21 00:18:39 +00:00
ad e655812d5c Regen. 2008-04-21 00:14:22 +00:00
ad 08b44dd8b9 timer fixes for PR 37093:
- Fix serious concurrency problems, making the code MT and MP safe in
  the process.
- Don't allocate memory or inspect process state from hardclock().
2008-04-21 00:13:46 +00:00
wiz 160b1e8f05 texinfo-4.12 is out. 2008-04-20 23:49:03 +00:00
ad 76f153e120 sync() a couple of times to benefit diagnosis of sloppy kernel code that
crashes during boot to multiuser.
2008-04-20 23:40:31 +00:00
oster 6fef1b6c62 Cleanup function prototypes. No functional change. 2008-04-20 20:46:41 +00:00
oster 5654bb482d Introduce a function to return the default head separation for RAID 1
sets.  This helps ensure that the sliding status window (coming soon!)
for reconstructs will always be correct.
2008-04-20 20:42:32 +00:00
plunky 9abc85a7e2 use __arraycount macro instead of rolling our own 2008-04-20 19:34:23 +00:00
ad 573e08da0c ttys are allocated/freed infrequently enough that there is no point having
a seperate pool for them.
2008-04-20 19:30:13 +00:00
ad 664f91e474 Improve ^T / SIGINFO handling:
- Restore code removed during LWPification.
- Don't touch proc state from a hardware interrupt handler.
- Fix the locking.
2008-04-20 19:22:44 +00:00
rafal e43f18015f Fix detection / attachment of CF / PCMCIA cards present at boot-time. This
was broken by one of the early vmlocking merges, which removed the kthread
that did the initial detection / attachment and instead called the code
directly from the PCMCIA controller attach method.

Submitted in PR port-hpcarm/37227 by Peter Postma; I've tweaked it ever-so-
slightly.
2008-04-20 16:47:52 +00:00
jmcneill 865860bc30 Improve error reporting when we fail to enter a sleep state, eg:
acpi0: entering state 1
  acpi0: ACPI S1 not available on this platform
2008-04-20 16:26:36 +00:00
rafal 6583c572da Enlarge the number of L2PTs used for mapping the kernel since our kernels
have gotten fatter with age and even the stock kernels were bigger than the
code could handle.

Thanks to Jason Mitchell for sending me a Jornada 720 so I could actually
test this.
2008-04-20 16:19:46 +00:00
tsutsui bd8476b16b Misc cosmetics. 2008-04-20 15:44:01 +00:00
tsutsui fa0277bb60 - use uint8_t instead of u_char for unsigned byte values
- make cs_softreq volatile
2008-04-20 15:42:47 +00:00
scw 3fd7f57e57 There's really no need to switch VM contexts within cpu_switchto() as
MI code always calls pmap_deactivate/pmap_activate on context switch.

Instead, just record the last active lwp (or NULL if it exited) and
defer switching VM context to pmap_activate(). This saves an additional
function call overhead in cpu_switchto().

While here, g/c unused cpuswitch.S local .Lblock_userspace_access.
2008-04-20 15:42:19 +00:00
scw 9d52faae48 Pull in a couple of fixes from FreeBSD, the first of which addresses a
failure of wpa_supplicant(8) to re-key promptly, as reported in
http://mail-index.netbsd.org/tech-net/2008/04/18/msg000459.html

- Make bpf's read timeout work more correctly with select/poll.

- A fix for catchpacket() which delays calling bpf_wakeup() until
  the state has been updated.
2008-04-20 15:27:10 +00:00