Commit Graph

165793 Commits

Author SHA1 Message Date
dsl
ca99a9496c Add AMD64_R9_REGNUM through AMD64_R14_REGNUM. 2008-01-13 10:54:47 +00:00
msaitoh
f03e380ca2 s/DIGAGNOSTIC/DIAGNOSTIC/ 2008-01-13 10:45:19 +00:00
yamt
1fc0c47f67 add functions to update pm_stats and use them in some places.
for pmap_kernel(), use atomic ops to update stats because pmap_map_ptes
doesn't lock the pmap.
2008-01-13 07:26:32 +00:00
yamt
0c8275031f add pmap_pte_cas. 2008-01-13 07:05:42 +00:00
chris
d21493ad1e Take a micro-optimization from FreeBSD/arm.
When switching from SVC32->UND32 to read/write R13_und we don't need to clear
the mode bits as:
PSR_SVC32_MODE | PSR_UND32_MODE = PSR_UND32_MODE

While reading the code I also noted that interrupts are enabled for most of
the function as pmap_switch returns with interrupts in the state they are on
entry.  This appears to be different to what the code after pmap_switch
expects, in that the behaviour suggests they should be disabled.

Because of this I've made the writing of R13_und explicitly disable.
interupts as part of the mode switch.

This also means that the IRQenableALL call is now redundant as the
interrupts are already enabled.

XXX: it's not clear if arm_fpe_core_changecontext should be called with
interrupts disabled.

Remove unused items: IRQdisableALL, IRQenableALL & Lcpufuncs.

Tested on cats. lmbench shows no performance change.
2008-01-13 02:43:53 +00:00
ad
9dfa2c0234 Add a function to look up a section by name and return address/size, and
nuke return of object entrypoint from kobj_stat(). It's a lot easier to
denote the module entypoint using a linkset.
2008-01-12 23:34:48 +00:00
ad
9ac502f441 Remove curlwp check, all ports should hopefully be doing the right thing
now (NOTICE: curlwp should be set before main()).
2008-01-12 23:31:40 +00:00
cube
55f21981d9 workqueue(9) has the non-evident limitation that the caller cannot reuse
the same struct work before workqueue(9) has internally started to work on
the task.

So to make sure that doesn't happen, provide a semaphore not to run the
workqueue multiple times.  It might be clearer just skip using workqueue(9)
and use a thread for about everything, but oh well, I leave that to
someone else.

Now is@ can yank his USB-to-Ethernet adapter while the interface is up.
2008-01-12 22:32:51 +00:00
mkirby
bb55aebb4f Fix a small grammatical error. 2008-01-12 21:05:13 +00:00
skrll
b440b92fa2 Add and fix a couple of comments. 2008-01-12 20:57:26 +00:00
skrll
8af98e5f70 Add NetBSD/arm32 kvm support.
Nearly 10 years later... PR/5667 can be closed.
2008-01-12 20:55:12 +00:00
skrll
cf47b9b0c7 Push a switchframe in dumpsys and cpu_switchto, but as dumpsys calls
other funcs a switchframe needs to be a multiple of 8 bytes. Stash sp as
well in the switchframe to bump it to 24bytes.

Setup the switchframe appropriately in cpu_lwp_fork.

Remove savectx - nothing uses it.

All of this make gdb's life much easier when dealing with crash dumps and
live kernels.

Reviewd by chris.
2008-01-12 20:50:23 +00:00
ad
ee652e42b1 - Split crashdump code out into its own file.
- Remove NO_SPARSE_DUMP.
- Minor KNF, sprinkle static.
2008-01-12 20:03:41 +00:00
ad
c03e2ac7c3 sysctl_free: don't have the caller acquire sysctl_treelock, do it here. 2008-01-12 19:27:27 +00:00
ad
2e85c8c3b2 sysctl_kern_proc_args: avoid zero length allocation. 2008-01-12 19:25:25 +00:00
bouyer
c45f69b0fd Xen doesn't need NKPTP_MIN/NKPTP_MAX any more. 2008-01-12 18:16:20 +00:00
ad
79aa087ae2 - lwp_exit: if the LWP has a name, rename it to "(zombie)".
- lwp_free: don't leak l_name.
2008-01-12 18:06:40 +00:00
ad
607fd8ae21 atomic_and/atomic_or don't operate on pointers, so don't copy the return
to a0. From thorpej@.
2008-01-12 17:29:03 +00:00
ad
f6c08490ef Don't put membar in the delay slot. thorpej@ says it may be problematic. 2008-01-12 17:27:28 +00:00
ad
eb24572347 Fix some problems with TLB shootdown and (hopefully) make it faster. This
had the potential to cause problems prior to 4.99.48 because it called into
the VM system without kernel_lock held.

