Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1289879
| From | Andy Lutomirski <luto@amacapital.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables |
| Date | 2015-12-11 21:10 +0100 |
| Message-ID | <qECaR-IL-13@gated-at.bofh.it> (permalink) |
| References | <qEBHP-ir-5@gated-at.bofh.it> <qEBHP-ir-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Dec 10, 2015 at 1:58 PM, Tony Luck <tony.luck@intel.com> wrote:
> Copy the existing page fault fixup mechanisms to create a new table
> to be used when fixing machine checks. Note:
> 1) At this time we only provide a macro to annotate assembly code
> 2) We assume all fixups will in code builtin to the kernel.
> 3) Only for x86_64
> 4) New code under CONFIG_MCE_KERNEL_RECOVERY
>
> Signed-off-by: Tony Luck <tony.luck@intel.com>
> ---
> +#ifdef CONFIG_MCE_KERNEL_RECOVERY
> +int fixup_mcexception(struct pt_regs *regs, u64 addr)
> +{
> + const struct exception_table_entry *fixup;
> + unsigned long new_ip;
> +
> + fixup = search_mcexception_tables(regs->ip);
> + if (fixup) {
> + new_ip = ex_fixup_addr(fixup);
> +
> + regs->ip = new_ip;
> + regs->ax = BIT(63) | addr;
Can this be an actual #define?
--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables Tony Luck <tony.luck@intel.com> - 2015-12-11 20:40 +0100
Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables Andy Lutomirski <luto@amacapital.net> - 2015-12-11 21:10 +0100
RE: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables "Luck, Tony" <tony.luck@intel.com> - 2015-12-11 22:10 +0100
Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables Borislav Petkov <bp@alien8.de> - 2015-12-12 11:20 +0100
Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables Ross Zwisler <zwisler@gmail.com> - 2015-12-14 19:00 +0100
Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables Borislav Petkov <bp@alien8.de> - 2015-12-14 23:30 +0100
Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables "Luck, Tony" <tony.luck@intel.com> - 2015-12-15 02:10 +0100
Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables Borislav Petkov <bp@alien8.de> - 2015-12-15 10:50 +0100
Re: [PATCHV2 1/3] x86, ras: Add new infrastructure for machine check fixup tables Borislav Petkov <bp@alien8.de> - 2015-12-15 11:50 +0100
csiph-web