Age | Commit message (Collapse) | Author |
|
address space. The space between PAGE_SIZE and the non-pie fixed link
address creates no mmap pressure so use that space for PIE. However on
hppa the non-pie fixed link address is PAGE_SIZE so just use a small range
for PIE to minimize mmap pressure.
okay miod@
|
|
in the MI code.
|
|
process_write_regs().
|
|
|
|
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@
|
|
Right now when mi_switch picks up the same proc, we didn't clear the
flag which would mean that every time we service an AST we would attempt
a context switch. For some architectures, amd64 being probably the
most extreme, that meant attempting to context switch for every
trap and interrupt.
Now we clear_resched explicitly after every context switch, even if it
didn't do anything. Which also allows us to remove some more code
in cpu_switchto (not done yet).
miod@ ok
|
|
and can not work from a stack address only. Mention this and abort instead of
printing a wrong trace. (prefer kern.splassert=3 to =2 on these platforms)
|
|
conversions that should shave a few bytes off the kernel.
ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer
FOO|BAR''; thanks for looking.
|
|
|
|
tested by maja@
|
|
available memory regions will be reported to be in VM_FREELIST_DEFAULT.
Add a few quirks to cope with (some) IP27 and IP30 weirdness.
|
|
code soon. Similar to what ddb does, but does not need ddb to be compiled in.
|
|
and a time-of-day chip (wherever it gets found).
|
|
|
|
|
|
Define a symbolic ``cached'' attribute, to be used for cached mappings
regardless of the system's cache coherency.
|
|
|
|
segments and the number of freelists.
|
|
|
|
reason this would have been blatant on sparc on motorola, one more proof
mips is the ante${DEITY} yet fun to live with.
|
|
|
|
different now.
|
|
|
|
inherited from OpenBSD/arc machines with ISA bus; mainbus children match on
device name and other hierarchies match on simplified locators.
As a bonus, attachment lines in dmesg will now print their locators.
ok jsing@
|
|
|
|
|
|
handle XKPHYS addresses correctly.
|
|
as the Octane; joint work with jsing@
|
|
RM7000 machines.
|
|
- evict the memory from cache in pmap_page_free().
- make sure to sync cache in pmap_protect() if it marks a modified cacheable
page as read-only.
|
|
instead of when removing the last page. It looked correct, but is defeated
by ``index'' cache invalidates.
|
|
when machdep.kbdreset is set, and the correct interrupt is fired,
the machine gets shut down.
with help from and ok jsing@, ok miod@
|
|
ok miod@
|
|
it later on.
ok miod@
|
|
|
|
ok jsing@ a while ago (and this diff is much much older)
|
|
the break.
|
|
|
|
pmap_update() to return with this value in v0. A void function. Bwahahaha.
|
|
ok miod@
|
|
tested by deraadt@ jsing@
|
|
|
|
pmap.h now includes pte.h.
|
|
|
|
|
|
|
|
- Move the functionality of choosing a process from cpu_switch into
a much simpler function: cpu_switchto. Instead of having the locore
code walk the run queues, let the MI code choose the process we
want to run and only implement the context switching itself in MD
code.
- Let MD context switching run without worrying about spls or locks.
- Instead of having the idle loop implemented with special contexts
in MD code, implement one idle proc for each cpu. make the idle
loop MI with MD hooks.
- Change the proc lists from the old style vax queues to TAILQs.
- Change the sleep queue from vax queues to TAILQs. This makes
wakeup() go from O(n^2) to O(n)
there will be some MD fallout, but it will be fixed shortly.
There's also a few cleanups to be done after this.
deraadt@, kettenis@ ok
|
|
ok art@
|
|
the holes a MMU may have from a given vm_map. This will be automagically
invoked for newly created vmspaces.
On platforms with MMU holes (e.g. sun4, sun4c and vax), this prevents
mmap(2) hints which would end up being in the hole to be accepted as valid,
causing unexpected signals when the process tries to access the hole
(since pmap can not fill the hole anyway).
Unfortunately, the logic mmap() uses to pick a valid address for anonymous
mappings needs work, as it will only try to find an address higher than the
hint, which causes all mmap() with a hint in the hole to fail on vax. This
will be improved later.
|
|
correctly in child_return()'s userret(); makes the sys/kern/signal/earlysig
regression test pass. From a 2.5 years old diff I should have commited much
earlier.
|