Commit Graph

162414 Commits

Author SHA1 Message Date
christos 03687f1fb0 remove null test; it is not necessary as we always look at the next element.
from Anon Ymous
2007-10-03 19:07:43 +00:00
christos 0bfe3e6189 - int -> size_t
- off by one in \n printing [Anon Ymous]
- return when the end of the array is reached.
2007-10-03 17:45:47 +00:00
veego d7415fbd43 Add support to ignore hid attachments for some devices, right now MGE and
APC UPS devices.
No objections on tech-kern at the end of June 2007
Patch is from PR kern/31884
2007-10-03 15:01:28 +00:00
veego 0a0c1ae8c2 Add a debug printf (aprint_debug) when a erratum was patched. 2007-10-03 14:51:47 +00:00
ad bf299679c7 Make kaputt code compile. 2007-10-03 14:49:24 +00:00
ad 0a4c80e2c7 Protect ksiginfo_pool with splvm to be on the safe side. 2007-10-03 13:21:22 +00:00
ad 5939a3f4b8 Make the atomics inline unless !__GNUC__. 2007-10-03 12:24:48 +00:00
ad 14b1d38f4d Back out the ALIGNBYTES change. There are structures used in userspace
that depend on the constant.
2007-10-03 12:23:44 +00:00
ad b30dffc0e4 - sched_yield: When yielding, drop the priority to MAXPRI ensuring that the
calling thread really does yield. The scheduler will adjust it back to a
  reasonable level within 1 second. This contradicts POSIX, which specifies
  that sched_yield() put the thread onto the back of its current runqueue.
  However, POSIX doesn't really have any business specifying what should
  happen for SCHED_OTHER (i.e.  a timesharing scheduler like ours), and
  Java, MySQL and libpthread rely on sched_yield() doing something useful.

- mi_switch: adjust spc_curpriority and newl->l_priority if we avoided
  the runqueues and are doing a direct switch. Since nothing currently
  does that, there should be no functional change.
2007-10-03 11:20:09 +00:00
ad b4bc650271 Fix a dodgy bit of code in the PERFCTRS case. 2007-10-03 11:05:58 +00:00
ad 74dc12ed8b fxsave() is a function, don't re-use the name. 2007-10-03 10:54:16 +00:00
dyoung d07b0a69f6 Delete the unused second argument to ip_stripoptions(), move it
closer to its single caller in if_eon.c, try to move fewer bytes
by moving the IP header forward instead of moving the tail of the
mbuf backward, and use m_adj(9) instead of fiddling directly with
mbuf data members.
2007-10-02 20:35:04 +00:00
skrll 20d370f9df Make want_resched a member of cpu_info. 2007-10-02 13:49:45 +00:00
pooka 0e5d568d01 minor updates/clarifications 2007-10-02 13:41:44 +00:00
ad f10a4e3b61 Fix assertion that broke debug kernels. 2007-10-02 13:17:16 +00:00
gdt 4d4e1d30cf At pooka@'s request, add hints about the recent
dhcp/racoon/SIOCGIFCONF lossage:

20070913:
	A latent bug in dhclient/dhcpd that caused it to be unable to
	enumerate interfaces was fixed.  The bug began to cause
	problems after 20070911 when the kernel's SIOCGIFCONF
	implementation was repaired.  From 20070529 to 20070911 racoon
	could not enumerate interfaces.  (These are noted because
	normal kernel/userspace version matching hygiene is not
	sufficient to avoid this problem.)  Ensure that both kernel
	and userland are from after 20070913.
2007-10-02 12:45:51 +00:00
pooka 87319696e5 Add a comment clarifying that in the succesful case the function
returns from the middle of the loop.
2007-10-02 12:01:17 +00:00
ad 631240c898 Make want_resched a member of cpu_info. 2007-10-02 11:07:19 +00:00
vanhu 657e6e5324 new plog macro 2007-10-02 09:48:08 +00:00
vanhu 4e4df07d61 From Scott Lamb: include plog.h to work with the new plog macro. 2007-10-02 09:47:55 +00:00
vanhu 400c6ca5a9 From Scott Lamb: plog changed to _plog to work with new plog macro 2007-10-02 09:47:45 +00:00
vanhu c12d0d481a From Scott Lamb: new plog macro. 2007-10-02 09:47:40 +00:00
martin 9b58206ecf Some cleanup:
- When registering command tables, make sure the builtin commands are
   already registered
 - Make the command table entry structure private
 - Do not bother to store the number of commands in a table, we can quickly
   calc that if needed.
