Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339151
b: refs/heads/master
c: e3228cf
h: refs/heads/master
i:
  339149: cde0f29
  339147: 9c9d193
  339143: 6f78840
  339135: 59e29b8
v: v3
  • Loading branch information
H. Peter Anvin committed Nov 29, 2012
1 parent dff2ec9 commit 899aed8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 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: a5c2a893dbd4956a72fb261e8790d19f67b52c99
refs/heads/master: e3228cf4544355f73437a2b9c6916be9cbafc201
4 changes: 0 additions & 4 deletions trunk/arch/x86/Kconfig.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,6 @@ config X86_INVD_BUG
def_bool y
depends on M486

config X86_POPAD_OK
def_bool y
depends on X86_32

config X86_ALIGNMENT_16
def_bool y
depends on MWINCHIP3D || MWINCHIPC6 || MCYRIXIII || MELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
Expand Down
28 changes: 0 additions & 28 deletions trunk/arch/x86/kernel/cpu/bugs.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,33 +106,6 @@ static void __init check_hlt(void)
pr_cont("OK\n");
}

/*
* Most 386 processors have a bug where a POPAD can lock the
* machine even from user space.
*/

static void __init check_popad(void)
{
#ifndef CONFIG_X86_POPAD_OK
int res, inp = (int) &res;

pr_info("Checking for popad bug... ");
__asm__ __volatile__(
"movl $12345678,%%eax; movl $0,%%edi; pusha; popa; movl (%%edx,%%edi),%%ecx "
: "=&a" (res)
: "d" (inp)
: "ecx", "edi");
/*
* If this fails, it means that any user program may lock the
* CPU hard. Too bad.
*/
if (res != 12345678)
pr_cont("Buggy\n");
else
pr_cont("OK\n");
#endif
}

/*
* Check whether we are able to run this kernel safely on SMP.
*
Expand All @@ -157,7 +130,6 @@ void __init check_bugs(void)
#endif
check_config();
check_hlt();
check_popad();
init_utsname()->machine[1] =
'0' + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86);
alternative_instructions();
Expand Down

0 comments on commit 899aed8

Please sign in to comment.