taglinefilesource code
mpc131arch/i386/kernel/smp.cstatic int smp_read_mpc(struct mp_config_table *mpc)
mpc134arch/i386/kernel/smp.cint count=sizeof(*mpc);
mpc136arch/i386/kernel/smp.cunsigned char *mpt=((unsigned char *)mpc)+count;
mpc138arch/i386/kernel/smp.cif(memcmp(mpc->mpc_signature,MPC_SIGNATURE,4))
mpc141arch/i386/kernel/smp.cmpc->mpc_signature[0],
mpc142arch/i386/kernel/smp.cmpc->mpc_signature[1],
mpc143arch/i386/kernel/smp.cmpc->mpc_signature[2],
mpc144arch/i386/kernel/smp.cmpc->mpc_signature[3]);
mpc147arch/i386/kernel/smp.cif(mpf_checksum((unsigned char *)mpc,mpc->mpc_length))
mpc152arch/i386/kernel/smp.cif(mpc->mpc_spec!=0x01 && mpc->mpc_spec!=0x04)
mpc154arch/i386/kernel/smp.cprintk("Bad Config Table version (%d)!!\n",mpc->mpc_spec);
mpc157arch/i386/kernel/smp.cmemcpy(str,mpc->mpc_oem,8);
mpc160arch/i386/kernel/smp.cmemcpy(str,mpc->mpc_productid,12);
mpc163arch/i386/kernel/smp.cprintk("APIC at: 0x%lX\n",mpc->mpc_lapic);
mpc166arch/i386/kernel/smp.capic_addr = mpc->mpc_lapic;
mpc172arch/i386/kernel/smp.cwhile(count<mpc->mpc_length)