| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Other small updates to atomic(9) include:
- Note that arm and ppc don't provide 64-bit atomic ops.
- Update sample code.
Approved by: re (scottl)
Notes:
svn path=/stable/6/; revision=151008
|
| |
|
|
|
|
|
|
|
|
| |
modified is an input and output rather than just the register holding the
pointer being the input and output.
Approved by: re (kensmith)
Notes:
svn path=/stable/6/; revision=148751
|
| |
|
|
|
|
|
|
|
| |
than void *.
Approved by: re (kensmith)
Notes:
svn path=/stable/6/; revision=148750
|
| |
|
|
|
|
|
| |
Approved by: re (scottl)
Notes:
svn path=/head/; revision=147555
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Implement sampling modes and logging support in hwpmc(4).
- Separate MI and MD parts of hwpmc(4) and allow sharing of
PMC implementations across different architectures.
Add support for P4 (EMT64) style PMCs to the amd64 code.
- New pmcstat(8) options: -E (exit time counts) -W (counts
every context switch), -R (print log file).
- pmc(3) API changes, improve our ability to keep ABI compatibility
in the future. Add more 'alias' names for commonly used events.
- bug fixes & documentation.
Notes:
svn path=/head/; revision=147191
|
| |
|
|
|
|
|
|
| |
interrupts.
- Implement teardown methods where appropriate.
Notes:
svn path=/head/; revision=147166
|
| |
|
|
|
|
|
|
| |
an implementation of uma_small_alloc() which tries to preallocate memory
1MB per 1MB, and maps it into a section mapping.
Notes:
svn path=/head/; revision=147114
|
| |
|
|
| |
Notes:
svn path=/head/; revision=146948
|
| |
|
|
|
|
|
|
|
| |
and amd64. The optimization is a trivial on recent machines.
Reviewed by: -arch (imp, marcel, dfr)
Notes:
svn path=/head/; revision=146734
|
| |
|
|
| |
Notes:
svn path=/head/; revision=146649
|
| |
|
|
| |
Notes:
svn path=/head/; revision=146619
|
| |
|
|
| |
Notes:
svn path=/head/; revision=146594
|
| |
|
|
|
|
|
| |
Obtained from: NetBSD
Notes:
svn path=/head/; revision=146592
|
| |
|
|
|
|
|
| |
This fixes the random segfaults which occurs at high interrupts rate.
Notes:
svn path=/head/; revision=146591
|
| |
|
|
|
|
|
| |
get hwpmc(4) to compile on this platform.
Notes:
svn path=/head/; revision=145332
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
into _bus.h to help with name space polution from including all of bus.h.
In a few days, I'll commit changes to the MI code to take advantage of thse
sepration (after I've made sure that these changes don't break anything in
the main tree, I've tested in my trees, but you never know...).
Suggested by: bde (in 2002 or 2003 I think)
Reviewed in principle by: jhb
Notes:
svn path=/head/; revision=145253
|
| |
|
|
|
|
|
|
| |
atomic operations to userland (this is OK for UP only, but SMP is still so
far away).
Notes:
svn path=/head/; revision=144761
|
| |
|
|
|
|
|
| |
- Garbage-collect pmap_update(), it became quite useless.
Notes:
svn path=/head/; revision=144760
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
critical_enter() and critical_exit() are now solely a mechanism for
deferring kernel preemptions. They no longer have any affect on
interrupts. This means that standalone critical sections are now very
cheap as they are simply unlocked integer increments and decrements for the
common case.
Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter()
and spinlock_exit(). This KPI is responsible for providing whatever MD
guarantees are needed to ensure that a thread holding a spin lock won't
be preempted by any other code that will try to lock the same lock. For
now all archs continue to block interrupts in a "spinlock section" as they
did formerly in all critical sections. Note that I've also taken this
opportunity to push a few things into MD code rather than MI. For example,
critical_fork_exit() no longer exists. Instead, MD code ensures that new
threads have the correct state when they are created. Also, we no longer
try to fixup the idlethreads for APs in MI code. Instead, each arch sets
the initial curthread and adjusts the state of the idle thread it borrows
in order to perform the initial context switch.
This change is largely a big NOP, but the cleaner separation it provides
will allow for more efficient alternative locking schemes in other parts
of the kernel (bare critical sections rather than per-CPU spin mutexes
for per-CPU data for example).
Reviewed by: grehan, cognet, arch@, others
Tested on: i386, alpha, sparc64, powerpc, arm, possibly more
Notes:
svn path=/head/; revision=144637
|
| |
|
|
| |
Notes:
svn path=/head/; revision=143857
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
sys/bus_dma.h instead of being copied in every single arch. This slightly
reorders a flag that was specific to AXP and thus changes the ABI there.
The interface still relies on bus_space definitions found in <machine/bus.h>
so it cannot be included on its own yet, but that will be fixed at a later
date. Add an MD <machine/bus_dma.h> for ever arch for consistency and to
allow for future MD augmentation of the API. sparc64 makes heavy use of
this right now due to its different bus_dma implemenation.
Notes:
svn path=/head/; revision=143598
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
place.
This moves the dependency on GCC's and other compiler's features into
the central sys/cdefs.h file, while the individual source files can
then refer to #ifdef __COMPILER_FEATURE_FOO where they by now used to
refer to #if __GNUC__ > 3.1415 && __BARC__ <= 42.
By now, GCC and ICC (the Intel compiler) have been actively tested on
IA32 platforms by netchild. Extension to other compilers is supposed
to be possible, of course.
Submitted by: netchild
Reviewed by: various developers on arch@, some time ago
Notes:
svn path=/head/; revision=143063
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
ARM_TP_ADDRESS, where the tp will be stored. On CPUs that support it, a cache
line will be allocated and locked for this address, so that it will never go
to RAM. On CPUs that does not, a page is allocated for it (it will be a bit
slower, and is wrong for SMP, but should be fine for UP).
The tp is still stored in the mdthread struct, and at each context switch,
ARM_TP_ADDRESS gets updated.
Suggested by: davidxu
Notes:
svn path=/head/; revision=142570
|
| |
|
|
| |
Notes:
svn path=/head/; revision=142528
|
| |
|
|
|
|
|
| |
the lack of tls on arm.
Notes:
svn path=/head/; revision=142519
|
| |
|
|
|
|
|
| |
protection to alpha/include/exec.h.
Notes:
svn path=/head/; revision=142107
|
| |
|
|
|
|
|
|
| |
64 irqs.
This should be re-thought later.
Notes:
svn path=/head/; revision=141820
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141094
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140425
|
| |
|
|
|
|
|
| |
Spotted out by: scottl
Notes:
svn path=/head/; revision=140312
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140001
|
| |
|
|
| |
Notes:
svn path=/head/; revision=139735
|
| |
|
|
|
|
|
| |
as it has unpredictable results.
Notes:
svn path=/head/; revision=139021
|
| |
|
|
|
|
|
| |
While I'm there, fix style.
Notes:
svn path=/head/; revision=138413
|
| |
|
|
|
|
|
| |
Obtained from: NetBSD
Notes:
svn path=/head/; revision=137975
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137940
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137939
|
| |
|
|
|
|
|
|
|
|
|
| |
USPACE_SVC_STACK_TOP, USPACE_SVC_STACK_BOTTOM, USPACE_UNDEF_STACK_TOP,
and USPACE_UNDEF_STACK_BOTTOM look wrong to me, so I'm leaving them
alone.
Reviewed by: arch@
Notes:
svn path=/head/; revision=137919
|
| |
|
|
|
|
|
| |
Obtained from: NetBSD
Notes:
svn path=/head/; revision=137462
|
| |
|
|
|
|
|
| |
While I'm there, cleanup a bit pmap.h.
Notes:
svn path=/head/; revision=137362
|
| |
|
|
|
|
|
| |
Don't export it to userland.
Notes:
svn path=/head/; revision=137282
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137229
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137228
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137227
|
| |
|
|
|
|
|
| |
intr_restore() instead of re-implement it.
Notes:
svn path=/head/; revision=137226
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137224
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137223
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137222
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137216
|
| |
|
|
|
|
|
| |
defined.
Notes:
svn path=/head/; revision=136033
|