XXX1 pmap_update() should be waiting for shootdown jobs to complete. It's
not clear how to do that because the shootdowns happen at IPL_VM.
2008-01-12 16:45:29 +00:00
wiz
38febee9fd Add NIFOC, from Philippe Audéoud in PR 37291. 2008-01-12 11:47:13 +00:00
dsl
9551b193fd The interval timers (setitimer()) are not inherited by fork (I've checked
the SuS) so start the timer in the correct process otherwise this test
will never timeout.
2008-01-12 11:10:08 +00:00
tsutsui
a07f7c8069 Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
2008-01-12 09:54:21 +00:00
yamt
b46466b4df revert a whitespace change which is against KNF. 2008-01-12 09:10:24 +00:00
dholland
cbae618808 sizeof(char) is always 1. Conversely, however, CHAR_BIT is not always 8.
reviewed: mrg
2008-01-12 05:49:46 +00:00
dyoung
1386ee4adf Good-bye, rtcache_check(). Call both rtcache_validate() and
rtcache_update(,1) instead of rtcache_check().
2008-01-12 02:58:58 +00:00
dyoung
5bf14fd932 _rtcache_init(): shorten this by getting out immediately if rtalloc1()
returns NULL.
rtcache_copy(): re-order operations a bit.  KASSERT() that we are
    not copying a route over itself.
2008-01-12 02:56:30 +00:00
ad
08c770b434 Initialize caches at IPL_SOFTBIO (not IPL_NONE) so that we are allocating
from kmem_map.
2008-01-12 00:34:10 +00:00
tnn
103f966e33 regen (add ServeRAID 6/7) 2008-01-11 20:49:14 +00:00
tnn
2abb4192af Add ServeRAID 6/7 2008-01-11 20:47:21 +00:00
bouyer
26315d042c Merge the bouyer-xeni386 branch to head, at tag bouyer-xeni386-merge1 (the
branch is still active and will see i386PAE support developement).
Sumary of changes:
- switch xeni386 to the x86/x86/pmap.c, and the xen/x86/x86_xpmap.c
  pmap bootstrap.
- merge back most of xen/i386/ to i386/i386
- change the build to reduce diffs between i386 and amd64 in file locations
- remove include files that were identical to the i386/amd64 counterparts,
  the build will find them via the xen-ma/machine link.
2008-01-11 20:00:13 +00:00
xtraeme
aff55dbf6c New bioctl(8) first appeared on 5.0 not 4.1. 2008-01-11 17:11:42 +00:00
xtraeme
1f7f5ebfad - Missing dot in the pc532 entry.
- x86 -> i386, amd64
2008-01-11 15:15:07 +00:00
vanhu
4aacbd15e1 From Timo Teras: reset iph1->dpd_r_u in the scheduler's callback, to avoid access to freed memory. 2008-01-11 14:27:34 +00:00
vanhu
ca6b517233 reset iph1->dpd_r_u in the scheduler's callback, to avoid some access to freed memory 2008-01-11 14:27:33 +00:00
vanhu
e0b7c2f9ec reported somes fixes from Krzysztof Oledzki 2008-01-11 14:09:50 +00:00
vanhu
90cd29a77c From Krzysztof Oledzki: Fix compilation with IDEA and recent gcc. 2008-01-11 14:09:05 +00:00
vanhu
5e3ace1c19 From Krzysztof Oledzki: added some details to some logs (also reported new getph1byaddr() arg). 2008-01-11 14:08:29 +00:00
vanhu
e8714f7763 From Krzysztof Oledzki: Only search for established ph1 handles in DPD (also reported new getph1byaddr() arg). 2008-01-11 14:07:39 +00:00
vanhu
223c4f34ce added an 'established' arg to getph1byaddr() 2008-01-11 14:06:56 +00:00
he
4b2e779458 Include <sys/simplelock.h> to pull in appropriate definitions. 2008-01-11 14:03:47 +00:00
ragge
1d93d6da72 Add entry to match the "Intel® PRO/1000 PT Quad Port Server Adapter". 2008-01-11 13:04:39 +00:00
ragge
9360a7471b Regen 2008-01-11 12:01:20 +00:00
tsutsui
7ae8e79ff0 - add options COMPAT_40
- adjust comments
2008-01-11 11:45:24 +00:00
tsutsui
ef31271269 Make it possible to specify multiple targets in TARGET_CD_IMAGE. 2008-01-11 11:37:03 +00:00
ragge
5f5a2ae52a Add Intel quad 1000baseT copper PCI express card. 2008-01-11 11:31:25 +00:00
simonb
58b5ff0c0d Note removal of pc532 port. 2008-01-11 11:30:22 +00:00
tsutsui
8dcb4a7ea6 Always account idepth for cpu_intr_p(), which is now
mandatory for sys/kern/vfs_bio.c:biodone().

Comments from Andrew Doran, and fixes mutex errors on sun3.
2008-01-11 10:21:26 +00:00
tsutsui
8c58569757 WARNSfy 2008-01-11 09:26:26 +00:00
skrll
74b90c2d9b hppa gained gdb. 2008-01-11 08:02:35 +00:00