tag | line | file | source code |
mpc | 131 | arch/i386/kernel/smp.c | static int smp_read_mpc(struct mp_config_table *mpc) |
mpc | 134 | arch/i386/kernel/smp.c | int count=sizeof(*mpc); |
mpc | 136 | arch/i386/kernel/smp.c | unsigned char *mpt=((unsigned char *)mpc)+count; |
mpc | 138 | arch/i386/kernel/smp.c | if(memcmp(mpc->mpc_signature,MPC_SIGNATURE,4)) |
mpc | 141 | arch/i386/kernel/smp.c | mpc->mpc_signature[0], |
mpc | 142 | arch/i386/kernel/smp.c | mpc->mpc_signature[1], |
mpc | 143 | arch/i386/kernel/smp.c | mpc->mpc_signature[2], |
mpc | 144 | arch/i386/kernel/smp.c | mpc->mpc_signature[3]); |
mpc | 147 | arch/i386/kernel/smp.c | if(mpf_checksum((unsigned char *)mpc,mpc->mpc_length)) |
mpc | 152 | arch/i386/kernel/smp.c | if(mpc->mpc_spec!=0x01 && mpc->mpc_spec!=0x04) |
mpc | 154 | arch/i386/kernel/smp.c | printk("Bad Config Table version (%d)!!\n",mpc->mpc_spec); |
mpc | 157 | arch/i386/kernel/smp.c | memcpy(str,mpc->mpc_oem,8); |
mpc | 160 | arch/i386/kernel/smp.c | memcpy(str,mpc->mpc_productid,12); |
mpc | 163 | arch/i386/kernel/smp.c | printk("APIC at: 0x%lX\n",mpc->mpc_lapic); |
mpc | 166 | arch/i386/kernel/smp.c | apic_addr = mpc->mpc_lapic; |
mpc | 172 | arch/i386/kernel/smp.c | while(count<mpc->mpc_length) |