diff options
author | Helge Deller <deller@gmx.de> | 2016-10-08 22:30:23 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2016-10-08 22:30:23 +0200 |
commit | c3f2a0951fa245c24236e60eac24ae1c6163b970 (patch) | |
tree | 9214907f4d8ebe54fc788b6d9f1c5fc7e58ce0c3 | |
parent | 70bd7a9a41e318c0575755a78c4d18ad97495c47 (diff) | |
download | palo-c3f2a0951fa245c24236e60eac24ae1c6163b970.tar.gz |
Replace inline assembly which halts system by C code
gcc-6 optimizes the code differently and thus creates duplicate symbols
for the inline asm labels. Replace it by generic code, which isn't as
good to debug, but we don't face this kind of boot bugs any longer
either.
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | ipl/pdc_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipl/pdc_misc.c b/ipl/pdc_misc.c index 90298e3..863cc77 100644 --- a/ipl/pdc_misc.c +++ b/ipl/pdc_misc.c @@ -298,7 +298,7 @@ pdc_iodc_cout(const char *s, int size) if (s[0] == 0) /* this test is usually the one to catch overwriting palo with kernel */ - asm("\npdc_iodc_cout_test1fail: b,n ."); + while (1) { /* endless loop */ }; while (size) { if (size >= sizeof iodc_string) @@ -317,7 +317,7 @@ pdc_iodc_cout(const char *s, int size) pdc_result, 0, iodc_string, len, 0); if (r != 0) - asm("\npdc_iodc_cout_test4fail: b,n ."); + while (1) { /* endless loop */ }; } } |