Commit Graph

169296 Commits

Author SHA1 Message Date
ad bf797086e6 Don't try grabbing a zombie's p_reflock. 2008-04-29 18:13:24 +00:00
ad c47594f131 Replicate sbus fixes for PR kern/37540. 2008-04-29 18:08:03 +00:00
ad bf6eb72289 Another compile fix. 2008-04-29 18:07:11 +00:00
nakayama c887d75771 Make it compile again on big endian, and restore CVS keyword. 2008-04-29 17:48:43 +00:00
jdc 017de4a670 Revert the scrolling region change from revision 1.18, as this breaks (at
least) mutt:

  Only change the scrolling region if the window now has fewer rows.
2008-04-29 17:46:39 +00:00
tsutsui 44f3e60011 Fix (currently harmless) typo.
I'm not sure why autobuild (amd64) gets ICE with -Os while it works on i386..
2008-04-29 17:42:35 +00:00
ad 322906d197 solisten: don't leak lock if the socket is busy. 2008-04-29 17:35:31 +00:00
tsutsui 0219c7f5be Fix (almost harmless) typo. 2008-04-29 17:30:34 +00:00
jmcneill bfb86f013a Oh, so that's how you spell Legacy -- thanks spellcheck! 2008-04-29 17:27:38 +00:00
matt 00caca484f Change IPL_LEVELS to NIPL.
current_spl_level is dead.
2008-04-29 17:09:47 +00:00
ad b872c0e53d PR kern/37917 /bin/ps no longer shows zombies 2008-04-29 16:21:27 +00:00
ad a4c98bcccd Ignore processes with PK_MARKER set. 2008-04-29 16:21:01 +00:00
martin cf6ae11aea Pass the "right" softc to the soft interrupt handler 2008-04-29 15:59:34 +00:00
martin 9213a7cdc1 Record argument in soft interrupt handler 2008-04-29 15:57:56 +00:00
ad 1074fa7182 Ignore processes with PK_MARKER set. 2008-04-29 15:55:24 +00:00
ad ddeba2439c Ignore processes with PK_MARKER set. 2008-04-29 15:51:23 +00:00
tsutsui 835f32c27d - split softc/device_t with related changes
- always make local functions static since mips/conf/Makefile.mips
  has been changed to preserve local symbols for debug