2007-10-02 08:47:26 +00:00
martin 06e24dfa05 Add verbose help for (the one and only) "mach" command. 2007-10-02 08:44:03 +00:00
martti 811a7577e8 Bring some fixes from IPF 4.1.27 in order to fix kern/37037. 2007-10-02 06:15:11 +00:00
plunky 2e43d32311 fix typo : -> ; 2007-10-02 05:53:47 +00:00
junyoung 24ae586ea3 Use __packed rather than __attribute__ ((__packed__)). 2007-10-02 05:40:10 +00:00
plunky 0327efae31 clean up activate function 2007-10-02 05:38:06 +00:00
plunky 41358e9b10 remove unused activate function 2007-10-02 05:37:50 +00:00
pooka c562677131 If kernel resource allocation fails after the file server has
committed something, issue an abort.  The abort is done through
the regular op channel, e.g. failed mkdir leads to regular rmdir,
inactive and reclaim.  No internal interface is planned currently
for the one file system out of a million which would implement it
to benefit from the one case in a billion where kernel resource
allocation actually does fail and out of that one case in a trillion
where internal vs. external would make a difference.
2007-10-02 01:17:17 +00:00
jnemeth 65bbcf4e7b PR/37048 - Edward Swiftwood -- dbri audio component is supported 2007-10-01 23:15:13 +00:00
jnemeth f66f67f890 PR/37049 - Edward Swiftwood -- SPARC LX -> SPARCstation LX 2007-10-01 23:08:36 +00:00
ad b58e305699 Enter mi_switch() from the idle loop if ci_want_resched is set. If there
are no jobs to run it will clear it while under lock. Should fix idle.
2007-10-01 22:14:23 +00:00
sjg 216e9ba475 Add the ability to tweak the token output before targets in job mode.
Eg.
.MAKE.JOB.PREFIX=${.newline}---${.MAKE:T}[${.MAKE.PID}]
would produce
---make[1234] target ---
2007-10-01 22:14:09 +00:00
martin cadfc6aaa0 No need to db_init_commands() early any more - it will happen on first
entry to ddb.
2007-10-01 22:05:15 +00:00
martin 463076317b Special case the initialization of builtin command tables to avoid using
malloc. Fixes PR kern/37042.
Allow "mach" commands registered by LKMs even if there is no builtin
mach command for the arch.
2007-10-01 22:01:38 +00:00
ad 3bf03448f0 Make want_resched a member of cpu_info. 2007-10-01 21:26:03 +00:00
ad 6299e033fb ci_need_resched -> ci_want_resched 2007-10-01 21:23:02 +00:00
ad f5abbe2621 Fix inverted tests. VT switching works again. 2007-10-01 21:18:18 +00:00
pooka 174fb761dd Pass reason string to pu_errnotify. Print it in the default
version before aborting.
2007-10-01 21:10:50 +00:00
pooka 47cf5226f9 * better error checking: validate error values received from userland
to be vaild errno values
* include string describing error in PUFFS_ERR
* get rid of union in puffs_req, it's nothing but trouble
* pass pmp to async i/o callbacks
2007-10-01 21:09:07 +00:00
ad a06455d0e5 Now that the bootblocks are the same, share loadfile_machdep.h between
amd64 and i386.
2007-10-01 20:31:41 +00:00
bouyer 511e912cd0 When checking for invalid b_resid valyes, also check negative ones.
Should fix kern/36690.
2007-10-01 18:43:30 +00:00
bouyer 8d743383a3 Properly initialize xs_callout in sddump(). We're using a static scsipi_xfer
here which didn't get through scsipi_get_xs().
Pointed out by Greg Oster.
2007-10-01 18:16:05 +00:00
bouyer 784da043be Use the correct name for the iso image. Fix the acorn32 part of PR 37033. 2007-10-01 17:28:56 +00:00
xtraeme 9ab6815f21 Remove intval from %union, it's unused... ok christos@. 2007-10-01 17:01:55 +00:00
kleink f32417f35c Note tz*2007h. 2007-10-01 14:51:07 +00:00
kleink 9dd53e5eed Import tzdata2007h. 2007-10-01 14:48:39 +00:00
martin 464d49ce18 printf -> DPRINTF 2007-10-01 14:18:52 +00:00
martin da0f1debda Turn a few printf into DPRINTF 2007-10-01 14:17:34 +00:00