From e71cb1c56bc21c2897734a57e8d15c76ec63e038 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 9 Nov 2018 01:25:31 +0100 Subject: Fix some paging related bugs exposed by the spawn stress test. - Process::exec() needs to restore the original paging scope when called on a non-current process. - Add missing InterruptDisabler guards around g_processes access. - Only flush the TLB when modifying the active page tables. --- AK/Compiler.h | 2 +- AK/printf.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'AK') diff --git a/AK/Compiler.h b/AK/Compiler.h index f7ebfa12d6..04fad92b7f 100644 --- a/AK/Compiler.h +++ b/AK/Compiler.h @@ -3,7 +3,7 @@ #define PACKED __attribute__ ((packed)) #define NORETURN __attribute__ ((noreturn)) #undef ALWAYS_INLINE -#define ALWAYS_INLINE __attribute__ ((always_inline)) +#define ALWAYS_INLINE inline __attribute__ ((always_inline)) #define NEVER_INLINE __attribute__ ((noinline)) #define MALLOC_ATTR __attribute__ ((malloc)) #define PURE __attribute__ ((pure)) diff --git a/AK/printf.cpp b/AK/printf.cpp index 73d13594d0..4b8cf89172 100644 --- a/AK/printf.cpp +++ b/AK/printf.cpp @@ -1,5 +1,3 @@ -#define ALWAYS_INLINE inline __attribute__ ((always_inline)) - typedef unsigned char byte; typedef unsigned short word; typedef unsigned int dword; -- cgit v1.2.3