.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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/>. |
---|
16 | 4 | */ |
---|
17 | 5 | #include <linux/percpu.h> |
---|
18 | 6 | |
---|
19 | 7 | #ifdef CONFIG_PRINTK |
---|
20 | 8 | |
---|
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 |
---|
24 | 14 | |
---|
25 | 15 | extern raw_spinlock_t logbuf_lock; |
---|
26 | 16 | |
---|
27 | | -__printf(5, 0) |
---|
| 17 | +__printf(4, 0) |
---|
28 | 18 | int vprintk_store(int facility, int level, |
---|
29 | | - const char *dict, size_t dictlen, |
---|
| 19 | + const struct dev_printk_info *dev_info, |
---|
30 | 20 | const char *fmt, va_list args); |
---|
31 | 21 | |
---|
32 | 22 | __printf(1, 0) int vprintk_default(const char *fmt, va_list args); |
---|