microkernel: hot paths are pretty fucking hot

This commit is contained in:
Michael Scire
2020-12-02 02:14:24 -08:00
parent f058d04933
commit 2f12dd039f
6 changed files with 199 additions and 179 deletions

View File

@@ -19,6 +19,9 @@
namespace ams::svc::ipc {
#pragma GCC push_options
#pragma GCC optimize ("-O2")
ALWAYS_INLINE u32 *GetMessageBuffer() {
return GetThreadLocalRegion()->message_buffer;
}
@@ -545,4 +548,6 @@ namespace ams::svc::ipc {
}
};
#pragma GCC pop_options
}