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:
parent
c830de4983
commit
9b7e48c6bd
7 changed files with 203 additions and 202 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue