diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-07-19 15:32:49 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-07-19 15:32:49 +0000 |
commit | 4f1cb2342630e806399b2febafc8c215a8bf6059 (patch) | |
tree | 2eff2a16749e234a079a5fff3fdca4a6bc58c39b /src/arch/i386/smp | |
parent | e32243a9b1ee4b4008bed424908d98e99610b8ad (diff) |
move mptable to 960k to 1M
https://openbios.org/roundup/linuxbios/issue55
This patch is a little bit enhanced, it keeps the ppc table consistent,
which Yinghai's original patch did not.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2342 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/smp')
-rw-r--r-- | src/arch/i386/smp/mpspec.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/arch/i386/smp/mpspec.c b/src/arch/i386/smp/mpspec.c index daeb78435d..797dab43c6 100644 --- a/src/arch/i386/smp/mpspec.c +++ b/src/arch/i386/smp/mpspec.c @@ -48,6 +48,30 @@ void *smp_write_floating_table(unsigned long addr) return v; } +void *smp_write_floating_table_physaddr(unsigned long addr, unsigned long mpf_physptr) +{ + struct intel_mp_floating *mf; + void *v; + + v = (void *)addr; + mf = v; + mf->mpf_signature[0] = '_'; + mf->mpf_signature[1] = 'M'; + mf->mpf_signature[2] = 'P'; + mf->mpf_signature[3] = '_'; + mf->mpf_physptr = mpf_physptr; + mf->mpf_length = 1; + mf->mpf_specification = 4; + mf->mpf_checksum = 0; + mf->mpf_feature1 = 0; + mf->mpf_feature2 = 0; + mf->mpf_feature3 = 0; + mf->mpf_feature4 = 0; + mf->mpf_feature5 = 0; + mf->mpf_checksum = smp_compute_checksum(mf, mf->mpf_length*16); + return v; +} + void *smp_next_mpc_entry(struct mp_config_table *mc) { void *v; |