Commit bb0e3359 authored by David Hildenbrand's avatar David Hildenbrand Committed by Paolo Bonzini
Browse files

s390x: wire up sclp console output



Now the basics should be working and therefore the self test should
pass.

Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
Message-Id: <20170522085702.17856-6-david@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 17c64879
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
*/ */
#include <libcflat.h> #include <libcflat.h>
#include <asm/spinlock.h> #include <asm/spinlock.h>
#include "sclp.h"
extern void setup_args_progname(const char *args); extern void setup_args_progname(const char *args);
extern char ipl_args[]; extern char ipl_args[];
...@@ -21,8 +22,7 @@ static struct spinlock lock; ...@@ -21,8 +22,7 @@ static struct spinlock lock;
void puts(const char *s) void puts(const char *s)
{ {
spin_lock(&lock); spin_lock(&lock);
/* FIXME */ sclp_print(s);
(void)s;
spin_unlock(&lock); spin_unlock(&lock);
} }
...@@ -39,6 +39,7 @@ static void sigp_stop() ...@@ -39,6 +39,7 @@ static void sigp_stop()
void setup() void setup()
{ {
setup_args_progname(ipl_args); setup_args_progname(ipl_args);
sclp_setup();
} }
void exit(int code) void exit(int code)
......
...@@ -102,4 +102,7 @@ typedef struct ReadEventData { ...@@ -102,4 +102,7 @@ typedef struct ReadEventData {
uint32_t mask; uint32_t mask;
} __attribute__((packed)) ReadEventData; } __attribute__((packed)) ReadEventData;
void sclp_setup(void);
void sclp_print(const char *str);
#endif /* SCLP_H */ #endif /* SCLP_H */
Supports Markdown
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