Rename "SafeFunction" macro to "NoSecurityAnalysis"

This commit is contained in:
EnderIce2
2024-02-04 04:31:30 +02:00
parent 11221b205a
commit b0575ba4f2
31 changed files with 157 additions and 156 deletions

View File

@ -28,7 +28,7 @@ unsigned int Level = 0;
using namespace UniversalAsynchronousReceiverTransmitter;
UART com2(COM2);
static inline SafeFunction NIF void profiler_uart_wrapper(char c, void *unused)
static inline nsa NIF void profiler_uart_wrapper(char c, void *unused)
{
bool renable = EnableProfiler;
EnableProfiler = false;
@ -38,7 +38,7 @@ static inline SafeFunction NIF void profiler_uart_wrapper(char c, void *unused)
EnableProfiler = true;
}
EXTERNC SafeFunction NIF void __cyg_profile_func_enter(void *Function, void *CallSite)
EXTERNC nsa NIF void __cyg_profile_func_enter(void *Function, void *CallSite)
{
if (!EnableProfiler)
return;
@ -75,7 +75,7 @@ EXTERNC SafeFunction NIF void __cyg_profile_func_enter(void *Function, void *Cal
Wait = false;
}
EXTERNC SafeFunction NIF void __cyg_profile_func_exit(void *Function, void *CallSite)
EXTERNC nsa NIF void __cyg_profile_func_exit(void *Function, void *CallSite)
{
if (!EnableProfiler)
return;

View File

@ -55,7 +55,7 @@ struct gcov_info
struct gcov_ctr_info counts[0];
};
static inline SafeFunction NIF void gcov_uart_wrapper(char c, void *unused)
static inline nsa NIF void gcov_uart_wrapper(char c, void *unused)
{
UART(COM2).Write(c);
UNUSED(unused);
@ -63,25 +63,25 @@ static inline SafeFunction NIF void gcov_uart_wrapper(char c, void *unused)
// TODO: Implement
EXTERNC SafeFunction NIF void __gcov_init(gcov_info *p __unused)
EXTERNC nsa NIF void __gcov_init(gcov_info *p __unused)
{
}
EXTERNC SafeFunction NIF void __gcov_exit(void)
EXTERNC nsa NIF void __gcov_exit(void)
{
}
EXTERNC SafeFunction NIF void __gcov_flush(void)
EXTERNC nsa NIF void __gcov_flush(void)
{
}
EXTERNC SafeFunction NIF void __gcov_merge_add(gcov_type *counters, unsigned int n_counters)
EXTERNC nsa NIF void __gcov_merge_add(gcov_type *counters, unsigned int n_counters)
{
UNUSED(counters);
UNUSED(n_counters);
}
EXTERNC SafeFunction NIF void __gcov_merge_single(gcov_type *counters, unsigned int n_counters)
EXTERNC nsa NIF void __gcov_merge_single(gcov_type *counters, unsigned int n_counters)
{
UNUSED(counters);
UNUSED(n_counters);

View File

@ -23,13 +23,13 @@
using namespace UniversalAsynchronousReceiverTransmitter;
static inline SafeFunction NIF void gprof_uart_wrapper(char c, void *unused)
static inline nsa NIF void gprof_uart_wrapper(char c, void *unused)
{
UART(COM2).Write(c);
UNUSED(unused);
}
EXTERNC SafeFunction NIF void mcount(unsigned long frompc, unsigned long selfpc)
EXTERNC nsa NIF void mcount(unsigned long frompc, unsigned long selfpc)
{
// TODO: Implement
/* https://docs.kernel.org/trace/ftrace-design.html */