summaryrefslogtreecommitdiff
path: root/util/cbmem
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2018-11-30 11:31:50 +0100
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-12-03 09:43:00 +0000
commit66c22508c7ad0147a275b681db9133ff590a14b0 (patch)
treebdcb39dcc5f886312e41ca96f1867bc5a5668289 /util/cbmem
parent8885529e15cfa4b01a7678663d2eda9695bb8cfc (diff)
cbmem: Enable AArch64 support
TEST=on Chromebook Kevin with 64bit userland, it works well. Change-Id: If16065000214c6cff9c14a14c5b5f44faca38153 Signed-off-by: Adam Kallai <kadam@inf.u-szeged.hu> Reviewed-on: https://review.coreboot.org/c/29978 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'util/cbmem')
-rw-r--r--util/cbmem/cbmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c
index 90ad55e070..8e73d9c28d 100644
--- a/util/cbmem/cbmem.c
+++ b/util/cbmem/cbmem.c
@@ -1123,7 +1123,7 @@ static void print_usage(const char *name, int exit_code)
exit(exit_code);
}
-#ifdef __arm__
+#if defined(__arm__) || defined(__aarch64__)
static void dt_update_cells(const char *name, int *addr_cells_ptr,
int *size_cells_ptr)
{
@@ -1236,7 +1236,7 @@ static char *dt_find_compat(const char *parent, const char *compat,
closedir(dir);
return ret;
}
-#endif /* __arm__ */
+#endif /* defined(__arm__) || defined(__aarch64__) */
int main(int argc, char** argv)
{
@@ -1339,7 +1339,7 @@ int main(int argc, char** argv)
return 1;
}
-#ifdef __arm__
+#if defined(__arm__) || defined(__aarch64__)
int addr_cells, size_cells;
char *coreboot_node = dt_find_compat("/proc/device-tree", "coreboot",
&addr_cells, &size_cells);