38 lines
1015 B
C
Executable File
38 lines
1015 B
C
Executable File
/*
|
|
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com
|
|
*
|
|
* Samsung TN debugging code
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/bootmem.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/stat.h>
|
|
#include <linux/module.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/proc_fs.h>
|
|
#include <linux/sched/clock.h>
|
|
#ifdef CONFIG_NO_BOOTMEM
|
|
#include <linux/memblock.h>
|
|
#endif
|
|
#include <linux/sec_debug.h>
|
|
|
|
#ifdef CONFIG_KNOX_KAP
|
|
extern int boot_mode_security;
|
|
#endif
|
|
|
|
/*
|
|
* Example usage: sec_log=256K@0x45000000
|
|
* In above case, log_buf size is 256KB and its base address is
|
|
* 0x45000000 physically. Actually, *(int *)(base - 8) is log_magic and
|
|
* *(int *)(base - 4) is log_ptr. So we reserve (size + 8) bytes from
|
|
* (base - 8).
|
|
*/
|
|
#define LOG_MAGIC 0x4d474f4c /* "LOGM" */
|