1/* test_stubs.S - Exception and interrupt stubs */ 2 3/* 4 * Copyright (c) 2012-2014 Wind River Systems, Inc. 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9/* 10DESCRIPTION 11This module implements assembler exception and interrupt stubs for regression 12testing. 13 */ 14 15#ifdef CONFIG_X86 16 17#include <zephyr/arch/cpu.h> 18#include <zephyr/kernel_structs.h> 19#include <zephyr/arch/x86/ia32/asm.h> 20 21/* imports (internal APIs) */ 22 23 GTEXT(_interrupt_enter) 24 25/* Static interrupt handler stubs */ 26 27 GTEXT(int_stub) 28SECTION_FUNC(TEXT, int_stub) 29 pushl $0 30 pushl $isr_handler 31 jmp _interrupt_enter 32#else 33 34#error Arch not supported 35 36#endif /* CONFIG_X86 */ 37