zephyr/arch/arm64/core/irq_offload.c
Anas Nashif ca3839ca38 arch: arm64: rename expection header
Rename exception header and use the same name as all architecture ports.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-12-11 18:22:40 -05:00

26 lines
569 B
C

/*
* Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Software interrupts utility code - ARM64 implementation
*/
#include <zephyr/kernel.h>
#include <zephyr/irq_offload.h>
#include <exception.h>
void arch_irq_offload(irq_offload_routine_t routine, const void *parameter)
{
register const void *x0 __asm__("x0") = routine;
register const void *x1 __asm__("x1") = parameter;
__asm__ volatile ("svc %[svid]"
:
: [svid] "i" (_SVC_CALL_IRQ_OFFLOAD),
"r" (x0), "r" (x1));
}