2008-04-29 15:50:39 +00:00
yamt 5d9397e689 sprinkle KASSERT(kpreempt_disabled()). 2008-04-29 15:44:07 +00:00
yamt 20d35e839b make cpu_intr_p preemption safe. 2008-04-29 15:42:59 +00:00
ad 7851dc4283 Get spl framework and interrupt gates working before breaking into DDB
on boot. PR port-amd64/30828.
2008-04-29 15:26:26 +00:00
tsutsui 1a8652c79c - reorganize com console code
- remove unused functions
2008-04-29 15:24:50 +00:00
uwe 138486a3df According to C99:
6.11.5  Storage-class specifiers

       [#1] The placement of a storage-class specifier  other  than
       at   the  beginning  of  the  declaration  specifiers  in  a
       declaration is an obsolescent feature.

and gcc -Wextra warns about this, so s/const static/static const/
2008-04-29 15:10:02 +00:00
martin 682d4acc5f Make it compile 2008-04-29 14:46:57 +00:00
rmind 1942fc2548 Split the runqueue management code into the separate file.
OK by <ad>.
2008-04-29 14:35:20 +00:00
tsutsui f07b0a1491 Fix a leakage on device_t/softc split. PR kern/38541 from HITOSHI OSADA. 2008-04-29 14:16:57 +00:00
ad cef4f8fa35 Use sparc_softintr to pass down device interrupt to the correct IPL.
MI slowpath softints are fine for notifications but have to much latency
to provide the card with the next block to play/record. PR kern/37540.
2008-04-29 14:10:00 +00:00
cegger b574865ea4 gpio(4): Extend with open/close to request/release the ppbus(4) on open/close.
ppbus(4): Extend to attach on gpiobus.
From Hans Rosenfeld from tech-kern:
http://mail-index.netbsd.org/tech-kern/2008/04/28/msg001168.html
Hint: Hans sent me this diff which differs in the one from tech-kern in:
- 2-clause license
- sprinkled some consts
2008-04-29 14:07:36 +00:00
ad a1ddfabe35 Mirror sparc and provide sparc_softintr stuff. There is no functional
change, beyond renaming a function and putting back disestablish/schedule.
PR kern/37540.
2008-04-29 14:06:31 +00:00
ad 254bed5bd3 Fix a race condition that could cause a deadlock between two threads in
the same process simultaneously trying to dump core. Fixes PR kern/37704.
2008-04-29 14:04:06 +00:00
ad 0910800372 Suspended LWPs are no longer created with l_mutex == spc_mutex. Remove
workaround in setrunnable. Fixes PR kern/38222.
2008-04-29 13:56:14 +00:00
ad 67fa15fb98 Move override of curlwp into lwp.h. 2008-04-29 13:02:03 +00:00
ad 5b204246b2 Current should boot quickly on these emulators now, so the configs aren't
required. If it boots slowly please adjust the code to disable ISAPNP probes
which are the main slow part of boot on x86. See x86/platform.c.
2008-04-29 12:46:15 +00:00
ad 19f35718b6 Require MULTIPROCESSOR. PR kern/38537. 2008-04-29 12:43:58 +00:00
njoly 4490c7c69a In linux_get_sa(), make salen parameter unsigned.
Avoid kernel DIAGNOSTIC 0 bytes uvm mapping assertion, for negative
values.
2008-04-29 09:56:38 +00:00
simonb 71a4269193 Use -nodefaultlibs instead of -nostdlib when linking libc and libgcc*
so that we still link in the crt* start/end files.
Explicitly link libc against gcc_pic, since -nodefaultlibs undoes this.

Fixes problems where shared libraries don't get init/fini sections,
most easily noticable with pthreads programs not working.

Approved by: skrll
Thanks: bjs, mrg, icb peanut gallery.
2008-04-29 07:48:31 +00:00
martin 3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
ad 88a55035c6 Oops... EVCNT_TYPE_IPI -> EVCNT_TYPE_INTR. 2008-04-29 00:44:58 +00:00
ad ffc4969f6e Don't count many items as EVCNT_TYPE_INTR because they clutter up the
systat vmstat display.
2008-04-28 23:00:22 +00:00
ad 104cf0ae89 Add support for kernel preeemption to the i386 and amd64 ports. Notes:
- I have seen one isolated panic in the x86 pmap, but otherwise i386
  seems stable with preemption enabled.

- amd64 is missing the FPU handling changes and it's not yet safe to
  enable it there.

- The usual level for kern.sched.kpreempt_pri will be 128 once enabled
  by default. For testing, setting it to 0 helps to shake out bugs.
2008-04-28 22:47:37 +00:00
ad 678e546158 -defflag PREEMPTION 2008-04-28 22:46:40 +00:00
ad 3802ad0f7c 4.99.62 - struct lwp changed for kernel preemption 2008-04-28 22:44:18 +00:00
ad ca24210d8c EVCNT_TYPE_INTR -> EVCNT_TYPE_MISC 2008-04-28 22:15:47 +00:00
matt d22fb7c7d0 More forgotten changes from matt-armv6. 2008-04-28 22:00:01 +00:00
ad b96eb5aec9 Make the preemption switch a __HAVE instead of an option. 2008-04-28 21:17:16 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
jdc 313a56c040 Set (and display) the chip revision.
Set the GEM_SUN_GEM flag.
2008-04-28 20:07:39 +00:00
jdc 06662e01eb Replace "User's Guide" URL with one that is current. 2008-04-28 19:48:56 +00:00
ad 0cb8674c03 Make the trap stubs preemption safe. 2008-04-28 19:47:36 +00:00
ad 9c1818760e - Make some entry/exit points preemption safe.
- Try to avoid mispredicted bracnhes in Xsyscall.
- Interrupts were being enabled in Xsyscall _after_ checking for ASTs,
  while could have resulted in ugly behaviour like delayed signals or
  context switches. Fix it.
2008-04-28 19:35:56 +00:00
pooka 2d66ed28b9 Unbreak recent breakage. 2008-04-28 19:31:45 +00:00