| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
symbol.
Notes:
svn path=/head/; revision=119628
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sockets into machine-dependent files. The rationale for this
migration is illustrated by the modified amd64 allocator. It uses the
amd64's direct map to avoid emphemeral mappings in the kernel's
address space. On an SMP, the emphemeral mappings result in an IPI
for TLB shootdown for each transmitted page. Yuck.
Maintainers of other 64-bit platforms with direct maps should be able
to use the amd64 allocator as a reference implementation.
Notes:
svn path=/head/; revision=119563
|
|
|
|
|
|
|
|
| |
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
Notes:
svn path=/head/; revision=119291
|
|
|
|
| |
Notes:
svn path=/head/; revision=119015
|
|
|
|
|
|
|
|
|
| |
compilation and replace it with a call to cpu_thread_swap{in|out}().
This allows us to add similar code on ia64 without cluttering the
code even more.
Notes:
svn path=/head/; revision=119004
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
prototypes of cpu_halt(), cpu_reset() and swi_vm() from md_var.h to
cpu.h. This affects db_command.c and kern_shutdown.c.
ia64: move all MD prototypes from cpu.h to md_var.h. This affects
madt.c, interrupt.c and mp_machdep.c. Remove is_physical_memory().
It's not used (vm_machdep.c).
alpha: the MD prototypes have been left in cpu.h with a comment
that they should be there. Moving them is left for later. It was
expected that the impact would be significant enough to be done in
a seperate commit.
powerpc: MD prototypes left in cpu.h. Comment added.
Suggested by: bde
Tested with: make universe (pc98 incomplete)
Notes:
svn path=/head/; revision=118990
|
|
|
|
|
|
|
| |
for cpu_throw() and cpu_switch().
Notes:
svn path=/head/; revision=118893
|
|
|
|
|
|
|
|
|
| |
copyrighted files.
Approved by: Matt Dillon
Notes:
svn path=/head/; revision=118848
|
|
|
|
|
|
|
|
|
| |
set in cpu_critical_fork_exit() anymore.
- As far as I can tell, cpu_thread_link() has never been used, not even
when it was originally added, so remove it.
Notes:
svn path=/head/; revision=118443
|
|
|
|
| |
Notes:
svn path=/head/; revision=118383
|
|
|
|
|
|
|
|
|
| |
See revision 1.140 of kern/sys_pipe.c for a detailed rationale.
Submitted by: tegge
Notes:
svn path=/head/; revision=118365
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
created not only with UMA_ZONE_VM but also with UMA_ZONE_NOFREE. In
the i386 case in particular, the pmap code would hook a special
page allocation routine that allocated from kernel_map and not kmem_map,
and so when/if the pageout daemon drained the zones, it could actually
push out slabs from the PV ENTRY zone but call UMA's default page_free,
which resulted in pages allocated from kernel_map being freed to
kmem_map; bad. kmem_free() ignores the return value of the
vm_map_delete and just returns. I'm not sure what the exact
repercussions could be, but it doesn't look good.
In the PAE case on i386, we also set-up a zone in pmap, so be
conservative for now and make that zone also ZONE_NOFREE and
ZONE_VM. Do this for the pmap zones for the other archs too,
although in some cases it may not be entirely necessarily. We'd
rather be safe than sorry at this point.
Perhaps all UMA_ZONE_VM zones should by default be also
UMA_ZONE_NOFREE?
May fix some of silby's crashes on the PV ENTRY zone.
Notes:
svn path=/head/; revision=118244
|
|
|
|
| |
Notes:
svn path=/head/; revision=118239
|
|
|
|
| |
Notes:
svn path=/head/; revision=118100
|
|
|
|
|
|
|
|
|
|
| |
memory in bus_dmamem_alloc(). This is possible now that
contigmalloc() supports the M_ZERO flag.
- Remove the locking of Giant around calls to contigmalloc() since
contigmalloc() now grabs Giant itself.
Notes:
svn path=/head/; revision=118081
|
|
|
|
|
|
|
| |
Suggested by: jhb
Notes:
svn path=/head/; revision=117600
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
order to avoid the overhead of later page faults. In general, it
implements two cases: one for vnode-backed objects and one for
device-backed objects. Only the device-backed case is really
machine-dependent, belonging in the pmap.
This commit moves the vnode-backed case into the (relatively) new
function vm_map_pmap_enter(). On amd64 and i386, this commit only
amounts to code rearrangement. On alpha and ia64, the new machine
independent (MI) implementation of the vnode case is smaller and more
efficient than their pmap-based implementations. (The MI
implementation takes advantage of the fact that objects in -CURRENT
are ordered collections of pages.) On sparc64, pmap_object_init_pt()
hadn't (yet) been implemented.
Notes:
svn path=/head/; revision=117206
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma. At the moment, this is used for the
asynchronous busdma_swi and callback mechanism. Two lockfunc implementations
are provided: busdma_lock_mutex() performs standard mutex operations on the
mutex that is specified from lockfuncarg. dftl_lock() is a panic
implementation and is defaulted to when NULL, NULL are passed to
bus_dma_tag_create(). The only time that NULL, NULL should ever be used is
when the driver ensures that bus_dmamap_load() will not be deferred.
Drivers that do not provide their own locking can pass
busdma_lock_mutex,&Giant args in order to preserve the former behaviour.
sparc64 and powerpc do not provide real busdma_swi functions, so this is
largely a noop on those platforms. The busdma_swi on is64 is not properly
locked yet, so warnings will be emitted on this platform when busdma
callback deferrals happen.
If anyone gets panics or warnings from dflt_lock() being called, please
let me know right away.
Reviewed by: tmm, gibbs
Notes:
svn path=/head/; revision=117126
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
implementation of a largely MI pmap_object_init_pt() for vnode-backed
objects. pmap_enter_quick() is implemented via pmap_enter() on sparc64
and powerpc.
- Correct a mismatch between pmap_object_init_pt()'s prototype and its
various implementations. (I plan to keep pmap_object_init_pt() as
the MD hook for device-backed objects on i386 and amd64.)
- Correct an error in ia64's pmap_enter_quick() and adjust its interface
to match the other versions. Discussed with: marcel
Notes:
svn path=/head/; revision=117045
|
|
|
|
|
|
|
| |
Heathrow PIC, while not affecting the OpenPIC.
Notes:
svn path=/head/; revision=117017
|
|
|
|
|
|
|
| |
MacIO chips, found on older Mac G3's.
Notes:
svn path=/head/; revision=116965
|
|
|
|
|
|
|
| |
found on older Mac G3's.
Notes:
svn path=/head/; revision=116964
|
|
|
|
|
|
|
|
|
|
| |
will use the function to construct a siginfo structure and use
the result to export to userland.
Reviewed by: julian
Notes:
svn path=/head/; revision=116958
|
|
|
|
|
|
|
|
|
|
|
|
| |
bus_dma async callback scheme. Note that sparc64 does not seem to do
async callbacks. Note that ia64 callbacks might not be MPSAFE at the
moment. Note that powerpc doesn't seem to do async callbacks due to
the implementation being incomplete.
Reviewed by: mostly silence on arch@
Notes:
svn path=/head/; revision=116907
|
|
|
|
|
|
|
| |
in the sunlabel utility, causing build problems.
Notes:
svn path=/head/; revision=116804
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to the machine-independent parts of the VM. At the same time, this
introduces vm object locking for the non-i386 platforms.
Two details:
1. KSTACK_GUARD has been removed in favor of KSTACK_GUARD_PAGES. The
different machine-dependent implementations used various combinations
of KSTACK_GUARD and KSTACK_GUARD_PAGES. To disable guard page, set
KSTACK_GUARD_PAGES to 0.
2. Remove the (unnecessary) clearing of PG_ZERO in vm_thread_new. In
5.x, (but not 4.x,) PG_ZERO can only be set if VM_ALLOC_ZERO is passed
to vm_page_alloc() or vm_page_grab().
Notes:
svn path=/head/; revision=116355
|
|
|
|
|
|
|
|
| |
various pmap implementations into the machine-independent vm. They were
all identical.
Notes:
svn path=/head/; revision=116328
|
|
|
|
| |
Notes:
svn path=/head/; revision=116188
|
|
|
|
|
|
|
|
| |
Submitted by: Edward Kaplan (tmbg37 on IRC)
Reviewed by: rwatson (in principle)
Notes:
svn path=/head/; revision=115999
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
we were passing in a void* representing the PCB of the parent thread.
Now we pass a pointer to the parent thread itself.
The prime reason for this change is to allow cpu_set_upcall() to copy
(parts of) the trapframe instead of having it done in MI code in each
caller of cpu_set_upcall(). Copying the trapframe cannot always be
done with a simply bcopy() or may not always be optimal that way. On
ia64 specifically the trapframe contains information that is specific
to an entry into the kernel and can only be used by the corresponding
exit from the kernel. A trapframe copied verbatim from another frame
is in most cases useless without some additional normalization.
Note that this change removes the assignment to td->td_frame in some
implementations of cpu_set_upcall(). The assignment is redundant.
A previous call to cpu_thread_setup() already did the exact same
assignment. An added benefit of removing the redundant assignment is
that we can now change td_pcb without nasty side-effects.
This change officially marks the ability on ia64 for 1:1 threading.
Not tested on: amd64, powerpc
Compile & boot tested on: alpha, sparc64
Functionally tested on: i386, ia64
Notes:
svn path=/head/; revision=115858
|
|
|
|
| |
Notes:
svn path=/head/; revision=115614
|
|
|
|
|
|
|
|
|
|
|
| |
BUS_DMASYNC_ definitions remain as before. The does not change the ABI,
and reverts the API to be a bit more compatible and flexible. This has
survived a full 'make universe'.
Approved by: re (bmah)
Notes:
svn path=/head/; revision=115343
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix visibilty test for LONG_BIT and WORD_BIT. `#if defined(__FOO_VISIBLE)'
is alays wrong because __FOO_VISIBLE is always defined (to 0 for
invisibility).
sys/<arch>/include/limits.h
sys/<arch>/include/_limits.h:
- Style fixes.
Submitted by: bde
Reviewed by: bsdmike
Approved by: re (scottl)
Notes:
svn path=/head/; revision=115164
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Move struct sigacts out of the u-area and malloc() it using the
M_SUBPROC malloc bucket.
- Add a small sigacts_*() API for managing sigacts structures: sigacts_alloc(),
sigacts_free(), sigacts_copy(), sigacts_share(), and sigacts_shared().
- Remove the p_sigignore, p_sigacts, and p_sigcatch macros.
- Add a mutex to struct sigacts that protects all the members of the struct.
- Add sigacts locking.
- Remove Giant from nosys(), kill(), killpg(), and kern_sigaction() now
that sigacts is locked.
- Several in-kernel functions such as psignal(), tdsignal(), trapsignal(),
and thread_stopped() are now MP safe.
Reviewed by: arch@
Approved by: re (rwatson)
Notes:
svn path=/head/; revision=114983
|
|
|
|
| |
Notes:
svn path=/head/; revision=114727
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove DBL_DIG, DBL_MIN, DBL_MAX and their FLT_ counterparts, they
were marked for deprecation ever since SUSv1 at least.
Only define ULLONG_MIN/MAX and LLONG_MAX if long long type is
supported.
Restore a lost comment in MI _limits.h file and remove it from
sys/limits.h where it does not belong.
Notes:
svn path=/head/; revision=114678
|
|
|
|
|
|
|
| |
than it was worth.
Notes:
svn path=/head/; revision=114374
|
|
|
|
|
|
|
|
|
|
|
|
| |
that were added to sparc64 and later powerpc, really should have been in
the MI area. But changing that now with insufficient preperation will
just cause too much pain.
Move MD_FETCH() to the MI sys/linker.h file to avoid another two copies
of it.
Notes:
svn path=/head/; revision=114373
|
|
|
|
|
|
|
| |
was harmless.
Notes:
svn path=/head/; revision=114342
|
|
|
|
|
|
|
| |
as a plain "elf kernel".
Notes:
svn path=/head/; revision=114340
|
|
|
|
|
|
|
|
|
| |
array.
Submitted by: pho
Notes:
svn path=/head/; revision=114305
|
|
|
|
|
|
|
|
|
|
| |
Change all in-tree consumers to include <sys/limits.h>
Discussed on: standards@
Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
Notes:
svn path=/head/; revision=114216
|
|
|
|
|
|
|
|
| |
- Standardize on EINVAL rather than EOPNOTSUPP if the sysarch op value is
invalid.
Notes:
svn path=/head/; revision=114029
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
syscall return values should be cleared. The system calls
getcontext() and swapcontext() want to return 0 on success
but these contexts can be switched to at a later time so
the return values need to be cleared in the saved register
sets. Other callers of get_mcontext() would normally want
the context without clearing the return values.
Remove the i386-specific context saving from the KSE code.
get_mcontext() is not i386-specific any more.
Fix a bad pointer in the alpha get_mcontext() code. The
context was being bcopy()'d from &td->tf_frame, but tf_frame
is itself a pointer, so the thread was being copied instead.
Spotted by jake.
Glanced at by: jake
Reviewed by: bde (months ago)
Notes:
svn path=/head/; revision=113998
|
|
|
|
|
|
|
|
|
|
|
|
| |
to get actual constant values. This is in preparation for machine/limits.h
retirement.
Discussed on: standards@
Submitted by: Craig Rodrigues <rodrigc@attbi.com> (*)
Modified by: kan
Notes:
svn path=/head/; revision=113941
|
|
|
|
| |
Notes:
svn path=/head/; revision=113837
|
|
|
|
| |
Notes:
svn path=/head/; revision=113803
|
|
|
|
| |
Notes:
svn path=/head/; revision=113703
|
|
|
|
| |
Notes:
svn path=/head/; revision=113650
|
|
|
|
| |
Notes:
svn path=/head/; revision=113649
|