Support Aarch64 42/186142/3
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 7 Aug 2018 10:00:17 +0000 (12:00 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 22 Aug 2018 05:51:37 +0000 (07:51 +0200)
Change-Id: Iad3979f7e5c73da9a35619c5a8a89f8a5257a780
Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
src/crash-stack/crash-stack-aarch64.c

index 3209356..7ce1be5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016,2018 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
@@ -74,6 +74,11 @@ void *_get_place_for_register_value(const char *regname, int regnum)
        return NULL;
 }
 
+unsigned long _get_register_value(int n)
+{
+       return g_registers.regs[n];
+}
+
 #define PSR_MODE32_BIT  0x00000010
 #define PSR_MODE_MASK   0x0000000f