Rev 2089 | Rev 2453 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2089 | Rev 2233 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | asm volatile ("andq %%rsp, %0\n" : "=r" (v) : "0" (~((uint64_t)STACK_SIZE-1))); |
53 | asm volatile ("andq %%rsp, %0\n" : "=r" (v) : "0" (~((uint64_t)STACK_SIZE-1))); |
54 | 54 | ||
55 | return v; |
55 | return v; |
56 | } |
56 | } |
57 | 57 | ||
58 | static inline void cpu_sleep(void) { __asm__ volatile ("hlt\n"); }; |
58 | static inline void cpu_sleep(void) |
- | 59 | { |
|
- | 60 | asm volatile ("hlt\n"); |
|
- | 61 | }; |
|
- | 62 | ||
59 | static inline void cpu_halt(void) { __asm__ volatile ("hlt\n"); }; |
63 | static inline void cpu_halt(void) |
- | 64 | { |
|
- | 65 | asm volatile ("hlt\n"); |
|
- | 66 | }; |
|
60 | 67 | ||
61 | 68 | ||
62 | /** Byte from port |
69 | /** Byte from port |
63 | * |
70 | * |
64 | * Get byte from port |
71 | * Get byte from port |