mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-25 20:24:21 -04:00
microkernel: hot paths are pretty fucking hot
This commit is contained in:
parent
331fa1d00d
commit
ab8de72db0
6 changed files with 199 additions and 179 deletions
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue