hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/kernel/printk/internal.h
....@@ -1,32 +1,22 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * internal.h - printk internal definitions
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version 2
7
- * of the License, or (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
164 */
175 #include <linux/percpu.h>
186
197 #ifdef CONFIG_PRINTK
208
21
-#define PRINTK_SAFE_CONTEXT_MASK 0x3fffffff
22
-#define PRINTK_NMI_DIRECT_CONTEXT_MASK 0x40000000
23
-#define PRINTK_NMI_CONTEXT_MASK 0x80000000
9
+#define PRINTK_SAFE_CONTEXT_MASK 0x007ffffff
10
+#define PRINTK_NMI_DIRECT_CONTEXT_MASK 0x008000000
11
+#define PRINTK_NMI_CONTEXT_MASK 0xff0000000
12
+
13
+#define PRINTK_NMI_CONTEXT_OFFSET 0x010000000
2414
2515 extern raw_spinlock_t logbuf_lock;
2616
27
-__printf(5, 0)
17
+__printf(4, 0)
2818 int vprintk_store(int facility, int level,
29
- const char *dict, size_t dictlen,
19
+ const struct dev_printk_info *dev_info,
3020 const char *fmt, va_list args);
3121
3222 __printf(1, 0) int vprintk_default(const char *fmt, va_list args);