mods to make savecore more machine independent
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 21 Feb 1983 16:24:22 +0000 (08:24 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 21 Feb 1983 16:24:22 +0000 (08:24 -0800)
SCCS-vsn: sys/vax/vax/machdep.c 4.76

usr/src/sys/vax/vax/machdep.c

index f9b9c00..120a2a5 100644 (file)
@@ -1,4 +1,4 @@
-/*     machdep.c       4.75    83/02/11        */
+/*     machdep.c       4.76    83/02/21        */
 
 #include "../machine/reg.h"
 #include "../machine/pte.h"
 
 #include "../machine/reg.h"
 #include "../machine/pte.h"
@@ -578,6 +578,8 @@ tocons(c)
        mtpr(TXDB, c);
 }
 
        mtpr(TXDB, c);
 }
 
+int    dumpmag = 0x8fca0101;   /* magic number for savecore */
+int    dumpsize = 0;           /* also for savecore */
 /*
  * Doadump comes here after turning off memory management and
  * getting on the dump stack, either when called above, or by
 /*
  * Doadump comes here after turning off memory management and
  * getting on the dump stack, either when called above, or by
@@ -589,6 +591,7 @@ dumpsys()
        rpb.rp_flag = 1;
        if ((minor(dumpdev)&07) != 1)
                return;
        rpb.rp_flag = 1;
        if ((minor(dumpdev)&07) != 1)
                return;
+       dumpsize = physmem;
        printf("\ndumping to dev %x, offset %d\n", dumpdev, dumplo);
        printf("dump ");
        switch ((*bdevsw[major(dumpdev)].d_dump)(dumpdev)) {
        printf("\ndumping to dev %x, offset %d\n", dumpdev, dumplo);
        printf("dump ");
        switch ((*bdevsw[major(dumpdev)].d_dump)(dumpdev)) {