Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82396
b: refs/heads/master
c: 17b7a89
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Len Brown committed Feb 1, 2008
1 parent 6607fa7 commit 2344a8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: b28f508112c584cdfbb4d8a9489cc4b79dac68ee
refs/heads/master: 17b7a89cfb6ea2ff103785f9b2580e5138b6cfd1
8 changes: 6 additions & 2 deletions trunk/arch/x86/kernel/suspend_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ static void fix_processor_context(void)
int cpu = smp_processor_id();
struct tss_struct *t = &per_cpu(init_tss, cpu);

set_tss_desc(cpu,t); /* This just modifies memory; should not be necessary. But... This is necessary, because 386 hardware has concept of busy TSS or some similar stupidity. */
/*
* This just modifies memory; should not be necessary. But... This
* is necessary, because 386 hardware has concept of busy TSS or some
* similar stupidity.
*/
set_tss_desc(cpu, t);

get_cpu_gdt_table(cpu)[GDT_ENTRY_TSS].type = 9;

Expand All @@ -160,7 +165,6 @@ static void fix_processor_context(void)
loaddebug(&current->thread, 6);
loaddebug(&current->thread, 7);
}

}

#ifdef CONFIG_HIBERNATION
Expand Down

0 comments on commit 2344a8c

Please sign in to comment.