all the future devices have to copy it into global var...
in the current state i can boot any kernel i have....
testers?
-/* $OpenBSD: biosdev.c,v 1.6 1997/04/15 06:25:18 mickey Exp $ */
+/* $OpenBSD: biosdev.c,v 1.7 1997/04/15 20:50:35 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
bd = alloc(sizeof(*bd));
bzero(bd, sizeof(bd));
- bd->bsddev = MAKEBOOTDEV(maj, 0, 0, unit, part);
+ /* XXX for exec stuff */
+ bootdev = bd->bsddev = MAKEBOOTDEV(maj, 0, 0, unit, part);
switch (maj) {
case 0: /* wd */
-/* $OpenBSD: exec_i386.c,v 1.7 1997/04/15 20:01:56 mickey Exp $ */
+/* $OpenBSD: exec_i386.c,v 1.8 1997/04/15 20:50:36 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
#include <sys/reboot.h>
#include <libsa.h>
-static int bootdev;
+dev_t bootdev;
#define round_to_size(x) (((int)(x) + sizeof(int) - 1) & ~(sizeof(int) - 1))
-/* $OpenBSD: libsa.h,v 1.4 1997/04/06 19:52:46 mickey Exp $ */
+/* $OpenBSD: libsa.h,v 1.5 1997/04/15 20:50:36 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
extern u_long codeseg;
extern int boothowto;
+ /* XXX filled in assumption that last file opened is kernel */
+extern int bootdev;
extern u_int cnvmem, extmem;
extern const char bdevs[19][4];