Commit Graph

96764 Commits

Author SHA1 Message Date
pgoyette
691525189c It's not necessary to #include "sysmon_envsys.h" any more. 2008-10-09 10:25:47 +00:00
pgoyette
65d9dac7ee sc->sc_parent was removed because it was never used, so don't bother
trying to set it.
2008-10-09 03:11:29 +00:00
pooka
02100cd42d Wrap potentially blocking operations to drop and retake the kernel
giant lock.
2008-10-09 01:19:06 +00:00
pooka
01f8a524d4 Rewrite kernel lockus maximus handling to be correct. 2008-10-09 01:17:48 +00:00
pooka
ae509fabab Use atomic op to get next xid. Initialize value with arc4random()
at nfs init time instead system time based trickery intermingled
with the runtime code.

le bouef: kills last simple_lock from nfs
2008-10-09 00:11:39 +00:00
pooka
fb58d5d6ec #error if WABPL_DEBUG_INODES is defined. That code has bitrotted
more than casu marzu cheese.
2008-10-08 22:58:56 +00:00
joerg
14f73bd778 Move functionality for preparing the kernel (including XMS support) into
a new function common_load_kernel.
2008-10-08 22:57:28 +00:00
joerg
fb462122c2 Move initialisation of boot_argv after the full loading of the kernel,
directly before loading modules.
2008-10-08 22:46:19 +00:00
joerg
2230e7f0d7 Setup module_base in module_init(). 2008-10-08 22:42:38 +00:00
oster
c68af69bbe Need to include sys/termios.h here too. 2008-10-08 16:11:23 +00:00
christos
f9657a08ed return ENOTTY instead of EOPNOTSUPP for ioctl(/dev/null, TIOCGETA)
from Andy Shevchenko
2008-10-08 14:42:56 +00:00
pooka
ea7f1c6709 check return value of rump_init() 2008-10-08 11:01:28 +00:00
pooka
f4ce96e86b check rump_init() return value 2008-10-07 23:22:05 +00:00
pooka
5877c6dc5e Embed library build version into the init call and refuse to init
if they don't match.  In other words, this is a lightweight library
major number.
2008-10-07 23:16:59 +00:00
pgoyette
94ba92bdd7 Increase accuracy in nominal voltage table. 2008-10-07 22:50:33 +00:00
pgoyette
379328cb93 Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.
2008-10-07 19:32:29 +00:00
pgoyette
7a91225cc4 Move all platforms to new dbCool driver in preparation for removal of
chip-specific drivers
2008-10-07 12:43:31 +00:00
rmind
337b081fed - Replace lwp_t::l_sched_info with union: pointer and timeslice.
- Change minimal time-quantum to ~20 ms.
- Thus remove unneeded pool in M2, and unused sched_lwp_exit().
- Do not increase l_slptime twice for SCHED_4BSD (regression fix).
2008-10-07 09:48:27 +00:00
rmind
68121d6afa - Allow changing of kern.ipc.shmmax, just to avoid confusion.
- Change type of kern.ipc.shmmax to CTLTYPE_QUAD.
2008-10-07 09:35:03 +00:00
rmind
b5662849b0 Add a note that SysV IPC parameters could be changed dynamically. 2008-10-07 09:30:04 +00:00
pooka
d9f75a894c nuke outdated comment 2008-10-07 01:20:37 +00:00
skrll
713b171bb9 Return early if size == 0 in ie_gsc_memcopy{in,out} 2008-10-06 15:57:50 +00:00
njoly
249f1f85c5 Regen. 2008-10-06 14:53:58 +00:00
njoly
33b4e768ba Cleanup. Reduce diffs against netbsd32 syscalls.master.
- Remove const keyword for pointer types.
- Update some argument types.
2008-10-06 14:53:01 +00:00
ad
139d645eee PR kern/39681 ddb doesn't work with new MODULAR modules
Complete initialization of new symbol table record.
2008-10-06 11:49:44 +00:00
ad
1b31761afa kobj_read: plug a leak. 2008-10-06 10:46:58 +00:00
nakayama
4d0ec49dcd Conform previous commit to KNF, pointed out by ad@. 2008-10-06 10:45:47 +00:00
jmcneill
04fec95922 ehci_free_itd: use LIST_INSERT_HEAD rather than
LIST_INSERT_AFTER(LIST_FIRST(..), ..) when returning itds to the freelist
to prevent a crash when the freelist is empty. Reviewed by Jeremy Morse.
2008-10-06 02:21:50 +00:00
pgoyette
aef4db128d Various clean-ups:
1. Trange sysctl's belong to the temp sensors, not to the fan controllers
  2. Trange really describes a slope on many chips, so modify the description
  3. Most of the sysctl's are read/write even if the chip's config is
     locked;  reflect that in the CTLFLAGs
  4. Apply correct 'nominal' values for voltage sensors/limits, specify
     them in microVolts, and calculate once rather than each time needed
  5. Be more consistent in register names - for example, use VCC instead of
     SUPPLY_VOLTAGE, to match VCC_LOWLIM & VCC_HIGHLIM
  6. Type of dbcool_islocked() should be bool, not int
  7. Reduce some unnecessary code indentation
  8. Define Vtt and Imon, and add ADT7490 support (excluding PECI sensors)
  9. Split the huge (250+ lines) dbcool_setup() function into a few smaller
     routines for better readability
 10. Update sensor tables for ADT7476 and ADT7468 - these chips have five
     voltage sensors, not two
 11. Adjust flags for ADT7463 and ADM1027 - these chips can monitor CPU
     VID data bits
 12. Update man page
