Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/sun4u/asm.h

    r7a0359b reb79d60  
    2727 */
    2828
    29 /** @addtogroup sparc64
     29/** @addtogroup sparc64 
    3030 * @{
    3131 */
     
    3636#define KERN_sparc64_sun4u_ASM_H_
    3737
    38 #include <trace.h>
     38extern uint64_t read_from_ag_g7(void);
     39extern void write_to_ag_g6(uint64_t val);
     40extern void write_to_ag_g7(uint64_t val);
     41extern void write_to_ig_g6(uint64_t val);
     42
    3943
    4044/** Read Version Register.
    4145 *
    4246 * @return Value of VER register.
    43  *
    4447 */
    45 NO_TRACE static inline uint64_t ver_read(void)
     48static inline uint64_t ver_read(void)
    4649{
    4750        uint64_t v;
    4851       
    49         asm volatile (
    50                 "rdpr %%ver, %[v]\n"
    51                 : [v] "=r" (v)
    52         );
     52        asm volatile ("rdpr %%ver, %0\n" : "=r" (v));
    5353       
    5454        return v;
    5555}
    56 
    57 extern uint64_t read_from_ag_g7(void);
    58 extern void write_to_ag_g6(uint64_t);
    59 extern void write_to_ag_g7(uint64_t);
    60 extern void write_to_ig_g6(uint64_t);
    6156
    6257#endif
Note: See TracChangeset for help on using the changeset viewer.