1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Early IDT handler entry points
5 * Copyright (C) 2019 SUSE
7 * Author: Joerg Roedel <jroedel@suse.de>
10 #include <asm/segment.h>
13 #include "../../entry/calling.h"
15 .macro EXCEPTION_HANDLER name function error_code=0
39 /* Call handler with pt_regs */
41 /* Error code is second parameter */
42 movq ORIG_RAX(%rsp), %rsi
62 /* Remove error code and return */
72 EXCEPTION_HANDLER boot_page_fault do_boot_page_fault error_code=1
74 #ifdef CONFIG_AMD_MEM_ENCRYPT
75 EXCEPTION_HANDLER boot_stage1_vc do_vc_no_ghcb error_code=1
76 EXCEPTION_HANDLER boot_stage2_vc do_boot_stage2_vc error_code=1