Changeset 776c91a in mainline for arch/ia32/src/smp/mps.c


Ignore:
Timestamp:
2005-09-03T18:32:50Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78665c0
Parents:
5e2455a
Message:

Changes to make ia32 smp code not architecture dependent.
Changes to accomodate new gdtr loading scheme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/smp/mps.c

    r5e2455a r776c91a  
    162162void mps_init(void)
    163163{
    164         __u8 *addr[2] = { NULL, (__u8 *) 0xf0000 };
     164        __u8 *addr[2] = { NULL, (__u8 *) PA2KA(0xf0000) };
    165165        int i, j, length[2] = { 1024, 64*1024 };
    166166       
     
    173173         */
    174174
    175         addr[0] = (__u8 *) (ebda ? ebda : 639 * 1024);
     175        addr[0] = (__u8 *) PA2KA(ebda ? ebda : 639 * 1024);
    176176        for (i = 0; i < 2; i++) {
    177177                for (j = 0; j < length[i]; j += 16) {
     
    196196                }
    197197
    198                 ct = fs->configuration_table;
     198                ct = (struct mps_ct *)PA2KA((__address)fs->configuration_table);
    199199                frame_not_free((__address) ct);
    200200                config.cpu_count = configure_via_ct();
     
    224224        }
    225225       
    226         l_apic = ct->l_apic;
     226        l_apic = (__u32 *)PA2KA((__address)ct->l_apic);
    227227
    228228        cnt = 0;
     
    334334        }
    335335       
    336         io_apic = ioa->io_apic;
     336        io_apic = (__u32 *)PA2KA((__address)ioa->io_apic);
    337337}
    338338
Note: See TracChangeset for help on using the changeset viewer.