2008-10-06 01:35:35 +00:00
pooka
e15435197f Make libnfs compile. 2008-10-06 01:00:57 +00:00
pooka
f4c6b13e6b Locally descend into new directories (build does not descend here yet). 2008-10-06 00:32:02 +00:00
pooka
61e869be3c Implement a virtual userspace networking interface. This is required
for any sensible operation when running the entire TCP/IP stack in
userspace (as opposed to libsockin which uses host kernel networking
to provide PF_INET).

While this basically works (although it is quite barebones), it
depends on some bit of cleanup in librump and is not built by
default yet.
2008-10-06 00:30:32 +00:00
pooka
86cf71862e Provide the TCP/IP as a rump library. 2008-10-06 00:27:48 +00:00
pooka
8fb9f99bba Provide essentially sys/net as a rump library. 2008-10-06 00:27:06 +00:00
pooka
b9a8d2f75a hardclock() itself doesn't schedule callout softintrs any more,
so update comment - less is more.
2008-10-05 21:57:20 +00:00
jmcneill
6c26172841 Fix issue where multi-transaction isoc endpoints were forced to single
transactions, from Jeremy Morse.
2008-10-05 21:31:39 +00:00
macallan
8133f9d1ce fix bus_spacification botch
from Marco Trillo in PR39696
2008-10-05 05:01:08 +00:00
nakayama
226eb3d083 pmap_cache: use BLOCK_SIZE as alignment.
pmap_pv_cache: use large size groups (PR_LARGECACHE) like x86.
2008-10-05 02:07:39 +00:00
nakayama
15985b5612 - in flushing cache, use 32 as increment/decrement value to match the
cache line size.
- remove useless restore of %asi.
- remove nop in delay slot if we can.
2008-10-05 02:00:53 +00:00
nakayama
8ce40a410b struct cpu_info: reorder member to avoid a padding. 2008-10-05 01:53:05 +00:00
bouyer
90f9293b21 Add missing splx(). Funny that it didn't cause issues ... 2008-10-04 21:00:28 +00:00
chs
1f98baea49 in cpu_hatch(), set PIR when the current value is not what we need
rather than only when it's zero.
2008-10-04 17:20:06 +00:00
pooka
308b8af180 POOL_INIT -> pool_init 2008-10-04 00:09:34 +00:00
njoly
1b1270d3b5 Compat linux/linux32 nice(2) fix. The syscall argument is an increment
to be added to the current nice value, not an absolute value to be
set.
2008-10-03 22:39:36 +00:00
pooka
224186c110 Fix pointer size typo - affects only debug output.
Henning Petersen, PR lib/39689
2008-10-03 18:33:06 +00:00
pooka
e0b14794fc Hallo, pool_init(). Auf wiedersehen & byebye, link set POOL_INIT(). 2008-10-03 16:22:33 +00:00
rmind
97561001a3 Replace more intptr_t to uintptr_t when casting VA. 2008-10-03 14:52:11 +00:00
bouyer
473d83f87f Make sure the adapter is ready to accept FISs before bringing the PHY up.
Wait for the BSY bit to clear in the status register.
Makes the cdrom drive probe properly on a ATI SB600 controller in AHCI
mode.
2008-10-03 13:02:08 +00:00
adrianp
2f48b72832 Fix for CVE-2008-3530 from matt@
Implement improved checking for MTU values on ICMP 'Packet Too Big Messages'
2008-10-03 08:23:06 +00:00
pooka
ad9bbd7b26 Add a very simplistic PF_INET/SOCK_DGRAM domain/proto implementation,
which delegates the work to host kernel sockets.  This does not
run the entire kernel TCP/IP stack in userspace and therefore does
not require the ability to send or receive raw packets.  This
implies that root priviledges are not required.  As already said
above, only supports UDPv4 for now.  Extending should be easy.
2008-10-02 21:59:19 +00:00