adds ipi functionality

This commit is contained in:
alex committed 2026-03-10 21:02:29 +01:00
1 parent 744773848c
commit a75db78425
2 files changed
+18

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#ifndef _DEVICES_ACLINT_IPI
#define _DEVICES_ACLINT_IPI
#include "gen/aclint.h"
#include "platform.h"
#include <stdint.h>
static void send_ipi(uint32_t target_core)
{
set_aclint_msip(aclint, target_core, 1);
}
#endif /* _DEVICES_ACLINT_IPI */
@@ -0,0 +1,6 @@
#include <aclint_ipi.h>
#include <tx_port.h>
void _tx_thread_smp_core_preempt(UINT target_core)
{
send_ipi(target_core);
}