-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 93532 b: refs/heads/master c: 537166f h: refs/heads/master v: v3
- Loading branch information
Al Viro
authored and
Bartlomiej Zolnierkiewicz
committed
Apr 26, 2008
1 parent
b39ec21
commit d73b38a
Showing
77 changed files
with
970 additions
and
1,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: b82287587ef9917afbea5fcbf7aa63424b6f3719 | ||
refs/heads/master: 537166f6fa282c683663d6ac0c631b7456b5be95 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/string.h> | ||
#include <asm/processor.h> | ||
|
||
#include "cpu.h" | ||
|
||
/* | ||
* Detect a NexGen CPU running without BIOS hypercode new enough | ||
* to have CPUID. (Thanks to Herbert Oppmann) | ||
*/ | ||
|
||
static int __cpuinit deep_magic_nexgen_probe(void) | ||
{ | ||
int ret; | ||
|
||
__asm__ __volatile__ ( | ||
" movw $0x5555, %%ax\n" | ||
" xorw %%dx,%%dx\n" | ||
" movw $2, %%cx\n" | ||
" divw %%cx\n" | ||
" movl $0, %%eax\n" | ||
" jnz 1f\n" | ||
" movl $1, %%eax\n" | ||
"1:\n" | ||
: "=a" (ret) : : "cx", "dx"); | ||
return ret; | ||
} | ||
|
||
static void __cpuinit init_nexgen(struct cpuinfo_x86 *c) | ||
{ | ||
c->x86_cache_size = 256; /* A few had 1 MB... */ | ||
} | ||
|
||
static void __cpuinit nexgen_identify(struct cpuinfo_x86 *c) | ||
{ | ||
/* Detect NexGen with old hypercode */ | ||
if (deep_magic_nexgen_probe()) | ||
strcpy(c->x86_vendor_id, "NexGenDriven"); | ||
} | ||
|
||
static struct cpu_dev nexgen_cpu_dev __cpuinitdata = { | ||
.c_vendor = "Nexgen", | ||
.c_ident = { "NexGenDriven" }, | ||
.c_models = { | ||
{ .vendor = X86_VENDOR_NEXGEN, | ||
.family = 5, | ||
.model_names = { [1] = "Nx586" } | ||
}, | ||
}, | ||
.c_init = init_nexgen, | ||
.c_identify = nexgen_identify, | ||
}; | ||
|
||
int __init nexgen_init_cpu(void) | ||
{ | ||
cpu_devs[X86_VENDOR_NEXGEN] = &nexgen_cpu_dev; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.