Commit fb444c7b authored by Joe Perches's avatar Joe Perches Committed by Ingo Molnar

include/asm-x86/lguest.h: checkpatch cleanups - formatting only

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent fd1ea0c2
...@@ -34,8 +34,7 @@ extern const char lgstart_iret[], lgend_iret[]; ...@@ -34,8 +34,7 @@ extern const char lgstart_iret[], lgend_iret[];
extern void lguest_iret(void); extern void lguest_iret(void);
extern void lguest_init(void); extern void lguest_init(void);
struct lguest_regs struct lguest_regs {
{
/* Manually saved part. */ /* Manually saved part. */
unsigned long eax, ebx, ecx, edx; unsigned long eax, ebx, ecx, edx;
unsigned long esi, edi, ebp; unsigned long esi, edi, ebp;
...@@ -51,8 +50,7 @@ struct lguest_regs ...@@ -51,8 +50,7 @@ struct lguest_regs
}; };
/* This is a guest-specific page (mapped ro) into the guest. */ /* This is a guest-specific page (mapped ro) into the guest. */
struct lguest_ro_state struct lguest_ro_state {
{
/* Host information we need to restore when we switch back. */ /* Host information we need to restore when we switch back. */
u32 host_cr3; u32 host_cr3;
struct desc_ptr host_idt_desc; struct desc_ptr host_idt_desc;
...@@ -67,8 +65,7 @@ struct lguest_ro_state ...@@ -67,8 +65,7 @@ struct lguest_ro_state
struct desc_struct guest_gdt[GDT_ENTRIES]; struct desc_struct guest_gdt[GDT_ENTRIES];
}; };
struct lg_cpu_arch struct lg_cpu_arch {
{
/* The GDT entries copied into lguest_ro_state when running. */ /* The GDT entries copied into lguest_ro_state when running. */
struct desc_struct gdt[GDT_ENTRIES]; struct desc_struct gdt[GDT_ENTRIES];
...@@ -85,7 +82,7 @@ static inline void lguest_set_ts(void) ...@@ -85,7 +82,7 @@ static inline void lguest_set_ts(void)
cr0 = read_cr0(); cr0 = read_cr0();
if (!(cr0 & 8)) if (!(cr0 & 8))
write_cr0(cr0|8); write_cr0(cr0 | 8);
} }
/* Full 4G segment descriptors, suitable for CS and DS. */ /* Full 4G segment descriptors, suitable for CS and DS. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment