svn commit: r343225 - head/stand/mips/beri/boot2

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sun Jan 20 21:09:45 UTC 2019


Author: gonzo
Date: Sun Jan 20 21:09:44 2019
New Revision: 343225
URL: https://svnweb.freebsd.org/changeset/base/343225

Log:
  Unbreak mip64 build after r328437
  
  Add exit and getchar functions to beri/boot2 code. They are required by
  panic_action functin introduced in r328437

Modified:
  head/stand/mips/beri/boot2/boot2.c

Modified: head/stand/mips/beri/boot2/boot2.c
==============================================================================
--- head/stand/mips/beri/boot2/boot2.c	Sun Jan 20 20:29:26 2019	(r343224)
+++ head/stand/mips/beri/boot2/boot2.c	Sun Jan 20 21:09:44 2019	(r343225)
@@ -651,3 +651,19 @@ xgetc(int fn)
 	    return 0;
     }
 }
+
+int
+getchar(void)
+{
+
+	return xgetc(0);
+}
+
+void
+exit(int code)
+{
+
+        printf("error: loader exit\n");
+        while (1);
+        __unreachable();
+}


More information about the svn-src-all mailing list