diff options
author | Peter Oruba <peter.oruba@amd.com> | 2008-07-28 12:44:21 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 13:57:57 -0400 |
commit | 8d86f390d9bb5b39f0a315838d1616de6363e1b9 (patch) | |
tree | f3857d76d029b87571ac5cb4e3c1bd9965c859f8 /include/asm-x86 | |
parent | 26bf7a48c33906cc3415a4492aa9ead7a75f1353 (diff) |
x86: major refactoring
Refactored code by introducing a two-module solution.
There is one general module in which vendor specific modules can hook into.
However, that is exclusive, there is only one vendor specific module
allowed at a time. A CPU vendor check makes sure only the correct
module for the underlying system gets called.
Functinally in terms of patch loading itself there are no changes. This
refactoring provides a basis for future implementations of other vendors'
patch loaders.
Signed-off-by: Peter Oruba <peter.oruba@amd.com>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/microcode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/microcode.h b/include/asm-x86/microcode.h index 9231c876e374..18b2aeec2adf 100644 --- a/include/asm-x86/microcode.h +++ b/include/asm-x86/microcode.h | |||
@@ -1,3 +1,6 @@ | |||
1 | extern int microcode_init(void *opaque, struct module *module); | ||
2 | extern void microcode_exit(void); | ||
3 | |||
1 | struct microcode_ops { | 4 | struct microcode_ops { |
2 | long (*get_next_ucode)(void **mc, long offset); | 5 | long (*get_next_ucode)(void **mc, long offset); |
3 | long (*microcode_get_next_ucode)(void **mc, long offset); | 6 | long (*microcode_get_next_ucode)(void **mc, long offset); |