| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ARM_USE_SMALL_ALLOC work.
|
|
|
|
| |
Submitted by: Max M. Boyarov <m.boyarov bsd by>
|
|
|
|
|
|
|
|
| |
whole the physical memory, cached, using 1MB section mappings. This reduces
the address space available for user processes a bit, but given the amount of
memory a typical arm machine has, it is not (yet) a big issue.
It then provides a uma_small_alloc() that works as it does for architectures
which have a direct mapping.
|
|
|
|
| |
Approved by: cognet
|
|
|
|
| |
Approved by: cognet
|
|
|
|
| |
Submitted by: kevlo
|
| |
|
|
|
|
| |
Submitted by: kevlo
|
|
|
|
|
|
| |
it.
Submitted by: kevlo
|
|
|
|
| |
the resource after.
|
|
|
|
| |
go ahead and set the rid for that resource.
|
|
|
|
| |
SYS_RES_IOPORT.
|
|
|
|
| |
timecounter (because gxemul doesn't emule it yet).
|
| |
|
|
|
|
|
| |
zeroing a physical page, or we could end up re-zeroing portions of
memory we have zeroed before, which is clearly not wanted.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
passing a pointer to an opaque clockframe structure and requiring the
MD code to supply CLKF_FOO() macros to extract needed values out of the
opaque structure, just pass the needed values directly. In practice this
means passing the pair (usermode, pc) to hardclock() and profclock() and
passing the boolean (usermode) to hardclock_cpu() and hardclock_process().
Other details:
- Axe clockframe and CLKF_FOO() macros on all architectures. Basically,
all the archs were taking a trapframe and converting it into a clockframe
one way or another. Now they can just extract the PC and usermode values
directly out of the trapframe and pass it to fooclock().
- Renamed hardclock_process() to hardclock_cpu() as the latter is more
accurate.
- On Alpha, we now run profclock() at hz (profhz == hz) rather than at
the slower stathz.
- On Alpha, for the TurboLaser machines that don't have an 8254
timecounter, call hardclock() directly. This removes an extra
conditional check from every clock interrupt on Alpha on the BSP.
There is probably room for even further pruning here by changing Alpha
to use the simplified timecounter we use on x86 with the lapic timer
since we don't get interrupts from the 8254 on Alpha anyway.
- On x86, clkintr() shouldn't ever be called now unless using_lapic_timer
is false, so add a KASSERT() to that affect and remove a condition
to slightly optimize the non-lapic case.
- Change prototypeof arm_handler_execute() so that it's first arg is a
trapframe pointer rather than a void pointer for clarity.
- Use KCOUNT macro in profclock() to lookup the kernel profiling bucket.
Tested on: alpha, amd64, arm, i386, ia64, sparc64
Reviewed by: bde (mostly)
|
| |
|
|
|
|
| |
- Use spin locks instead of sleep locks.
|
| |
|
|
|
|
| |
to override the frequency
|
|
|
|
| |
Add a dummy _start function to make the non-elf version of the wrapper work.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The DMA controller driver only knows how to do memory to memory copies, and
the AAU driver how to zero a chunk of memory.
Use them to process big (>=1KB) copying/zeroing.
|
|
|
|
|
|
|
| |
dumped.
For iq31244_machdep.c, attempt to recognize hints provided by the elf
trampoline.
|
|
|
|
| |
Spotted out by: phk
|
|
|
|
| |
Approved by: re (blanket)
|
|
|
|
|
| |
interrupts.
- Implement teardown methods where appropriate.
|
|
|
|
|
| |
an implementation of uma_small_alloc() which tries to preallocate memory
1MB per 1MB, and maps it into a section mapping.
|
| |
|
| |
|
| |
|
|
|
|
| |
going on, it produces random memory corruption.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
specific mappings from locore.S, re-organize iq31244_machdep.c to work with
the new locore.S
Spotted out by: jmg
|
| |
|
| |
|
| |
|
|
|
|
| |
While I'm there, remove dead code.
|
| |
|
|
|
|
| |
Obtained from: NetBSD
|
| |
|
| |
|
| |
|
|
|
|
| |
Obtained from: NetBSD
|