Changeset d6dcdd2e in mainline for arch/amd64/include/asm.h
- Timestamp:
- 2005-09-13T21:20:56Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 01e48c1
- Parents:
- b1cf98c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
rb1cf98c rd6dcdd2e 52 52 } 53 53 54 static inline void cpu_sleep(void) { __asm__ volatile ("hlt "); };55 static inline void cpu_halt(void) { __asm__ volatile ("hlt "); };54 static inline void cpu_sleep(void) { __asm__ volatile ("hlt\n"); }; 55 static inline void cpu_halt(void) { __asm__ volatile ("hlt\n"); }; 56 56 57 57 … … 61 61 62 62 __asm__ volatile ( 63 "mov %1, %%dx ;"64 "inb %%dx,%%al ;"65 "mov %%al, %0 ;"63 "mov %1, %%dx\n" 64 "inb %%dx,%%al\n" 65 "mov %%al, %0\n" 66 66 :"=m"(out) 67 67 :"m"(port) … … 74 74 { 75 75 __asm__ volatile ( 76 "mov %0,%%dx ;"77 "mov %1,%%al ;"78 "outb %%al,%%dx ;"76 "mov %0,%%dx\n" 77 "mov %1,%%al\n" 78 "outb %%al,%%dx\n" 79 79 : 80 80 :"m"( port), "m" (b) … … 150 150 { 151 151 __u64 v; 152 __asm__ volatile ("movq %%cr0,%0 " : "=r" (v));152 __asm__ volatile ("movq %%cr0,%0\n" : "=r" (v)); 153 153 return v; 154 154 } … … 163 163 { 164 164 __u64 v; 165 __asm__ volatile ("movq %%cr2,%0 " : "=r" (v));165 __asm__ volatile ("movq %%cr2,%0\n" : "=r" (v)); 166 166 return v; 167 167 } … … 199 199 { 200 200 __asm__ volatile ( 201 "movl $0x1b, %%ecx ;"202 "rdmsr ;"203 "orl $(1<<11),%%eax ;"204 "orl $(0xfee00000),%%eax ;"205 "wrmsr ;"201 "movl $0x1b, %%ecx\n" 202 "rdmsr\n" 203 "orl $(1<<11),%%eax\n" 204 "orl $(0xfee00000),%%eax\n" 205 "wrmsr\n" 206 206 : 207 207 :
Note:
See TracChangeset
for help on using the changeset viewer.