summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9a976a7)
SCCS-vsn: sys/vax/vax/machdep.c 6.20
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)machdep.c 6.19 (Berkeley) %G%
+ * @(#)machdep.c 6.20 (Berkeley) %G%
nbuf, bufpages * CLBYTES);
rminit(kernelmap, (long)USRPTSIZE, (long)1,
"usrpt", nproc);
nbuf, bufpages * CLBYTES);
rminit(kernelmap, (long)USRPTSIZE, (long)1,
"usrpt", nproc);
- rminit(mbmap, (long)((nmbclusters - 1) * CLSIZE), (long)CLSIZE,
+ rminit(mbmap, (long)(nmbclusters * CLSIZE), (long)CLSIZE,
"mbclusters", nmbclusters/4);
/*
"mbclusters", nmbclusters/4);
/*
- * Configure the system.
+ * Set up CPU-specific registers, cache, etc.
- configure();
- switch (cpu) {
- case VAX_780:
- setcache(0x200000);
- break;
- case VAX_750:
- case VAX_730:
- setcache(0);
- break;
- case VAX_8600:
- setcache(3);
- break;
- }
-
-#if VAX8600
- * Enable Fbox on 8600 if it exists
+ * Configure the system.
- if ((cpu == VAX_8600) && ((mfpr(ACCS) & 0xff) != 0))
- mtpr(ACCS, 0x8000);
-#endif
/*
* Clear restart inhibit flags.
*/
/*
* Clear restart inhibit flags.
*/
+ /*
+ * Enable cache.
+ */
+ switch (cpu) {
+
break;
#endif
#if VAX750
case VAX_750:
break;
#endif
#if VAX750
case VAX_750:
break;
#endif
#if VAX8600
case VAX_8600:
break;
#endif
#if VAX8600
case VAX_8600:
+#endif
+ default:
+ break;
+ }
+
+ /*
+ * Enable floating point accelerator if it exists
+ * and has control register.
+ */
+ switch(cpu) {
+
+#if VAX8600 || VAX780
+ case VAX_780:
+ case VAX_8600:
+ if ((mfpr(ACCS) & 0xff) != 0) {
+ printf("Enabling FPA\n");
+ mtpr(ACCS, 0x8000);
+ }