opnsense-ports/emulators/simh/files/patch-VAX-vax_sysdev.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

19 lines
667 B
C

--- VAX/vax_sysdev.c.orig 2012-05-05 22:40:08.000000000 +0900
+++ VAX/vax_sysdev.c 2012-05-05 22:43:28.000000000 +0900
@@ -1556,8 +1556,14 @@
if (sim_log)
fprintf (sim_log, "Loading boot code from ka655x.bin\n");
r = load_cmd (0, "-R ka655x.bin");
- if (r != SCPE_OK)
- return r;
+ if (r != SCPE_OK) {
+ printf ("Loading boot code from %%DATADIR%%/ka655x.bin\n");
+ if (sim_log)
+ fprintf (sim_log, "Loading boot code from %%DATADIR%%/ka655x.bin\n");
+ r = load_cmd (0, "-R %%DATADIR%%/ka655x.bin");
+ if (r != SCPE_OK)
+ return r;
+ }
}
sysd_powerup ();
return SCPE_OK;