mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] MCA: garbage collect sys_desc_table
@ 2015-07-08 17:14 Paolo Pisati
  2015-07-08 17:14 ` Paolo Pisati
  2015-07-10  9:06 ` Resend: Re: [PATCH] x86: MCA: garbage collect sys_desc_table Paolo Pisati
  0 siblings, 2 replies; 6+ messages in thread
From: Paolo Pisati @ 2015-07-08 17:14 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin, Thomas Gleixner, x86, linux-kernel

Is sys_desc_table still used anywhere? It seems not:

arch/x86/boot/mca.c::query_mca()
...
    copy_from_fs(&boot_params.sys_desc_table, oreg.bx, len);
...

arch/x86/kernel/setup.c::setup_arch()
...
    if (boot_params.sys_desc_table.length != 0) {
        machine_id = boot_params.sys_desc_table.table[0];
        machine_submodel_id = boot_params.sys_desc_table.table[1];
        BIOS_revision = boot_params.sys_desc_table.table[2];
    }
...

$ git grep machine_id
...
arch/x86/include/asm/processor.h:extern unsigned int            machine_id;
arch/x86/kernel/setup.c:unsigned int machine_id;
arch/x86/kernel/setup.c:                machine_id = boot_params.sys_desc_table.table[0];
...

$ git grep machine_submodel_id
arch/x86/include/asm/processor.h:extern unsigned int machine_submodel_id;
arch/x86/kernel/setup.c:unsigned int machine_submodel_id;
arch/x86/kernel/setup.c:                machine_submodel_id = boot_params.sys_desc_table.table[1];

$ git grep BIOS_revision
arch/x86/include/asm/processor.h:extern unsigned int            BIOS_revision;
arch/x86/kernel/setup.c:unsigned int BIOS_revision;
arch/x86/kernel/setup.c:                BIOS_revision = boot_params.sys_desc_table.table[2];

Compile tested with i386_defconfig, x86_64_defconfig and allyesconfig.

Paolo Pisati (1):
  MCA: garbage collect sys_desc_table

 Documentation/x86/zero-page.txt       |  1 -
 arch/x86/boot/Makefile                |  2 +-
 arch/x86/boot/boot.h                  |  3 ---
 arch/x86/boot/compressed/eboot.c      |  4 ----
 arch/x86/boot/main.c                  |  3 ---
 arch/x86/boot/mca.c                   | 38 -----------------------------------
 arch/x86/include/asm/processor.h      |  8 --------
 arch/x86/include/uapi/asm/bootparam.h | 19 +++++++-----------
 arch/x86/kernel/kexec-bzimage64.c     |  3 ---
 arch/x86/kernel/setup.c               |  5 -----
 10 files changed, 8 insertions(+), 78 deletions(-)
 delete mode 100644 arch/x86/boot/mca.c

-- 
2.1.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-21  9:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 17:14 [PATCH] MCA: garbage collect sys_desc_table Paolo Pisati
2015-07-08 17:14 ` Paolo Pisati
2015-07-16 16:13   ` Thomas Gleixner
2015-07-20 16:23     ` [PATCH v2] x86: MCA: obsolete sys_desc_table Paolo Pisati
2015-07-21  9:44       ` [tip:x86/boot] x86/boot: Obsolete the MCA sys_desc_table tip-bot for Paolo Pisati
2015-07-10  9:06 ` Resend: Re: [PATCH] x86: MCA: garbage collect sys_desc_table Paolo Pisati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome