Commit Graph

170539 Commits

Author SHA1 Message Date
ad a6f1414cd1 tsleep -> kpause 2008-05-31 13:26:29 +00:00
freza bb3bf45dbb Change DRVSUSPENDDEV ioctl number. Fixes PR kern/38740. 2008-05-31 13:24:57 +00:00
ad 7b8f512433 LOCKDEBUG:
- Tweak it so it can also catch common errors with condition variables.
  The change to kern_condvar.c is not included in this commit and will
  come later.

- Don't call kmem_alloc() if operating in interrupt context, just fail
  the allocation and disable debugging for the object. Makes it safe
  to do mutex_init/rw_init/cv_init in interrupt context, when running
  a LOCKDEBUG kernel.
2008-05-31 13:15:21 +00:00
ad 10d96b47b0 shmrealloc: destroy condition variables before freeing them. 2008-05-31 13:11:14 +00:00
ad deda5b9d55 Hold proc_lock when sleeping on p_waitcv, not proc::p_lock. 2008-05-31 13:04:14 +00:00
ad 8350e2a9e8 Missing cv_destroy(). 2008-05-31 13:00:03 +00:00
christos b7748ce1d5 change HUMAN_NUMBER back to 5 2008-05-31 12:48:41 +00:00
ad 5b4d14b9f1 Add a comment to turnstile_block:
* NOTE: if you get a panic in this code block, it is likely that
        * a lock has been destroyed or corrupted while still in use.  Try
        * compiling a kernel with LOCKDEBUG to pinpoint the problem.
