Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Use __asm & __volatile to make lint...
details: https://anonhg.NetBSD.org/src/rev/cf950dda9662
branches: trunk
changeset: 544176:cf950dda9662
user: matt <matt%NetBSD.org@localhost>
date: Thu Mar 13 17:30:38 2003 +0000
description:
Use __asm & __volatile to make lint(1) happy.
diffstat:
sys/arch/powerpc/include/cpu.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (90 lines):
diff -r 393eb53b81ed -r cf950dda9662 sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h Thu Mar 13 17:02:52 2003 +0000
+++ b/sys/arch/powerpc/include/cpu.h Thu Mar 13 17:30:38 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.29 2003/03/11 10:40:16 hannken Exp $ */
+/* $NetBSD: cpu.h,v 1.30 2003/03/13 17:30:38 matt Exp $ */
/*
* Copyright (C) 1999 Wolfgang Solfrank.
@@ -117,7 +117,7 @@
{
int pir;
- asm ("mfspr %0,1023" : "=r"(pir));
+ __asm ("mfspr %0,1023" : "=r"(pir));
return pir;
}
@@ -146,7 +146,7 @@
{
struct cpu_info *ci;
- asm volatile ("mfsprg %0,0" : "=r"(ci));
+ __asm __volatile ("mfsprg %0,0" : "=r"(ci));
return ci;
}
@@ -159,7 +159,7 @@
{
register_t msr;
- asm volatile ("mfmsr %0" : "=r"(msr));
+ __asm __volatile ("mfmsr %0" : "=r"(msr));
return msr;
}
@@ -167,7 +167,7 @@
mtmsr(register_t msr)
{
- asm volatile ("mtmsr %0" : : "r"(msr));
+ __asm __volatile ("mtmsr %0" : : "r"(msr));
}
static __inline uint32_t
@@ -175,7 +175,7 @@
{
uint32_t tbl;
- asm volatile (
+ __asm __volatile (
#ifdef PPC_IBM403
" mftblo %0 \n"
#else
@@ -192,7 +192,7 @@
uint64_t tb;
int tmp;
- asm volatile (
+ __asm __volatile (
#ifdef PPC_IBM403
"1: mftbhi %0 \n"
" mftblo %0+1 \n"
@@ -214,7 +214,7 @@
{
uint32_t rtcl;
- asm volatile ("mfrtcl %0" : "=r"(rtcl));
+ __asm __volatile ("mfrtcl %0" : "=r"(rtcl));
return rtcl;
}
@@ -223,7 +223,7 @@
{
uint32_t tmp;
- asm volatile (
+ __asm __volatile (
"1: mfrtcu %0 \n"
" mfrtcl %1 \n"
" mfrtcu %2 \n"
@@ -237,7 +237,7 @@
{
uint32_t pvr;
- asm volatile ("mfpvr %0" : "=r"(pvr));
+ __asm __volatile ("mfpvr %0" : "=r"(pvr));
return (pvr);
}
Home |
Main Index |
Thread Index |
Old Index