diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-05-20 00:05:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-20 00:05:57 +0100 |
| commit | 8dec4f6ed332f2e78331f1b29aaaac16a851745e (patch) | |
| tree | 78156eb049aff83dd1190dff14f7d14a9739b05a /src/gb | |
| parent | b6d5be8593414371785eda44b8135ba988831cac (diff) | |
| parent | 2183140e7162b93066e93b0e65da86b220d45ad0 (diff) | |
Merge pull request #3570 from jasonKercher/linux-arm32
Get the compiler to build and work on arm32 Linux
Diffstat (limited to 'src/gb')
| -rw-r--r-- | src/gb/gb.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gb/gb.h b/src/gb/gb.h index 58fbfa071..17d5e97d1 100644 --- a/src/gb/gb.h +++ b/src/gb/gb.h @@ -6261,11 +6261,12 @@ gb_no_inline isize gb_snprintf_va(char *text, isize max_len, char const *fmt, va #elif defined(__aarch64__) gb_inline u64 gb_rdtsc(void) { int64_t virtual_timer_value; - asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value)); - return virtual_timer_value; + asm volatile("mrs %0, cntvct_el0" : "=r"(virtual_timer_value)); + return virtual_timer_value; } #else -#error "gb_rdtsc not supported" +#warning "gb_rdtsc not supported" + gb_inline u64 gb_rdtsc(void) { return 0; } #endif #if defined(GB_SYSTEM_WINDOWS) |