]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Corrected some typos
authormahi <devnull@localhost>
Wed, 15 Feb 2012 14:41:46 +0000 (15:41 +0100)
committermahi <devnull@localhost>
Wed, 15 Feb 2012 14:41:46 +0000 (15:41 +0100)
include/Compiler.h
include/ppc/Cpu.h

index f0945726f31997c3bb4a92d8c7585e7d69e8c5ae..5009ff4b30d7d273258613b2c6535845a0f90264 100644 (file)
@@ -59,7 +59,7 @@
 \r
 #define CONSTP2CONST(ptrtype, memclass, ptrclass) const ptrtype * const\r
 \r
-#define P2FUNC(rettype,ptrclass,fctname) retype (*fctname)\r
+#define P2FUNC(rettype,ptrclass,fctname) rettype (*fctname)\r
 \r
 #define CONST(consttype,memclass) const consttype\r
 \r
index be91bfdef767d3b7aef3726b21878d0539c82292..4bd224ef1320c45212f09f8ac6217443a11c29de 100644 (file)
@@ -18,7 +18,7 @@
 #define CPU_H\r
 \r
 #include "Std_Types.h"\r
-typedef uint32_t imask_t;\r
+typedef uint32 imask_t;\r
 \r
 //#if defined(__DCC__)\r
 //#include <diab/ppcasm.h>\r
@@ -162,7 +162,7 @@ asm uint32 get_spr(uint32 spr_nr)
 #else\r
 #define get_spr(spr_nr)        CC_EXTENSION \\r
 ({\\r
-       uint32_t __val;\\r
+       uint32 __val;\\r
        asm volatile (" mfspr %0," STRINGIFY__(spr_nr) : "=r"(__val) : );\\r
        __val;\\r
 })\r
@@ -179,7 +179,7 @@ asm volatile unsigned long get_msr()
 }\r
 #else\r
 static inline unsigned long get_msr() {\r
-       uint32_t msr;\r
+       uint32 msr;\r
        asm volatile("mfmsr %[msr]":[msr] "=r" (msr ) );\r
        return msr;\r
 }\r
@@ -320,7 +320,7 @@ static inline void to_user_mode( void ) {
 // StatusType CallService(     TrustedFunctionIndexType ix,\r
 //                                                     TrustedFunctionParameterRefType params )\r
 \r
-typedef void ( * service_func_t)( uint16_t , void * );\r
+typedef void ( * service_func_t)( uint16 , void * );\r
 extern service_func_t oil_trusted_func_list[];\r
 \r
 /* Macros for SC_CALL macro */\r
@@ -336,7 +336,7 @@ extern service_func_t oil_trusted_func_list[];
 /* TODO: Fix this.. */\r
 #define CallService(index,param) \\r
        ({ \\r
-               register uint32_t r3 asm ("r3"); \\r
+               register uint32 r3 asm ("r3"); \\r
                register void * r4 asm ("r4"); \\r
                r3 = index; \\r
                r4 = param; \\r