microkernel: hot paths are pretty fucking hot

This commit is contained in:
Michael Scire 2020-12-02 02:14:24 -08:00 committed by SciresM
parent 331fa1d00d
commit ab8de72db0
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
}