diff options
author | David Hendricks <dhendrix@chromium.org> | 2012-11-30 13:56:31 -0800 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2012-11-30 23:20:54 +0100 |
commit | 4b6be985aae8bff84ae442e7be7669e93694fa1e (patch) | |
tree | 879ad172b5ee50ca66e2d72197f97b74f19354ae /payloads/libpayload/libc | |
parent | 0a92f89f5dfa559eb012015235209e53e87e128d (diff) |
Change TARGET_I386 to ARCH_X86
This renames TARGET_I386 to ARCH_X86 to make it more uniform with
other parts of the codebase, e.g. cbfs_core.h from cbfstool.
Change-Id: I1babcc941245ed1dde0478a21828766759373a42
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/1961
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Dave Frodin <dave.frodin@se-eng.com>
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r-- | payloads/libpayload/libc/exec.c | 4 | ||||
-rw-r--r-- | payloads/libpayload/libc/time.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/payloads/libpayload/libc/exec.c b/payloads/libpayload/libc/exec.c index bb531d8f67..13a1e5a8cd 100644 --- a/payloads/libpayload/libc/exec.c +++ b/payloads/libpayload/libc/exec.c @@ -30,7 +30,7 @@ #include <libpayload-config.h> #include <libpayload.h> -#ifdef CONFIG_TARGET_I386 +#ifdef CONFIG_ARCH_X86 extern void i386_do_exec(long addr, int argc, char **argv, int *ret); #endif @@ -46,7 +46,7 @@ int exec(long addr, int argc, char **argv) { int val = -1; -#ifdef CONFIG_TARGET_I386 +#ifdef CONFIG_ARCH_X86 i386_do_exec(addr, argc, argv, &val); #endif return val; diff --git a/payloads/libpayload/libc/time.c b/payloads/libpayload/libc/time.c index 67675623a4..5ff47b3868 100644 --- a/payloads/libpayload/libc/time.c +++ b/payloads/libpayload/libc/time.c @@ -34,7 +34,7 @@ #include <libpayload-config.h> #include <libpayload.h> -#ifdef CONFIG_TARGET_I386 +#ifdef CONFIG_ARCH_X86 #include <arch/rdtsc.h> #endif @@ -49,7 +49,7 @@ static struct { #define TICKS_PER_SEC (cpu_khz * 1000) #define TICKS_PER_USEC (cpu_khz / 1000) -#ifdef CONFIG_TARGET_I386 +#ifdef CONFIG_ARCH_X86 static void update_clock(void) { u64 delta = rdtsc() - clock.ticks; |