diff options
author | Joe Perches <joe@perches.com> | 2008-03-23 04:02:37 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:24 -0400 |
commit | fb444c7b25420d57ce5e31cab486f734705bd278 (patch) | |
tree | 99e01991e539db83e2381a67a5b5616aa6225808 /include/asm-x86/lguest.h | |
parent | fd1ea0c25ae00e2ac55881af55c3206664dd59a8 (diff) |
include/asm-x86/lguest.h: checkpatch cleanups - formatting only
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/lguest.h')
-rw-r--r-- | include/asm-x86/lguest.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/asm-x86/lguest.h b/include/asm-x86/lguest.h index 9b17571e9bc3..be4a7247fa2b 100644 --- a/include/asm-x86/lguest.h +++ b/include/asm-x86/lguest.h | |||
@@ -34,8 +34,7 @@ extern const char lgstart_iret[], lgend_iret[]; | |||
34 | extern void lguest_iret(void); | 34 | extern void lguest_iret(void); |
35 | extern void lguest_init(void); | 35 | extern void lguest_init(void); |
36 | 36 | ||
37 | struct lguest_regs | 37 | struct lguest_regs { |
38 | { | ||
39 | /* Manually saved part. */ | 38 | /* Manually saved part. */ |
40 | unsigned long eax, ebx, ecx, edx; | 39 | unsigned long eax, ebx, ecx, edx; |
41 | unsigned long esi, edi, ebp; | 40 | unsigned long esi, edi, ebp; |
@@ -51,8 +50,7 @@ struct lguest_regs | |||
51 | }; | 50 | }; |
52 | 51 | ||
53 | /* This is a guest-specific page (mapped ro) into the guest. */ | 52 | /* This is a guest-specific page (mapped ro) into the guest. */ |
54 | struct lguest_ro_state | 53 | struct lguest_ro_state { |
55 | { | ||
56 | /* Host information we need to restore when we switch back. */ | 54 | /* Host information we need to restore when we switch back. */ |
57 | u32 host_cr3; | 55 | u32 host_cr3; |
58 | struct desc_ptr host_idt_desc; | 56 | struct desc_ptr host_idt_desc; |
@@ -67,8 +65,7 @@ struct lguest_ro_state | |||
67 | struct desc_struct guest_gdt[GDT_ENTRIES]; | 65 | struct desc_struct guest_gdt[GDT_ENTRIES]; |
68 | }; | 66 | }; |
69 | 67 | ||
70 | struct lg_cpu_arch | 68 | struct lg_cpu_arch { |
71 | { | ||
72 | /* The GDT entries copied into lguest_ro_state when running. */ | 69 | /* The GDT entries copied into lguest_ro_state when running. */ |
73 | struct desc_struct gdt[GDT_ENTRIES]; | 70 | struct desc_struct gdt[GDT_ENTRIES]; |
74 | 71 | ||
@@ -85,7 +82,7 @@ static inline void lguest_set_ts(void) | |||
85 | 82 | ||
86 | cr0 = read_cr0(); | 83 | cr0 = read_cr0(); |
87 | if (!(cr0 & 8)) | 84 | if (!(cr0 & 8)) |
88 | write_cr0(cr0|8); | 85 | write_cr0(cr0 | 8); |
89 | } | 86 | } |
90 | 87 | ||
91 | /* Full 4G segment descriptors, suitable for CS and DS. */ | 88 | /* Full 4G segment descriptors, suitable for CS and DS. */ |