2008-05-31 12:03:15 +00:00
lukem 826cacff27 entry for MKPRIVATELIB rename to LIBISPRIVATE 2008-05-31 09:47:23 +00:00
nakayama 4b71a66d0f Change my license to 2 clause. 2008-05-31 08:08:54 +00:00
nakayama 14f4cae1dc No need to wait on primary CPU in sparc64_ipi_halt_thiscpu with recent
openfirmware_exit changes.
2008-05-31 08:00:34 +00:00
nakayama 8b672b3568 openfirmware_exit:
- disable interrupts with %pstate.
- prepare 64-bit stack and enable 64-bit addresses for 32-bit SMP kernels.
2008-05-31 07:54:03 +00:00
taca 01e7a44f4a Kill license clause 3 of original license part, behalf of the original
license holder.
2008-05-31 07:30:45 +00:00
kiyohara 20ae2d4c31 Obsolete elf2pef. 2008-05-31 02:18:24 +00:00
nisimura 53a4931ada - add two more PCI NICs to code heap; SMsC LAN9420 (sme.c) and
Micrel KSZ8841/8842 (kse.c).
2008-05-31 01:43:57 +00:00
christos c2a7e74ac0 remove stray ` 2008-05-30 21:53:21 +00:00
christos fc39241e29 don't undef __CI_TBL before we use it :-) 2008-05-30 21:53:00 +00:00
tsutsui 6b0322861b Add options COMPAT_40 to files which have options COMPAT_30. 2008-05-30 20:10:01 +00:00
macallan 55bd0f3dd6 remove test for VGA subclass, also match PCI_PRODUCT_ATI_RAGE3AGP4XT
this makes r128fb work on 2nd generation iMacs
From Brett Slager
2008-05-30 19:56:14 +00:00
dyoung cd2143c845 Add pci* at elansc? bus ?. Should fix Jasper's PR, port-i386/38800. 2008-05-30 19:51:00 +00:00
ad 48ced055d4 pci_intr_setattr(), allows PCI interrupts to be marked MPSAFE on x86, and
other platforms if the code is added.

pci_intr_map(...)
pci_intr_setattr(pc, ih, PCI_INTR_MPSAFE, 1);
pci_intr_establish(...)
2008-05-30 19:26:35 +00:00
ad 2839301d21 Add a 'known_mpsafe' argument to intr_establish(). 2008-05-30 19:03:10 +00:00
christos 6cb1513d20 - fix an amd cache entry.
- merge tables
- support phenom
from Paul Goyette
2008-05-30 18:49:03 +00:00
gdt f7d5c4db3f Document the C99-required and already implemented hh modifier (pointer
is to a char, vs. h for short).  Bump date.
2008-05-30 17:29:54 +00:00
cegger 785a84e999 build fix: add missing prototype 2008-05-30 16:22:51 +00:00
kiyohara 9e26ff7373 Renewal GENERIC and files.bebox. 2008-05-30 16:03:01 +00:00
kiyohara f34810b383 Remove unused prototype for function. 2008-05-30 15:56:32 +00:00
kiyohara 99539a09bc Support genfb console. 2008-05-30 15:54:50 +00:00
freza 1531f6d32e Any time we remove event from the queue make sure we 1. release the
event plist and 2. free the drvctl_event struct.

Discussed with jmcneill@.
2008-05-30 15:30:37 +00:00
christos a81b2a4e6c Restore functionality lost during the libcpp conversion: cpp -CC should convert
// comments to /* comments */ not only during macro definition, but also
macro argument collection. Otherwise the following:

    #define b(a) a
    main {
	b(
	// 1);
	0);
    }

gets expanded to:

    main()
    {
	    return //          1); 0;
    }

instead of:

    main()
    {
	    return /*          1);*/ 0;
    }
2008-05-30 15:12:24 +00:00
nisimura ad5b6b45cd - add brdsetup.c left uncomitted over half month.
- fixes on tlp.c; more cautious about TCH/TER/RCH/RER usage and
avoid self-pointing TER.
- stylize structs and #define order to highlight similarities and
differences.
2008-05-30 14:54:16 +00:00
christos f26920b377 PR/38722: Paul Goyette: Share cacheinfo information 2008-05-30 14:42:42 +00:00
christos ab8d9f698c de-duplicated cacheinfo.h 2008-05-30 14:41:57 +00:00
christos 0bb12611f2 let us be 0.3 2008-05-30 14:23:54 +00:00
christos 77cf38f568 PR/38797: FreeBSD support from ttw plus bsd at cobbled dot net. 2008-05-30 14:19:57 +00:00
ad 13cf4bcc55 PR kern/38663 Kernel preemption can't be enabled on x86 because of amd64
FPU handling

Remove ifdef(i386), kernel preemption works on amd64 now.
2008-05-30 12:18:14 +00:00
ad a5ece4c4ec PR kern/38663 Kernel preemption can't be enabled on x86 because of amd64
FPU handling

Adjust FPU trap handling to be preemption safe.
2008-05-30 12:17:11 +00:00
ad f51106f90f Shuffle copyright. 2008-05-30 12:11:44 +00:00
ad 34ade0651a Avoid mispredicted branches. 2008-05-30 12:09:59 +00:00
jmcneill 4bb5a59ae8 Don't call devsw_attach/detach if _MODULE is not defined 2008-05-30 11:26:21 +00:00
jmcneill 5d0bd997c2 Don't call devsw_attach/detach if _MODULE is not defined. 2008-05-30 11:24:57 +00:00
ad 0a34921e9f fillw is dead. 2008-05-30 11:03:29 +00:00
martin 5faa185ff6 Pass the com softc to comintr, not the device_t.
Fixes PR kern/38776.
2008-05-30 10:59:42 +00:00
ad 4a0f8c8fcf Since breakpoints don't work, dump basic info about the trap before
entering the debugger. Sometimes ddb only makes the situation worse.
2008-05-30 10:38:21 +00:00
ad c51560fae0 Don't try to resolve pagefaults from interrupt mode; it can result in a
LOCKDEBUG panic, or the machine getting really confused. Instead, panic
at the earliest oppertunity.
2008-05-30 10:36:20 +00:00
joerg f608e44ab1 Add a function to extract the primary bus number of PCI host bridges,
as far as specific code for this already existed.
2008-05-30 09:49:07 +00:00
rmind 1be38c90d8 do_sys_accept: release the reference to sock in few error paths.
Should fix PR/38790, report and test-case by Nicolas Joly.
2008-05-30 09:49:01 +00:00
rmind a68758f8bd sched_idle: initialise 'tci' to NULL, avoids compiler warning. 2008-05-30 08:31:42 +00:00
wiz 8f7dd998e2 Fix xref. End sentence with a dot. 2008-05-30 07:41:42 +00:00
ginsbach b750bd80b0 Add some more LC_TYPE aliases. OK'ed by tnozaki. 2008-05-30 03:24:02 +00:00