kern: write cpu tick differential to tls +0x108 on thread switch

This commit is contained in:
Michael Scire
2025-11-11 10:50:17 -07:00
committed by SciresM
parent 18bb1fdea0
commit e36051359c
3 changed files with 13 additions and 3 deletions

View File

@@ -25,8 +25,10 @@ namespace ams::svc::arch::arm {
u32 message_buffer[MessageBufferSize / sizeof(u32)];
volatile u16 disable_count;
volatile u16 interrupt_flag;
volatile u8 cache_maintenance_flag;
volatile s64 thread_cpu_time;
/* TODO: Should we bother adding the Nintendo aarch32 thread local context here? */
uintptr_t TODO[(0x200 - 0x104) / sizeof(uintptr_t)];
uintptr_t TODO[(0x200 - 0x110) / sizeof(uintptr_t)];
};
ALWAYS_INLINE ThreadLocalRegion *GetThreadLocalRegion() {