mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
26df3302ed
PD#SWPL-137107 Problem: The data in the ramdump crash file is abnormal because the cache data has not been flushed back. Solution: 1. Use ipi_stop hook to flush online cpu cache. 2. Use panic_notifier to flush panic cpu cache. Verify: sc2_ah212 Change-Id: Ifad5bd4203fdde327b8c2b19357aa2d92586063f Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
17 lines
344 B
C
17 lines
344 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __RAMDUMP_H__
|
|
#define __RAMDUMP_H__
|
|
|
|
#define SET_REBOOT_REASON 0x82000049
|
|
|
|
#define AMLOGIC_KERNEL_BOOTED 0x8000
|
|
#define RAMDUMP_STICKY_DATA_MASK 0xFFFF
|
|
|
|
noinline void ramdump_sync_data(void);
|
|
|
|
#endif /* __RAMDUMP_H__ */
|