Commit b8e9cc20 authored by Ilya Leoshkevich's avatar Ilya Leoshkevich Committed by Vasily Gorbik

s390/traps: do not test MONITOR CALL without CONFIG_BUG

tinyconfig fails to boot, because without CONFIG_BUG report_bug()
always returns BUG_TRAP_TYPE_BUG, which causes mc 0,0 in
test_monitor_call() to panic. Fix by skipping the test without
CONFIG_BUG.
Signed-off-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 1f0d22de
...@@ -277,6 +277,8 @@ static void __init test_monitor_call(void) ...@@ -277,6 +277,8 @@ static void __init test_monitor_call(void)
{ {
int val = 1; int val = 1;
if (!IS_ENABLED(CONFIG_BUG))
return;
asm volatile( asm volatile(
" mc 0,0\n" " mc 0,0\n"
"0: xgr %0,%0\n" "0: xgr %0,%0\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment