Commit Graph

157368 Commits

Author SHA1 Message Date
thorpej 8f326e8290 - Define LOCK_CAS_CHECK() in m68k/frame.h (there because it operates on
a clockframe).
- Call LOCK_CAS_CHECK() in clock_intr() (noted by Izumi Tsutsui).
2007-03-12 02:51:03 +00:00
matt b3cd0abcf6 Shrink VAX kmutex from 12 bytes to 8. Fix various LOCKDEBUG/DIAGNOSTIC
problems.
2007-03-12 02:22:43 +00:00
matt 0b7ea235a3 Fix softintrs (boolean test problem). Spotted by mhitch. 2007-03-12 02:21:22 +00:00
matt 57257364a0 Define/use MUTEX_COUNT_BIAS for those implementations that need one (like
vax).
2007-03-12 02:19:14 +00:00
uwe 11957bf405 Note in that TAS.B in inline asm clobbers "cc".
Use MOVT instead of clear+rotate with carry in __cpu_simple_lock_try.
2007-03-12 01:33:50 +00:00
uwe d96c2a32bc Use simple mutexes. This file is effectively a copy of arm's one now. 2007-03-12 00:57:13 +00:00
uwe 7983f30ad7 Do cpu_exit with proper locking.
Rename assembly cpu_exit to cpu_do_exit and make a C version of
cpu_exit() to do proper locking.  While here, g/c switch_exit entry
point and don't call lwp_exit2 from cpu_exit.
From ad@

Completes PR port-sh3/35971 - my Jornada now boots to multiuser with a
LOCKDEBUG kernel.
2007-03-12 00:32:56 +00:00
uwe f3c67932b4 Cosmetic. Group function declarations and variable definitions. 2007-03-12 00:12:29 +00:00
uwe c24277d5f4 Factor out code to save processor state to pcb->pcb_sf switchframe
into a macro.  While here, clarify l->l_md.md_pcb->pcb_sf
vs. l->l_md.md_pcb confusion with proper naming and some comments.
Idea from OpenBSD.
2007-03-11 23:54:03 +00:00
ad a3128f66df Adjust previous: move the release of specificdata after the very last
file system operation.
2007-03-11 23:40:58 +00:00
ad 1bf149ba4c exit1: destroy the proc/lwp specificdata after calling uvm_proc_exit, as
file systems can still be using it.
2007-03-11 23:19:49 +00:00
christos 31b5ea99cb fix missing initializers. 2007-03-11 22:25:48 +00:00
ad 5941740892 Remove a use of lockmgr/LOCK_INITIALIZER. 2007-03-11 22:16:32 +00:00
ad 2dc89bb0bd Remove #include <machine/vmparam.h>. 2007-03-11 22:11:02 +00:00
ad 0b43c20288 Remove useless cast. 2007-03-11 22:07:32 +00:00
xtraeme 25b63d499e Forgot to bump year too. 2007-03-11 22:03:09 +00:00
xtraeme 2fdb9c6dc1 Mention new supported chips, bump date. 2007-03-11 21:59:09 +00:00
ad f96f2e2a7f Add the LWP's runtime to kinfo_lwp. 2007-03-11 21:38:38 +00:00
ad 9a92ddadc8 Put back mtsleep() temporarily. Converting everything over to condvars
at once will take too much time..
2007-03-11 21:36:48 +00:00
xtraeme f8fabb9a9e Explicitly initialize lm_sensor->rfact for every sensor's chip. 2007-03-11 21:23:22 +00:00
rmind fd58eec0ea Sync scheduler with reality:
- Separation of context switching and thread scheduling
 - Generic scheduler API for modular implementations
 - New scheduler supporting
OK by matt@
2007-03-11 21:05:57 +00:00
ad 7a902dfca5 PR port-sh3/35971: Mutex error on SH3 DIAGNOSTIC kernels 2007-03-11 20:09:03 +00:00
dsl 6803111cb3 Fix amd64 build for compat sys_stat() changes.
This file isn't included in amd64:GENERIC
2007-03-11 19:36:37 +00:00
dsl 5959b4cbc7 Add a tentative definition for 'struct statvfs'. 2007-03-11 19:34:55 +00:00
apb 7c0e506d3c Adapt to the new MAKEDEV interpretation of -M by passing -MM.
Also pass "-ppax" in an attempt to get improved performance,
but this doesn't really work in the typical case, because the
install ramdisk image contains a version of pax(1) that doesn't
support the -M flag.  (MAKEDEV detects the failure and falls back
to using mknod(8) as usual.)
2007-03-11 19:02:04 +00:00
christos b127b0cff4 more caddr_t lossage 2007-03-11 18:37:46 +00:00
he 881084c9ed Well, as pointed out by is@ for the amiga port, the added indirection
is wrong.  Restore previous behaviour, and add the now appropriate cast.
2007-03-11 17:39:02 +00:00
he 228e24a143 Correct a thinko of mine in the previous change, pointed out by
is@.  Even though the argument type changes as an effect of the
caddr_t removal, there really is no need to indirect where we didn't
before.  Instead, add the appropriate cast.
2007-03-11 17:34:37 +00:00
thorpej 62509c00e0 Actually store the new value in the RAS _lock_cas(). Noticed by Izumi Tsutsui. 2007-03-11 16:46:52 +00:00
apb 1f33f6e66f Test whether pax works; if not, fall back to mknod.
This is intended for use on install media that might not have pax.
2007-03-11 16:08:11 +00:00
apb b76e2d3d5a Document lack of support for -M and -p flags. 2007-03-11 15:54:54 +00:00
apb 76426884d4 Document "-p pax" and "-M -M". 2007-03-11 15:54:10 +00:00
apb f5b5e05c27 * Add "-p pax" flag, to create all device nodes at once using pax,
instead of one by one using mknod.  This is much faster (speed
  increases of up to 20 times have been observed, but 3 to 5 times is
  more common).
* One "-M" flag will create the mfs file system but not redirect output
  to a temporary console; "-M -M" will also redirect output.
* Change the way we accumulate options to pass to MAKEDEV.local.
2007-03-11 15:52:30 +00:00
kent b7fab1d1f2 * codec names for Realtek ALC262, ALC268, ALC861, ALC861-VD-GR,
ALC883, ALC885, and ALC888
* DAC/ADC group definitions for Realtek ALC861, ALC861-VD-GR,
  ALC883, ALC885, and ALC888
2007-03-11 15:42:00 +00:00
xtraeme 0562751ee3 Update for the nslm7x driver:
* For each supported chip, there's a struct lm_sensor array
  that specifies the sensor data, like reg, bank, descr, rfact.

* Rather than having 3 functions to setup the voltage, temp and fan
  sensors, just have one that will do all the three steps looking at
  its struct lm_sensor members, simplifying a lot the code.

and more things that I can remember, our code now is synced with
OpenBSD, IMHO much better to understand and maintain in the future.

Supported chips added with the new code include:

* Winbond: W83627EHF, W83627DHG, W83637HF, W83783S, W83791D, W83791SD,
           W83792D.
* Asus AS9912F.

My new mobo with the Winbond W83627DHG chip correctly reports
the values now:

lm0 at isa0 port 0x290-0x297: Winbond W83627DHG Hardware monitor

[juan@nocturno][~]> envstat -r
      VCore:      1.232 V
       +12V:     12.091 V
      +3.3V:      3.264 V
        +5V:      4.945 V
       VBAT:      3.728 V
System Temp:     36.000 degC
   CPU Temp:     29.500 degC
   Aux Temp:     22.000 degC
    CPU Fan:       1591 RPM
[juan@nocturno][~]>
2007-03-11 15:03:08 +00:00
kent df732e91f1 don't start dmesg lines with \t to do grep easily 2007-03-11 14:34:04 +00:00
kent 88b9b15961 remove DPRINTF() in generic_mixer_init() because they are useless
in many cases.
2007-03-11 13:41:18 +00:00
kent d7d522ea80 - Add jack-sense code for STAC9220 in some DELL models (currently disabled)
- Add DAC/ADC grouping for AD1988
2007-03-11 13:34:40 +00:00
kent c88ac48ab9 reviced Intel Mac support code (currently disabled)
PR#34880
2007-03-11 13:31:36 +00:00
apb 41bcdc8c57 Bump date for previous. 2007-03-11 10:51:03 +00:00
pooka 69011e122a test that write to middle of file doesn't modify size 2007-03-11 10:09:17 +00:00
pooka 19dd9ef4ee don't shrink file size when writing to the middle of an existing file
(mandatory AsiaBSDCon live commit)
2007-03-11 10:08:37 +00:00
mlelstv 99fe08f401 print a size_t value with a size_t format.
The cast is necessary in case someone redefines RT2573_TX_DESC_SIZE.
2007-03-11 09:38:24 +00:00
macallan 5b56050bcf whitespace police, some cleanup - no functional changes 2007-03-11 08:52:12 +00:00
isaki e1947f9eb2 Include appropriate header file. 2007-03-11 08:22:33 +00:00
isaki d30ec9eee3 white space, indent and KNF. 2007-03-11 08:09:23 +00:00
isaki 64e649bb89 Merge #ifdef _KERNEL stuff into one place.
Suggested by tsutsui@.
2007-03-11 07:57:37 +00:00
isaki 2a35e6919b Remove #ifdef _KERNEL since this file is no longer exported.
Suggested by tsutsui@.
2007-03-11 07:57:05 +00:00
tsutsui 1acf24261d Print correct softipl number. 2007-03-11 06:34:53 +00:00
tsutsui 0ed62df703 Fix a comment. 2007-03-11 06:34:24 +00:00