Commit Graph

164997 Commits

Author SHA1 Message Date
yamt 949e16d902 use binuptime for l_stime/l_rtime. 2007-12-22 01:14:53 +00:00
yamt bf162a4cf7 vmem_alloc: round-up size only when necessary. suggested by Andrew Doran. 2007-12-22 01:11:37 +00:00
yamt 2294b0bcb6 procfs_douptime: simply use microuptime() instead of a mysterious calculation. 2007-12-22 01:06:54 +00:00
yamt 0d13423925 procfs_docpustat: g/c a write-only variable. 2007-12-22 01:04:55 +00:00
dyoung 45c4dfeeb5 Use __arraycount(). Do not needlessly import net80211/ieee80211_node.h. 2007-12-22 00:58:15 +00:00
dyoung 1b8630a278 Cosmetic: KNF. Shorten staircases. Delete some whitespace at line
ends (makes navigation with vi more reliable).
2007-12-22 00:57:15 +00:00
tsutsui 3e9910f3b8 Disable a sanity check output buffer != NULL in _STANDALONE case.
Some kernels are loaded at address 0x0 by bootloaders and
output buffer address could be zero in such case.

Fixes "read text" errors on loading install floppy of NetBSD/news68k 4.0,
reported by KIYOHARA Takashi on port-news68k.
2007-12-22 00:52:03 +00:00
dyoung 36ed1d69c0 Use #ifdef _KERNEL to keep kernel-only definitions out of userland. 2007-12-22 00:51:07 +00:00
dyoung 6528dd9d56 Bug fix: at the top of layer_bypass(), save a pointer to the mount
point for re-use at the bottom, instead of trying to re-read the
mount point from a potentially vrele()'d vnode.
2007-12-22 00:48:46 +00:00
dyoung b558d4b56c Remove the remnants of the powerhooks. 2007-12-22 00:41:01 +00:00
dyoung 356cc80ff6 It makes practically no functional difference, but add curly braces
where they were intended.
2007-12-22 00:39:47 +00:00
yamt ad5800688c reduce #ifdef __HAVE_TIMECOUNTER. 2007-12-22 00:35:32 +00:00
yamt 5ffcee498d provide binuptime etc for !__HAVE_TIMECOUNTER. 2007-12-22 00:34:37 +00:00
tsutsui 7bc26029c9 Remove unused macro. 2007-12-22 00:28:21 +00:00
yamt 16d01d9a96 prtstat: PRIdMAX -> jd as suggested by Joerg Sonnenberger. 2007-12-22 00:23:36 +00:00
jmcneill a992c95cdd Fix handling of directed pmf events. 2007-12-21 23:49:55 +00:00
matt 1f3ca215ea Also make sure the first is at 68 bytes long. 2007-12-21 23:49:09 +00:00
njoly 90dee75246 Regen for getfsuid/setfsgid syscall exchange. 2007-12-21 22:28:41 +00:00
njoly 035a2e040b - Fix setfsuid to return uid on success.
- Replace getfsuid, which never existed on Linux, by correct setfsgid
  syscall.

