diff options
Diffstat (limited to 'src/device/oprom/yabel/compat')
-rw-r--r-- | src/device/oprom/yabel/compat/functions.c | 16 | ||||
-rw-r--r-- | src/device/oprom/yabel/compat/of.h | 8 | ||||
-rw-r--r-- | src/device/oprom/yabel/compat/rtas.h | 14 |
3 files changed, 19 insertions, 19 deletions
diff --git a/src/device/oprom/yabel/compat/functions.c b/src/device/oprom/yabel/compat/functions.c index 5a51f18a6f..1cebdf0a5a 100644 --- a/src/device/oprom/yabel/compat/functions.c +++ b/src/device/oprom/yabel/compat/functions.c @@ -72,15 +72,15 @@ unsigned long tb_freq = 0; u64 get_time(void) { - u64 act = 0; + u64 act = 0; #if IS_ENABLED(CONFIG_ARCH_X86) - u32 eax, edx; + u32 eax, edx; - __asm__ __volatile__( - "rdtsc" - : "=a"(eax), "=d"(edx) - : /* no inputs, no clobber */); - act = ((u64) edx << 32) | eax; + __asm__ __volatile__( + "rdtsc" + : "=a"(eax), "=d"(edx) + : /* no inputs, no clobber */); + act = ((u64) edx << 32) | eax; #endif - return act; + return act; } diff --git a/src/device/oprom/yabel/compat/of.h b/src/device/oprom/yabel/compat/of.h index ac13af28bb..31c9b59071 100644 --- a/src/device/oprom/yabel/compat/of.h +++ b/src/device/oprom/yabel/compat/of.h @@ -42,10 +42,10 @@ typedef struct { - unsigned int serv; - int nargs; - int nrets; - unsigned int args[16]; + unsigned int serv; + int nargs; + int nrets; + unsigned int args[16]; } of_arg_t; diff --git a/src/device/oprom/yabel/compat/rtas.h b/src/device/oprom/yabel/compat/rtas.h index f701cc61b4..ccad9e958b 100644 --- a/src/device/oprom/yabel/compat/rtas.h +++ b/src/device/oprom/yabel/compat/rtas.h @@ -38,13 +38,13 @@ #include "of.h" typedef struct dtime { - unsigned int year; - unsigned int month; - unsigned int day; - unsigned int hour; - unsigned int minute; - unsigned int second; - unsigned int nano; + unsigned int year; + unsigned int month; + unsigned int day; + unsigned int hour; + unsigned int minute; + unsigned int second; + unsigned int nano; } dtime; typedef void (*thread_t) (int); |