From da8d7fc7fdfd07256cd8de1185274561bb9f5dc9 Mon Sep 17 00:00:00 2001 From: Steve Murphree Date: Tue, 18 Aug 1998 04:10:04 +0000 Subject: Changed volume id to m88k. Fixed command line args. --- sys/arch/mvme88k/stand/wrtvid/wrtvid.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sys/arch/mvme88k') 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 #define __DBINTERFACE_PRIVATE #include -#include +#include "disklabel.h" +/* disklabel.h is in current dir because of my + cross-compile env. if + 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 { -- cgit v1.2.3