Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70953
b: refs/heads/master
c: c1217a7
h: refs/heads/master
i:
  70951: 22630e0
v: v3
  • Loading branch information
Kirill Korotaev authored and Thomas Gleixner committed Oct 17, 2007
1 parent 5fdb2fc commit 77bd2a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f891dd18c107d582c3ab98da5209c930e16baf78
refs/heads/master: c1217a75ea102d4e69321f210fab60bc47b9a48e
2 changes: 1 addition & 1 deletion trunk/include/asm-x86/system_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static inline unsigned long native_read_cr4_safe(void)
{
unsigned long val;
/* This could fault if %cr4 does not exist */
asm("1: movl %%cr4, %0 \n"
asm volatile("1: movl %%cr4, %0 \n"
"2: \n"
".section __ex_table,\"a\" \n"
".long 1b,2b \n"
Expand Down
8 changes: 4 additions & 4 deletions trunk/include/asm-x86/system_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static inline void write_cr0(unsigned long val)
static inline unsigned long read_cr2(void)
{
unsigned long cr2;
asm("movq %%cr2,%0" : "=r" (cr2));
asm volatile("movq %%cr2,%0" : "=r" (cr2));
return cr2;
}

Expand All @@ -97,7 +97,7 @@ static inline void write_cr2(unsigned long val)
static inline unsigned long read_cr3(void)
{
unsigned long cr3;
asm("movq %%cr3,%0" : "=r" (cr3));
asm volatile("movq %%cr3,%0" : "=r" (cr3));
return cr3;
}

Expand All @@ -109,7 +109,7 @@ static inline void write_cr3(unsigned long val)
static inline unsigned long read_cr4(void)
{
unsigned long cr4;
asm("movq %%cr4,%0" : "=r" (cr4));
asm volatile("movq %%cr4,%0" : "=r" (cr4));
return cr4;
}

Expand All @@ -121,7 +121,7 @@ static inline void write_cr4(unsigned long val)
static inline unsigned long read_cr8(void)
{
unsigned long cr8;
asm("movq %%cr8,%0" : "=r" (cr8));
asm volatile("movq %%cr8,%0" : "=r" (cr8));
return cr8;
}

Expand Down

0 comments on commit 77bd2a2

Please sign in to comment.