x86: remove smp_apply_quirks()/smp_checks()
[linux-2.6.git] / arch / x86 / boot / mca.c
blob911eaae5d696427c98fdad7f344a14bdc0340efc
1 /* -*- linux-c -*- ------------------------------------------------------- *
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 * Copyright 2007 rPath, Inc. - All Rights Reserved
6 * This file is part of the Linux kernel, and is made available under
7 * the terms of the GNU General Public License version 2.
9 * ----------------------------------------------------------------------- */
12 * Get the MCA system description table
15 #include "boot.h"
17 int query_mca(void)
19 u8 err;
20 u16 es, bx, len;
22 asm("pushw %%es ; "
23 "int $0x15 ; "
24 "setc %0 ; "
25 "movw %%es, %1 ; "
26 "popw %%es"
27 : "=acd" (err), "=acdSD" (es), "=b" (bx)
28 : "a" (0xc000));
30 if (err)
31 return -1; /* No MCA present */
33 set_fs(es);
34 len = rdfs16(bx);
36 if (len > sizeof(boot_params.sys_desc_table))
37 len = sizeof(boot_params.sys_desc_table);
39 copy_from_fs(&boot_params.sys_desc_table, bx, len);
40 return 0;