mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 11:28:22 +08:00
arch/x86_64:Resolve the issue of abnormal interrupt numbers triggered when KASAN is enabled
When assembly code calls a C function, it needs to save the context. After enabling KASAN, the inserted __asan_load8_noabort function uses the rsi register, causing the value of rsi in the interrupt handler to be modified, which results in an incorrect interrupt number. Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
committed by
Mateusz Szafoni
parent
351db57e35
commit
2454c2b76d
@@ -190,6 +190,7 @@ uint64_t *irq_handler(uint64_t *regs, uint64_t irq_no)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
nosanitize_address
|
||||
uint64_t *irq_xcp_regs(void)
|
||||
{
|
||||
/* This must be the simplest as possible, so we not use too much registers.
|
||||
|
||||
Reference in New Issue
Block a user