void minix(u32_t koff, u32_t kcs, u32_t kds,
char *bootparams, size_t paramsize, u32_t aout);
/* Start Minix. */
-void int15(bios_env_t *);
+void int15(bios_env_t *);
+ /* Do an "INT 15" call, primarily for APM. */
+void scan_keyboard(void);
+ /* Read keyboard character.
+ * Needs to be done in case one is waiting. */
+void reset(void);
+ /* */
/* Shared between boot.c and bootimage.c: */
#define writesectors(a, s, n) rwsectors(1, (a), (s), (n))
#define readerr(sec, err) (errno= (err), report(bootdev.name))
#define writerr(sec, err) (errno= (err), report(bootdev.name))
-#define putch(c) putchar(c)
+#define putch(c) (void)putchar(c)
#define unix_err(err) strerror(err)
void readblock(off_t blk, char *buf, int block_size)
#define clear_screen() printf("[clear]")
#define boot_device(device) printf("[boot %s]\n", device)
#define ctty(line) printf("[ctty %s]\n", line)
-#define bootminix() (run_trailer() && printf("[boot]\n"))
+#define bootminix() (void)(run_trailer() && printf("[boot]\n"))
#define off() printf("[off]")
#endif /* UNIX */
{
char params[SECTOR_SIZE + 1];
token **acmds;
- int r, processor;
+ int r;
+#if BIOS
+ int processor;
memory *mp;
static char bus_type[][4] = {
"xt", "at", "mca"
static char vid_chrome[][6] = {
"mono", "color"
};
+#endif
/* Variables that Minix needs: */
b_setvar(E_SPECIAL|E_VAR|E_DEV, "rootdev", "ram");
printf("No serial line support under DOS\n");
}
-reset()
+static void reset(void)
{
printf("No reset support under DOS\n");
}
static void execute(void)
/* Get one command from the command chain and execute it. */
{
- token *second, *third, *fourth, *sep;
+ token *second, *third=nil, *fourth=nil, *sep;
char *name;
enum resnames res;
size_t n= 0;
return 0;
}
-reset() { }
+void reset(void) { }
#endif /* UNIX */