| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
will be used by ptrace to clear a thread's single step state.
|
|
|
|
|
| |
Fix bug in setup of stack frame where 8 bytes wasn't being
saved for the callee's frame pointer and saved LR.
|
| |
|
|
|
|
|
|
|
| |
- ddb -> db for low-level trapcode
- implement makectx. I think it only matters that the stack is setup
correctly.
- bring over ddb_trap_glue and rename to db_trap_glue
|
| |
|
| |
|
|
|
|
| |
although it really needs a decent re-work.
|
|
|
|
|
|
| |
with sparc64, although keep the size deref checks: they are useful
when accessing PCI space where some devices may not implement byte
access.
|
| |
|
| |
|
|
|
|
| |
due to KDB.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
pmap_remove_pages() is an optimization, its implementation is optional.
Discussed with: grehan
|
|
|
|
|
|
|
|
|
|
|
| |
so setfault would return correctly when a page fault was invalid
(e.g. a syscall with a bad parameter).
This caused an endless DSI loop, seen when running sendmail which
does a setlogin() call with a NULL pointer.
- introduce KTR_SYSC tracing. expose the syscallnames[] array to
make the tracing more readable.
|
|
|
|
|
| |
isync after each bat update. Otherwise, pmap_bootstrap causes
an ISI exception. A fall-out of loader BAT removal.
|
|
|
|
|
| |
- add call to thread_user_enter for P_SA processes before
trap processing ala all other arches
|
|
|
|
|
|
|
|
|
|
| |
(but keep it conditional on __ISO_C_VISIBLE >= 1999.
Why? Our out /usr/src/contrib assumes it, and more than a few ports have
an autoconf that looks for __va_copy because it is available on glibc.
It is critical that we use it on PowerPC. It generally isn't a problem
for i386 and its ilk because those platforms can get away with cheating
the C standard, using a plain assignment.
|
|
|
|
| |
to watch at hi-res.
|
|
|
|
| |
vm_offset_t.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
than as one-off hacks in various other parts of the kernel:
- Add a function maybe_preempt() that is called from sched_add() to
determine if a thread about to be added to a run queue should be
preempted to directly. If it is not safe to preempt or if the new
thread does not have a high enough priority, then the function returns
false and sched_add() adds the thread to the run queue. If the thread
should be preempted to but the current thread is in a nested critical
section, then the flag TDF_OWEPREEMPT is set and the thread is added
to the run queue. Otherwise, mi_switch() is called immediately and the
thread is never added to the run queue since it is switch to directly.
When exiting an outermost critical section, if TDF_OWEPREEMPT is set,
then clear it and call mi_switch() to perform the deferred preemption.
- Remove explicit preemption from ithread_schedule() as calling
setrunqueue() now does all the correct work. This also removes the
do_switch argument from ithread_schedule().
- Do not use the manual preemption code in mtx_unlock if the architecture
supports native preemption.
- Don't call mi_switch() in a loop during shutdown to give ithreads a
chance to run if the architecture supports native preemption since
the ithreads will just preempt DELAY().
- Don't call mi_switch() from the page zeroing idle thread for
architectures that support native preemption as it is unnecessary.
- Native preemption is enabled on the same archs that supported ithread
preemption, namely alpha, i386, and amd64.
This change should largely be a NOP for the default case as committed
except that we will do fewer context switches in a few cases and will
avoid the run queues completely when preempting.
Approved by: scottl (with his re@ hat)
|
|
|
|
|
| |
for an OpenFirmware implementation to have a single memory region
(hello PearPC).
|
| |
|
|
|
|
| |
to clients now that it's protected with __RMAN_RESOURCE_VISIBLE
|
| |
|
|
|
|
| |
Bump __FreeBSD_version accordingly.
|
| |
|
|
|
|
|
|
|
| |
having to acquire sched_lock when manipulating it in lockmgr(), uiomove(),
and uiomove_fromphys().
Reviewed by: jhb
|
| |
|
|
|
|
|
|
| |
to <sys/gmon.h>. Cleaned them up a little by not attempting to ifdef
for incomplete and out of date support for GUPROF in userland, as in
the sparc64 version.
|
|
|
|
|
|
| |
with MUTEX_PROFILING.
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
|
|
|
|
|
|
|
|
| |
defined. Otherwise first including <wchar.h> and then <stdint.h> leads to no
WINT_M{AX,IN} at all.
PR: 64956
Approved by: das (mentor)
|
|
|
|
|
|
| |
elf_reloc() backends for two reasons. First, to support the possibility
of there being two elf linkers in the kernel (eg: amd64), and second, to
pass the relocbase explicitly (for relocating .o format kld files).
|
|
|
|
| |
partitions on a single disk.
|
| |
|
|
|
|
|
|
|
| |
environments.
PR: 63935
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
|
|
|
|
| |
- Remove trailing space in ata_macio.c
|
| |
|
|
|
|
| |
failure.
|
|
|
|
|
| |
Simplify the sf_buf implementation. In short, make it a veneer
over the direct virtual-to-physical mapping.
|
| |
|
|
|
|
|
|
|
| |
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.
Approved by: core, peter, alc, rwatson
|
|
|
|
| |
does anything with it beyond simple initialization.)
|
| |
|
|
|
|
|
|
|
| |
should not. Add a new parameter so that the caller can specify which is
the case.
Reported by: dillon
|
|
|
|
|
| |
generic host bridges: this avoids a race with the UniNorth
generic match.
|
|
|
|
|
|
|
| |
not ~1, but the call has been switched over to bus_alloc_resource_any()
which has the same effect.
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
|
|
|
|
|
|
|
| |
least unbreak the build.
Pointy hat to: peter
Not tested either by: benno
|
|
|
|
| |
files still #included the opt_ file. powerpc hadn't been updated yet.
|