1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

Kernel: Replace raw asm functions with naked ones

This commit is contained in:
Hendiadyoin1 2021-07-05 15:34:07 +02:00 committed by Gunnar Beutner
parent c830de4983
commit 9b7e48c6bd
7 changed files with 203 additions and 202 deletions

View file

@ -54,6 +54,16 @@
#endif
#define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
#ifdef NO_RETURN
# undef NO_RETURN
#endif
#define NO_RETURN [[noreturn]]
#ifdef NAKED
# undef NAKED
#endif
#define NAKED __attribute__((naked))
// GCC doesn't have __has_feature but clang does
#ifndef __has_feature
# define __has_feature(...) 0