2017-03-03 02:19:44 +00:00
|
|
|
From b2e8eb3c57c2c2c624ad92308ac3d2ec0f0ef622 Mon Sep 17 00:00:00 2001
|
2016-12-09 03:02:38 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
Date: Thu, 8 Dec 2016 19:58:12 -0700
|
|
|
|
Subject: [PATCH 1/2] exynos-ss GCC6 compatibility
|
|
|
|
|
|
|
|
---
|
|
|
|
arch/arm/mach-exynos/exynos-ss.c | 14 +++++++-------
|
|
|
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/arch/arm/mach-exynos/exynos-ss.c b/arch/arm/mach-exynos/exynos-ss.c
|
2017-03-03 02:19:44 +00:00
|
|
|
index 9ede7277bc7d..e8c7836f9807 100644
|
2016-12-09 03:02:38 +00:00
|
|
|
--- a/arch/arm/mach-exynos/exynos-ss.c
|
|
|
|
+++ b/arch/arm/mach-exynos/exynos-ss.c
|
|
|
|
@@ -238,6 +238,13 @@ struct exynos_ss_interface {
|
2016-08-18 00:53:27 +00:00
|
|
|
struct exynos_ss_hook info_hook;
|
|
|
|
};
|
|
|
|
|
|
|
|
+enum ess_cause_emerg_events {
|
|
|
|
+ CAUSE_INVALID_DUMP = 0x00000000,
|
|
|
|
+ CAUSE_KERNEL_PANIC = 0x00000001,
|
|
|
|
+ CAUSE_FORCE_DUMP = 0x0000000D,
|
|
|
|
+ CAUSE_FORCE_REBOOT = 0x000000FF,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
extern void (*arm_pm_restart)(char str, const char *cmd);
|
|
|
|
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,5,00)
|
|
|
|
extern void register_hook_logbuf(void (*)(const char));
|
2016-12-09 03:02:38 +00:00
|
|
|
@@ -493,13 +500,6 @@ static inline void exynos_ss_hook_logbuf(const char *buf, u64 ts_nsec, size_t si
|
2016-08-18 00:53:27 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-enum ess_cause_emerg_events {
|
|
|
|
- CAUSE_INVALID_DUMP = 0x00000000,
|
|
|
|
- CAUSE_KERNEL_PANIC = 0x00000001,
|
|
|
|
- CAUSE_FORCE_DUMP = 0x0000000D,
|
|
|
|
- CAUSE_FORCE_REBOOT = 0x000000FF,
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
static void exynos_ss_scratch_reg(unsigned int val)
|
|
|
|
{
|
|
|
|
__raw_writel(val, S5P_VA_SS_SCRATCH);
|
2016-12-09 03:02:38 +00:00
|
|
|
--
|
2017-03-03 02:19:44 +00:00
|
|
|
2.11.1
|
2016-08-18 00:53:27 +00:00
|
|
|
|