| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
running on an amd64 kernel. Use the recently exposed direct %fs/%gs set
routines instead for the TLS setup of 32 bit binaries.
|
|
|
|
|
|
|
| |
run as a 32 bit support library for an amd64 kernel. 32 bit consumers of
libthr have zero chance of running on an amd64 kernel since we don't
implement the i386_set_ldt() family of functions. Note that this commit
doesn't make it actually work, it just removes one more obstacle.
|
|
|
|
|
|
|
|
|
| |
can't use the i386_set_ldt() family of routines, because they are not
implemented. Instead, use the recently exposed direct access sysarch
routines for setting what %fs and %gs point to.
Use this for the i386 TLS _set_tp() routine, but only when compiling to
run as a 32 bit support binary for amd64 kernels.
|
|
|
|
|
|
| |
Expose some of the amd64-specific sysarch functions to allow alternative
implementations of the %fs/%gs code for TLS, threads, etc. USER_LDT does
not exist on the amd64 kernel, so we have to implement things other ways.
|
|
|
|
|
|
|
|
|
|
|
|
| |
rates pretty high on the "hack!" scale, but it works for me. Adding
-DWANT_LIB32 to the world build command line, or 'WANT_LIB32=yes' to
/etc/make.conf will include the 32 bit libraries with the build.
I have not made this default behavior. Cross compiling this stuff is an
adventure I have not investigated.
This is still a WIP. We needed this at work so that we could install from
a readonly obj tree - lib32/build.sh wasn't up to that.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Don't export it to userland.
|
| |
|
| |
|
|
|
|
| |
cleared at the begin of thread_single() when needed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
priority. The sleep queues don't get updated when the priority of
threads changes, so sleepq_signal() might not always wakeup the
highest priority thread. Updating the queues when thread priorities
change cannot be easily done due to lock orders, so instead we do an
O(n) walk of the queue for a sleepq_signal() operation instead of O(1).
On the other hand, adding a thread to a sleep queue now goes from O(n)
to O(1) so it ends up as an even tradeoff. The correctness here with
regards to priorities is actually fairly important. msleep() gives
interactive threads their priority "boost" after they are placed on the
queue, but before this fix that "boost" wasn't used to determine the
highest priority thread that sleepq_signal() awoke.
- Fix up some comments.
Inspired by: ups, bde
|
|
|
|
| |
priority.
|
|
|
|
|
| |
trapframe, as it can be modified in the syscall.
Call thread_user_enter() when appropriate.
|
|
|
|
| |
Update comments to reflect reality.
|
|
|
|
|
| |
instead before calling initarm().
This removes the need to map virtual == physical in initarm().
|
| |
|
| |
|
|
|
|
| |
ARM9_CACHE_WRITE_THROUGH is defined.
|
|
|
|
|
|
|
|
|
|
| |
associated with each processor. This ID is inferred from the index
of the pcs structure in the hwprb.
- Give Alpha CPUs FreeBSD CPU IDs more like other architectures where the
boot processor is always CPU 0 and the other processors are numbered
1 ... N. List active CPUs in the system in cpu_mp_announce() as well.
Silence on: alpha@
|
|
|
|
|
|
|
|
|
|
| |
thread is created rather than adjusting the priority in the main
function. (kthread_create() should probably take the initial priority
as an argument.)
- Only yield the CPU in the !PREEMPTION case if there are any other
runnable threads. Yielding when there isn't anything else better to do
just wastes time in pointless context switches (albeit while the system
is idle.)
|
|
|
|
|
|
|
|
|
| |
- Tweak the updating of the ithread name in ithread_update() so that the
'+' and '*' characters for device names that were too short only get
added at the end after as many device names as possible were fit into
the allocated space. Prior to this, some long devices would result
in '+' chars showing up between two different devices rather than at the
end.
|
|
|
|
| |
alpha still doesn't use logical cpu id's.
|
|
|
|
|
| |
snp attached to a tty.
This fixes the panic that happens when using snp.
|
|
|
|
|
|
| |
interrupts will be enabled.
Spotted out by: jhb
|
|
|
|
|
| |
This means we'll always call the event hooks, device_shutdown etc on the
BSP and theoretically means we can de-cruftify the cpu_reset_proxy stuff.
|
| |
|
|
|
|
|
| |
rev 1.61 (scottl): Add KTR tracing
rev 1.62 (scottl): Optimize (td->pmap, inlines, etc)
|
|
|
|
|
|
| |
marking components as clean.
Pointed out by: scottl
|
|
|
|
| |
- Make kern.geom.raid3.timeout variable tunable.
|
|
|
|
|
|
| |
unmounted).
Suggested by: scottl
|
|
|
|
| |
- Remove unused #include.
|
|
|
|
|
| |
Now gmirror use shutdown hooks to mark mirrors as clean on shutdown,
so this is not needed anymore.
|
|
|
|
|
|
| |
unmounted.
Suggested by: scottl
|
| |
|
|
|
|
|
| |
no jobs that need to be remigrated. Remove the flags and the associated
code.
|
|
|
|
|
|
|
|
| |
seconds of idling, DRITY flags are removed.
- If mirror is in idle state or is not open for writing, sleep without
timeout when waiting for I/O requests.
- Don't use atomic operations, for now sysctls are protected by Giant.
- Update debugs.
|
|
|
|
|
|
|
| |
length argument to mbrtowc() that accounts for the terminating newline
character we add automatically. Failing to do this caused the loop to
unexpectedly run out of characters and incorrectly signal an "Illegal byte
sequence" error.
|
|
|
|
|
|
|
| |
Do not ignore all the signals in range [1..24].
PR: 65892
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix for good (I hope) force-stopping mirrors and some filure cases
(e.g. the last good component dies when synchronization is in progress).
Don't use ->nstart/->nend consumer's fields, as this could be racy,
because those fields are used in g_down/g_up, use ->index consumer's
field instead for tracking number of not finished requests.
Reported by: marcel
- After 5 seconds of idle time (this should be configurable) mark all
dirty providers as clean, so when mirror is not used in 5 seconds
and there will be power failure, no synchronization on boot is needed.
Idea from: sorry, I can't find who suggested this
- When there are no ACTIVE components and no NEW components destroy whole
mirror, not only provider.
- Fix one debug to show information about I/O request, before we change
its command.
|
| |
|
|
|
|
|
| |
- The 'before ipfw' directive seems bogus, and should instead
be 'before rcconf'.
|
|
|
|
|
| |
PR: 73380
Submitted by: Sebastian Schulze Struchtrup <seb@struchtrup.com>
|
|
|
|
|
|
|
| |
- Eliminate an initialized but unused variable.
- Eliminate an unnecessary call to clear the page's PG_BUSY flag. (The
call to vm_page_rename() already clears the page's PG_BUSY flag through
its call to vm_page_remove().)
|
|
|
|
| |
object before accessing the page's flags or the object's reference count.
|
|
|
|
|
| |
precedes a call to vm_page_rename(). (See the previous revision for a
detailed explanation.)
|
|
|
|
| |
to the archive.
|