Subversion Repositories HelenOS

Rev

Rev 2262 | Rev 2312 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2262 Rev 2279
Line 62... Line 62...
62
      asm("mrs %0, " #reg : "=r"(retval)); \
62
      asm("mrs %0, " #reg : "=r"(retval)); \
63
      return retval; \
63
      return retval; \
64
  }
64
  }
65
 
65
 
66
#define GEN_STATUS_WRITE(nm,reg,fieldname, field) \
66
#define GEN_STATUS_WRITE(nm,reg,fieldname, field) \
67
  static void nm## _status_reg_ ##fieldname## _write(uint32_t value) \
67
  static inline void nm## _status_reg_ ##fieldname## _write(uint32_t value) \
68
  { \
68
  { \
69
      asm("msr " #reg "_" #field ", %0" : : "r"(value)); \
69
      asm("msr " #reg "_" #field ", %0" : : "r"(value)); \
70
  }
70
  }
71
 
71
 
72
 
72