diff options
author | benno <benno@FreeBSD.org> | 2002-04-20 10:06:22 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-04-20 10:06:22 +0000 |
commit | fbb3ffd56a35bdf97e4d5862b14b5e7024bc17a2 (patch) | |
tree | 689bf05d062e864abd07ed7449de54045ac246a8 /sys | |
parent | b8f64a3c9b3bd7bb19b93441339b8b098c625b2d (diff) | |
download | FreeBSD-src-fbb3ffd56a35bdf97e4d5862b14b5e7024bc17a2.zip FreeBSD-src-fbb3ffd56a35bdf97e4d5862b14b5e7024bc17a2.tar.gz |
Replace inline asm with it's inline function wrapper.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/powerpc/aim/clock.c | 2 | ||||
-rw-r--r-- | sys/powerpc/powerpc/clock.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/clock.c b/sys/powerpc/aim/clock.c index f2dccd6..02b956f 100644 --- a/sys/powerpc/aim/clock.c +++ b/sys/powerpc/aim/clock.c @@ -185,7 +185,7 @@ decr_intr(struct clockframe *frame) __asm ("mftb %0; mfdec %1" : "=r"(tb), "=r"(tick)); for (nticks = 0; tick < 0; nticks++) tick += ticks_per_intr; - __asm __volatile ("mtdec %0" :: "r"(tick)); + mtdec(tick); /* * lasttb is used during microtime. Set it to the virtual * start of this tick interval. diff --git a/sys/powerpc/powerpc/clock.c b/sys/powerpc/powerpc/clock.c index f2dccd6..02b956f 100644 --- a/sys/powerpc/powerpc/clock.c +++ b/sys/powerpc/powerpc/clock.c @@ -185,7 +185,7 @@ decr_intr(struct clockframe *frame) __asm ("mftb %0; mfdec %1" : "=r"(tb), "=r"(tick)); for (nticks = 0; tick < 0; nticks++) tick += ticks_per_intr; - __asm __volatile ("mtdec %0" :: "r"(tick)); + mtdec(tick); /* * lasttb is used during microtime. Set it to the virtual * start of this tick interval. |