Subversion Repositories HelenOS

Rev

Rev 2131 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2131 Rev 2307
Line 57... Line 57...
57
 *
57
 *
58
 * Halt the current CPU until interrupt event.
58
 * Halt the current CPU until interrupt event.
59
 */
59
 */
60
static inline void cpu_halt(void)
60
static inline void cpu_halt(void)
61
{
61
{
62
    asm("hlt\n");
62
    asm volatile ("hlt\n");
63
};
63
};
64
 
64
 
65
static inline void cpu_sleep(void)
65
static inline void cpu_sleep(void)
66
{
66
{
67
    asm("hlt\n");
67
    asm volatile ("hlt\n");
68
};
68
};
69
 
69
 
70
#define GEN_READ_REG(reg) static inline unative_t read_ ##reg (void) \
70
#define GEN_READ_REG(reg) static inline unative_t read_ ##reg (void) \
71
    { \
71
    { \
72
    unative_t res; \
72
    unative_t res; \