ok by christos and dsl.
2007-12-21 22:26:20 +00:00
jmcneill 4ec3c2b1cd Add support for the WLAN / Bluetooth switch. 2007-12-21 22:14:03 +00:00
xtraeme 6d771ab8b4 Register a pmf(9) power handler... ok jmcneill@. 2007-12-21 21:52:10 +00:00
xtraeme 4bb97c0a3e After comments from joerg@, backout previous and use 'cpuN'. 2007-12-21 21:36:22 +00:00
jmcneill aa518c7bc8 Hook Thinkpad temperature sensors into envsys:
$ envstat -d thinkpad0
TMP0:     46.000 degC
TMP1:     39.000 degC
TMP2:     32.000 degC
TMP3:        N/A
TMP4:     50.000 degC
TMP5:        N/A
TMP6:     29.000 degC
TMP7:        N/A
2007-12-21 21:24:45 +00:00
jmcneill f5210660c0 Add acpiec_bus_{read,write} and acpiec_get_handle, for use in other
device drivers.
2007-12-21 21:22:54 +00:00
dsl 89a3551a18 Create the trap/syscall frame space for all the registers in one go.
Use the tramp-frame offsets (TF_foo) for all references to the registers.
Sort the saving of the GP registers into the same order as the trap frame
because consequetive memory accesses are liekly to be faster.
2007-12-21 20:43:45 +00:00
jnemeth c9b9889ada add back #include <sys/socket.h> from Scott Ellis on current-users@ 2007-12-21 20:42:03 +00:00
dsl 2cdb58761e If make can't find a rule to create a file it needs to satisfy a rule
that came from .depend then just output a message and contine.
2007-12-21 20:32:24 +00:00
snj 787df2d0dd Bump date for bzip2. 2007-12-21 19:45:33 +00:00
dsl 9b0b44bbdc Change the xen CLI() and STI() defines to only use one scratch register.
As well as saving an instruction, in one place it saves a push/pop pair.
2007-12-21 19:18:13 +00:00
matt 6f23ff186c Prevent TCP blind data attacks by not allowing non-initial fragments to
start at less than 68 bytes (minimal fragment size).
2007-12-21 18:58:55 +00:00
jmcneill c48902ebaf Handle notifications in a separate thread, and ensure that the BIOS doesn't
try to play trick with us when we are trying to manage the brightness
keys.
2007-12-21 18:43:39 +00:00
jmcneill ef8922785d Convert AcpiOsSleep from using tsleep to cv_timedwait_sig 2007-12-21 18:42:38 +00:00
dsl 88aa2c71d3 Enable LINUX and LINUX32 emulation. 2007-12-21 18:31:12 +00:00
dyoung eafb0f479a Initialize and destroy the ATH_LOCK. 2007-12-21 18:26:13 +00:00
dyoung 1d18d8049c Do not embed a struct device in rtw_softc any longer. Register
both pci and cardbus attachments with CFATTACH_DECL_NEW().  Access
the softc through the device_t using device_private().

While I'm here, change a couple of KASSERT()s about the Rx buffer
length to a warning.
2007-12-21 18:22:43 +00:00
xtraeme 8b13cd5ed3 binutils-2.18 is the latest and greatest. 2007-12-21 18:04:18 +00:00
joerg 45f2572a92 Add virtual i8254 for x86emu. 2007-12-21 17:45:50 +00:00
dsl f00ef3a2d4 Fix prototypes used when NTP is not in use.
Pointed out by Robert Swindells.
2007-12-21 17:36:09 +00:00
jmcneill eedb1a1f01 Typo in previous. 2007-12-21 16:38:59 +00:00
jmcneill ea50d249d2 Handle key repeat, and only match if MHKV returns an HKEY version we have
a chance of supporting.
2007-12-21 16:38:02 +00:00
joerg e9bc92e889 lock_stubs.S needs assym.h. 2007-12-21 16:23:05 +00:00
jmcneill 435aa09b79 Note thinkpad(4) addition 2007-12-21 15:21:41 +00:00
jmcneill ebdccda407 Add thinkpad at acpi 2007-12-21 15:18:28 +00:00
jmcneill 5b0f734d51 Add Thinkpad ACPI driver, for controlling hotkeys and display brightness. 2007-12-21 15:15:19 +00:00
drochner 200f66ee6b define the SSSE3 feature flag bit and print out all known bits 2007-12-21 14:57:22 +00:00
joerg 3fca1a6505 Document ISO format "cal 2007-12", leave "cal 2007/12" undocumented
intentionally.
2007-12-21 14:21:42 +00:00
agc bfdff00bed Regenerate autoconf files for the portable version 2007-12-21 13:06:03 +00:00
skrll 2b4f402919 Improve ddb backtraces by:
- Starting with the right set of fp, pc, and rp in all cases.
	- Dropping the argument printing stuff as it could never work.
	- Backtrace through traps and decode syscalls properly by
	  making sure the trapframe is at a known offset from the stack
	  pointer in both cases. Also, ensure that the frame pointer
	  is zero so that we can detect traps.
2007-12-21 13:05:26 +00:00
ad 5b42fe1209 KM_NOSLEEP -> KM_SLEEP for clarity. 2007-12-21 12:05:39 +00:00
ad 6ef6e00632 KM_NOSLEEP -> KM_SLEEP 2007-12-21 12:04:19 +00:00