tag | line | file | source code |
mpc | 138 | arch/i386/kernel/smp.c | static int smp_read_mpc(struct mp_config_table *mpc) |
mpc | 141 | arch/i386/kernel/smp.c | int count=sizeof(*mpc); |
mpc | 143 | arch/i386/kernel/smp.c | unsigned char *mpt=((unsigned char *)mpc)+count; |
mpc | 145 | arch/i386/kernel/smp.c | if(memcmp(mpc->mpc_signature,MPC_SIGNATURE,4)) |
mpc | 148 | arch/i386/kernel/smp.c | mpc->mpc_signature[0], |
mpc | 149 | arch/i386/kernel/smp.c | mpc->mpc_signature[1], |
mpc | 150 | arch/i386/kernel/smp.c | mpc->mpc_signature[2], |
mpc | 151 | arch/i386/kernel/smp.c | mpc->mpc_signature[3]); |
mpc | 154 | arch/i386/kernel/smp.c | if(mpf_checksum((unsigned char *)mpc,mpc->mpc_length)) |
mpc | 159 | arch/i386/kernel/smp.c | if(mpc->mpc_spec!=0x01 && mpc->mpc_spec!=0x04) |
mpc | 161 | arch/i386/kernel/smp.c | printk("Bad Config Table version (%d)!!\n",mpc->mpc_spec); |
mpc | 164 | arch/i386/kernel/smp.c | memcpy(str,mpc->mpc_oem,8); |
mpc | 167 | arch/i386/kernel/smp.c | memcpy(str,mpc->mpc_productid,12); |
mpc | 170 | arch/i386/kernel/smp.c | printk("APIC at: 0x%lX\n",mpc->mpc_lapic); |
mpc | 173 | arch/i386/kernel/smp.c | apic_addr = mpc->mpc_lapic; |
mpc | 179 | arch/i386/kernel/smp.c | while(count<mpc->mpc_length) |