diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mvme88k/stand/wrtvid/wrtvid.c | 12 |
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 { |