@@ -21,6 +21,8 @@ uint8_t stfl_bytes[NR_STFL_BYTES] __attribute__((aligned(8)));
static struct spinlock lock;
+void setup(void);
+
void puts(const char *s)
{
spin_lock(&lock);
@@ -28,7 +30,7 @@ void puts(const char *s)
spin_unlock(&lock);
}
-static void sigp_stop()
+static void sigp_stop(void)
{
register unsigned long status asm ("1") = 0;
register unsigned long cpu asm ("2") = 0;
@@ -38,7 +40,7 @@ static void sigp_stop()
: "+d" (status) : "d" (cpu), "d" (5) : "cc");
}
-void setup()
+void setup(void)
{
setup_args_progname(ipl_args);
setup_facilities();
@@ -64,6 +64,8 @@ static struct gs_cb gs_cb;
static struct gs_epl gs_epl;
static unsigned long gs_area = 0x2000000;
+void gs_handler(struct gs_cb *this_cb);
+
static inline void load_gs_cb(struct gs_cb *gs_cb)
{
asm volatile(".insn rxy,0xe3000000004d,0,%0" : : "Q" (*gs_cb));