diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-04-24 06:27:31 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-04-24 06:27:31 +0000 |
commit | e9149038ee852df06ca1269d9179f84e91353bfa (patch) | |
tree | 0b80711972c652a0d0ae9a17e0b4323435c776ac /src/arch/i386/smp/mpspec.c | |
parent | 6a30a5f891885daafd548e3cb3ab16ea94b781d3 (diff) |
Remove duplicate code.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4201 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/smp/mpspec.c')
-rw-r--r-- | src/arch/i386/smp/mpspec.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/arch/i386/smp/mpspec.c b/src/arch/i386/smp/mpspec.c index f72e362533..6746399d02 100644 --- a/src/arch/i386/smp/mpspec.c +++ b/src/arch/i386/smp/mpspec.c @@ -28,24 +28,7 @@ void *smp_write_floating_table(unsigned long addr) /* 16 byte align the table address */ addr = (addr + 0xf) & (~0xf); - 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 = (unsigned long)(((char *)v) + SMP_FLOATING_TABLE_LEN); - 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; + return smp_write_floating_table_physaddr(addr, addr + SMP_FLOATING_TABLE_LEN); } void *smp_write_floating_table_physaddr(unsigned long addr, unsigned long mpf_physptr) |