Rev 253 | Rev 268 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 253 | Rev 257 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | __asm__ volatile ("andq %%rsp, %0\n" : "=r" (v) : "0" (~((__u64)STACK_SIZE-1))); |
49 | __asm__ volatile ("andq %%rsp, %0\n" : "=r" (v) : "0" (~((__u64)STACK_SIZE-1))); |
50 | 50 | ||
51 | return v; |
51 | return v; |
52 | } |
52 | } |
53 | 53 | ||
54 | static inline void cpu_sleep(void) { __asm__("hlt"); }; |
54 | static inline void cpu_sleep(void) { __asm__ volatile ("hlt"); }; |
55 | static inline void cpu_halt(void) { __asm__("hlt"); }; |
55 | static inline void cpu_halt(void) { __asm__ volatile ("hlt"); }; |
56 | 56 | ||
57 | 57 | ||
58 | static inline __u8 inb(__u16 port) |
58 | static inline __u8 inb(__u16 port) |
59 | { |
59 | { |
60 | __u8 out; |
60 | __u8 out; |