[Simh] Large disks on FreeBSD - a patch

Mark Martinec Mark.Martinec+simh at ijs.si
Tue Apr 11 19:57:50 EDT 2006


Bob,

please accept the following patch to 3.5.2
to make large (VAX) disks work on FreeBSD.
Seems like the conditional code is already
there for OS/X, but it should apply just
as well to FreeBSD. I have been applying this
(similar) patch manually since simhv32 or earlier
to make things work.

--- sim_fio.c.orig	Sat Nov 19 12:22:46 2005
+++ sim_fio.c	Wed Jan 25 15:53:47 2006
@@ -279,5 +279,5 @@
 
-/* Apple OS/X */
+/* FreeBSD or Apple OS/X */
 
-#if defined (__APPLE__)
+#if defined (__APPLE__) || defined (__FreeBSD__)
 #define _SIM_IO_FSEEK_EXT_      1


Without the patch it is not possible to specify
a large rauser size:

sim> set rq0 rauser=4293
Invalid argument


  Mark



More information about the Simh mailing list