mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
kern: tweak optimization settings for hot paths
This commit is contained in:
parent
390bdc7b6b
commit
726d7b6e4d
9 changed files with 9 additions and 6 deletions
|
@ -528,6 +528,7 @@ namespace ams::svc::codegen::impl {
|
|||
|
||||
/* Set omit-frame-pointer to prevent GCC from emitting MOV X29, SP instructions. */
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("-O2")
|
||||
#pragma GCC optimize ("omit-frame-pointer")
|
||||
|
||||
static ALWAYS_INLINE ReturnType WrapSvcFunction() {
|
||||
|
|
|
@ -29,6 +29,7 @@ namespace ams::svc::codegen {
|
|||
public:
|
||||
/* Set omit-frame-pointer to prevent GCC from emitting MOV X29, SP instructions. */
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("-O2")
|
||||
#pragma GCC optimize ("omit-frame-pointer")
|
||||
|
||||
static ALWAYS_INLINE void Call64() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue