tag | line | file | source code |
mpc | 130 | arch/i386/kernel/smp.c | static int smp_read_mpc(struct mp_config_table *mpc) |
mpc | 133 | arch/i386/kernel/smp.c | int count=sizeof(*mpc); |
mpc | 135 | arch/i386/kernel/smp.c | unsigned char *mpt=((unsigned char *)mpc)+count; |
mpc | 137 | arch/i386/kernel/smp.c | if(memcmp(mpc->mpc_signature,MPC_SIGNATURE,4)) |
mpc | 140 | arch/i386/kernel/smp.c | mpc->mpc_signature[0], |
mpc | 141 | arch/i386/kernel/smp.c | mpc->mpc_signature[1], |
mpc | 142 | arch/i386/kernel/smp.c | mpc->mpc_signature[2], |
mpc | 143 | arch/i386/kernel/smp.c | mpc->mpc_signature[3]); |
mpc | 146 | arch/i386/kernel/smp.c | if(mpf_checksum((unsigned char *)mpc,mpc->mpc_length)) |
mpc | 151 | arch/i386/kernel/smp.c | if(mpc->mpc_spec!=0x01 && mpc->mpc_spec!=0x04) |
mpc | 153 | arch/i386/kernel/smp.c | printk("Bad Config Table version (%d)!!\n",mpc->mpc_spec); |
mpc | 156 | arch/i386/kernel/smp.c | memcpy(str,mpc->mpc_oem,8); |
mpc | 159 | arch/i386/kernel/smp.c | memcpy(str,mpc->mpc_productid,12); |
mpc | 162 | arch/i386/kernel/smp.c | printk("APIC at: 0x%lX\n",mpc->mpc_lapic); |
mpc | 165 | arch/i386/kernel/smp.c | apic_addr = mpc->mpc_lapic; |
mpc | 171 | arch/i386/kernel/smp.c | while(count<mpc->mpc_length) |