summaryrefslogtreecommitdiffstats
path: root/sys/mips/mips/tick.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2010-04-17 01:17:31 +0000
committerjmallett <jmallett@FreeBSD.org>2010-04-17 01:17:31 +0000
commit5605409291ac3900f8567c14cd145a54e8d40d4c (patch)
treed7b7271e82cef089f8a18f89e2c20d7effe10f9b /sys/mips/mips/tick.c
parent37d2dea4b87361802ffcdec406493aa452b87577 (diff)
downloadFreeBSD-src-5605409291ac3900f8567c14cd145a54e8d40d4c.zip
FreeBSD-src-5605409291ac3900f8567c14cd145a54e8d40d4c.tar.gz
o) Use inline functions to access coprocessor 0 registers rather than external
ones implemented using assembly. o) Use TRAPF_USERMODE() consistently rather than USERMODE(). Eliminate <machine/psl.h> as a result. o) Use intr_*() rather than *intr(), consistently. o) Use register_t instead of u_int in some trap code. o) Merge some more endian-related macros to machine/asm.h from NetBSD. o) Add PTR_LI macro, which loads an address with the correct sign-extension for a pointer. o) Restore interrupts when bailing out due to an excessive IRQ in nexus_setup_intr(). o) Remove unused functions from psraccess.S. o) Enter temporary virtual entries for large memory access into the page tables rather than simply hoping they stay resident in the TLB and we don't need to do a refill for them. o) Abstract out large memory mapping setup/teardown using some macros. o) Do mips_dcache_wbinv_range() when using temporary virtual addresses just like we do when we can use the direct map.
Diffstat (limited to 'sys/mips/mips/tick.c')
-rw-r--r--sys/mips/mips/tick.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/mips/mips/tick.c b/sys/mips/mips/tick.c
index 60b3511..d2678b1 100644
--- a/sys/mips/mips/tick.c
+++ b/sys/mips/mips/tick.c
@@ -301,16 +301,16 @@ clock_intr(void *arg)
if (cpu_ticks->hard_ticks >= cycles_per_hz) {
cpu_ticks->hard_ticks -= cycles_per_hz;
if (PCPU_GET(cpuid) == 0)
- hardclock(USERMODE(tf->sr), tf->pc);
+ hardclock(TRAPF_USERMODE(tf), tf->pc);
else
- hardclock_cpu(USERMODE(tf->sr));
+ hardclock_cpu(TRAPF_USERMODE(tf));
}
/* Fire statclock at stathz. */
cpu_ticks->stat_ticks += delta;
if (cpu_ticks->stat_ticks >= cycles_per_stathz) {
cpu_ticks->stat_ticks -= cycles_per_stathz;
- statclock(USERMODE(tf->sr));
+ statclock(TRAPF_USERMODE(tf));
}
/* Fire profclock at profhz, but only when needed. */
@@ -318,7 +318,7 @@ clock_intr(void *arg)
if (cpu_ticks->prof_ticks >= cycles_per_profhz) {
cpu_ticks->prof_ticks -= cycles_per_profhz;
if (profprocs != 0)
- profclock(USERMODE(tf->sr), tf->pc);
+ profclock(TRAPF_USERMODE(tf), tf->pc);
}
critical_exit();
#if 0 /* TARGET_OCTEON */
OpenPOWER on IntegriCloud