summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSteve Murphree <smurph@cvs.openbsd.org>1998-08-18 04:10:04 +0000
committerSteve Murphree <smurph@cvs.openbsd.org>1998-08-18 04:10:04 +0000
commitda8d7fc7fdfd07256cd8de1185274561bb9f5dc9 (patch)
treef941b0668152ec528de7a3c929aace3a4935265a /sys
parent0fdee9fc4c513111890cb276e3050734c0e8b8c9 (diff)
Changed volume id to m88k. Fixed command line args.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mvme88k/stand/wrtvid/wrtvid.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/stand/wrtvid/wrtvid.c b/sys/arch/mvme88k/stand/wrtvid/wrtvid.c
index 8c27dc1b8c8..436ee3cf4aa 100644
--- a/sys/arch/mvme88k/stand/wrtvid/wrtvid.c
+++ b/sys/arch/mvme88k/stand/wrtvid/wrtvid.c
@@ -5,7 +5,11 @@
#include <stdio.h>
#define __DBINTERFACE_PRIVATE
#include <db.h>
-#include <machine/disklabel.h>
+#include "disklabel.h"
+/* disklabel.h is in current dir because of my
+ cross-compile env. if <machine/disklabel.h>
+ is newer, copy it here.
+*/
main(argc, argv)
int argc;
@@ -23,7 +27,7 @@ main(argc, argv)
char fileext[256];
char filebase[256];
- if (argc == 0)
+ if (argc == 1)
filename = "a.out";
else
filename = argv[1];
@@ -42,7 +46,7 @@ main(argc, argv)
bzero(pcpul, sizeof(struct cpu_disklabel));
pcpul->version = 1;
- strcpy(pcpul->vid_id, "NBSD");
+ strcpy(pcpul->vid_id, "M88K");
fstat(exe_file, &stat);
/* size in 256 byte blocks round up after a.out header removed */
@@ -58,6 +62,8 @@ main(argc, argv)
read(exe_file, &exe_addr, 4);
/* check this, it may not work in both endian. */
+ /* No, it doesn't. Use a big endian machine for now. SPM */
+
{
union {
struct s {