Skip to content

Commit f103749

Browse files
committed
Merge tag 'microblaze-v6.13' of git://git.monstr.eu/linux-2.6-microblaze
Pull microblaze updates from Michal Simek: - Export xmb_manager functions - Remove empty #ifndef __ASSEMBLY__ statement - Use str_yes_no() helper in show_cpuinfo() * tag 'microblaze-v6.13' of git://git.monstr.eu/linux-2.6-microblaze: microblaze: mb: Use str_yes_no() helper in show_cpuinfo() microblaze: Remove empty #ifndef __ASSEMBLY__ statement microblaze: Export xmb_manager functions
2 parents 7e7f656 + eb01f8f commit f103749

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

arch/microblaze/include/uapi/asm/setup.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@
1414

1515
#define COMMAND_LINE_SIZE 256
1616

17-
# ifndef __ASSEMBLY__
18-
19-
# endif /* __ASSEMBLY__ */
2017
#endif /* _UAPI_ASM_MICROBLAZE_SETUP_H */

arch/microblaze/kernel/cpu/mb.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ static int show_cpuinfo(struct seq_file *m, void *v)
6666
" MSR:\t\t%s\n"
6767
" PCMP:\t\t%s\n"
6868
" DIV:\t\t%s\n",
69-
(cpuinfo.use_instr & PVR0_USE_BARREL_MASK) ? "yes" : "no",
70-
(cpuinfo.use_instr & PVR2_USE_MSR_INSTR) ? "yes" : "no",
71-
(cpuinfo.use_instr & PVR2_USE_PCMP_INSTR) ? "yes" : "no",
72-
(cpuinfo.use_instr & PVR0_USE_DIV_MASK) ? "yes" : "no");
69+
str_yes_no(cpuinfo.use_instr & PVR0_USE_BARREL_MASK),
70+
str_yes_no(cpuinfo.use_instr & PVR2_USE_MSR_INSTR),
71+
str_yes_no(cpuinfo.use_instr & PVR2_USE_PCMP_INSTR),
72+
str_yes_no(cpuinfo.use_instr & PVR0_USE_DIV_MASK));
7373

7474
seq_printf(m, " MMU:\t\t%x\n", cpuinfo.mmu);
7575

@@ -120,7 +120,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
120120

121121
seq_printf(m,
122122
"HW-Debug:\t%s\n",
123-
cpuinfo.hw_debug ? "yes" : "no");
123+
str_yes_no(cpuinfo.hw_debug));
124124

125125
seq_printf(m,
126126
"PVR-USR1:\t%02x\n"

arch/microblaze/kernel/microblaze_ksyms.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <asm/page.h>
1717
#include <linux/ftrace.h>
1818
#include <linux/uaccess.h>
19+
#include <asm/xilinx_mb_manager.h>
1920

2021
#ifdef CONFIG_FUNCTION_TRACER
2122
extern void _mcount(void);
@@ -46,3 +47,12 @@ extern void __udivsi3(void);
4647
EXPORT_SYMBOL(__udivsi3);
4748
extern void __umodsi3(void);
4849
EXPORT_SYMBOL(__umodsi3);
50+
51+
#ifdef CONFIG_MB_MANAGER
52+
extern void xmb_manager_register(uintptr_t phys_baseaddr, u32 cr_val,
53+
void (*callback)(void *data),
54+
void *priv, void (*reset_callback)(void *data));
55+
EXPORT_SYMBOL(xmb_manager_register);
56+
extern asmlinkage void xmb_inject_err(void);
57+
EXPORT_SYMBOL(xmb_inject_err);
58+
#endif

0 commit comments

Comments
 (0)