diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2001-12-29 06:51:14 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2001-12-29 06:51:14 +0000 |
commit | 7bb428295f16914700967279040facbd83e4c26c (patch) | |
tree | 6ff05eeed2591f53afe33175ee05d3f77198066a /sys/sparc64/include/cpu.h | |
parent | 812a805e2454c981b4067c85abaef2315f24523a (diff) | |
download | src-7bb428295f16914700967279040facbd83e4c26c.tar.gz src-7bb428295f16914700967279040facbd83e4c26c.zip |
Implement CLKF_USERMODE so that user time is accounted properly.
Submitted by: tmm
Notes
Notes:
svn path=/head/; revision=88619
Diffstat (limited to 'sys/sparc64/include/cpu.h')
-rw-r--r-- | sys/sparc64/include/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/include/cpu.h b/sys/sparc64/include/cpu.h index 7d322fe08896..909e54f97372 100644 --- a/sys/sparc64/include/cpu.h +++ b/sys/sparc64/include/cpu.h @@ -44,7 +44,7 @@ #include <machine/frame.h> #include <machine/tstate.h> -#define CLKF_USERMODE(cfp) (0) +#define CLKF_USERMODE(cfp) TRAPF_USERMODE(&(cfp)->cf_tf) #define CLKF_PC(cfp) ((cfp)->cf_tf.tf_tpc) #define TRAPF_PC(tfp) ((tfp)->tf_tpc) @@ -80,7 +80,7 @@ static __inline u_int64_t get_cyclecount(void) { - return (rdpr(tick)); + return (rd(tick)); } #endif |