Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/arch/aarch64/aarch64 Implement dummy netbsd32_...



details:   https://anonhg.NetBSD.org/src/rev/c00be1f28677
branches:  pgoyette-compat
changeset: 830848:c00be1f28677
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Oct 01 21:19:16 2018 +0000

description:
Implement dummy netbsd32_compat_{13,16} routines.  aarch64 doesn't have
compat going that far back, but the build infrastructure expects to see
these sources and *_{init,fini} symbols.

diffstat:

 sys/arch/aarch64/aarch64/netbsd32_machdep.c    |  17 ++++++++-
 sys/arch/aarch64/aarch64/netbsd32_machdep_13.c |  50 ++++++++++++++++++++++++++
 sys/arch/aarch64/aarch64/netbsd32_machdep_16.c |  50 ++++++++++++++++++++++++++
 3 files changed, 116 insertions(+), 1 deletions(-)

diffs (141 lines):

diff -r 714900d76f1d -r c00be1f28677 sys/arch/aarch64/aarch64/netbsd32_machdep.c
--- a/sys/arch/aarch64/aarch64/netbsd32_machdep.c       Mon Oct 01 07:33:36 2018 +0000
+++ b/sys/arch/aarch64/aarch64/netbsd32_machdep.c       Mon Oct 01 21:19:16 2018 +0000
@@ -29,9 +29,11 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.1.2.2 2018/04/07 04:12:10 pgoyette Exp $");
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.1.2.3 2018/10/01 21:19:16 pgoyette Exp $");
 
+#if defined(_KERNEL_OPT
 #include "opt_compat_netbsd.h"
+#endif
 
 #include <sys/param.h>
 #include <sys/core.h>
@@ -121,3 +123,16 @@
                return VM_DEFAULT_ADDRESS_BOTTOMUP(base, sz);
 }
 
+void  
+netbsd32_machdep_md_init(void)
+{ 
+ 
+       /* nothing to do */
+}
+ 
+void
+netbsd32_machdep_md_fini(void)
+{
+ 
+       /* nothing to do */
+}
diff -r 714900d76f1d -r c00be1f28677 sys/arch/aarch64/aarch64/netbsd32_machdep_13.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/aarch64/aarch64/netbsd32_machdep_13.c    Mon Oct 01 21:19:16 2018 +0000
@@ -0,0 +1,50 @@
+/*-
+ * Copyright (c) 2018 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Paul Goyette
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep_13.c,v 1.1.2.1 2018/10/01 21:19:16 pgoyette Exp $");
+
+#if defined (_KERNEL_OPT)
+#include "opt_compat_netbsd.h"
+#endif
+
+void  
+netbsd32_machdep_md_13_init(void)
+{ 
+ 
+       /* nothing to do */
+}
+ 
+void
+netbsd32_machdep_md_13_fini(void)
+{
+ 
+       /* nothing to do */
+}
diff -r 714900d76f1d -r c00be1f28677 sys/arch/aarch64/aarch64/netbsd32_machdep_16.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/aarch64/aarch64/netbsd32_machdep_16.c    Mon Oct 01 21:19:16 2018 +0000
@@ -0,0 +1,50 @@
+/*-
+ * Copyright (c) 2018 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Paul Goyette
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep_16.c,v 1.1.2.1 2018/10/01 21:19:16 pgoyette Exp $");
+
+#if defined (_KERNEL_OPT)
+#include "opt_compat_netbsd.h"
+#endif
+
+void  
+netbsd32_machdep_md_16_init(void)
+{ 
+ 
+       /* nothing to do */
+}
+ 
+void
+netbsd32_machdep_md_16_fini(void)
+{
+ 
+       /* nothing to do */
+}



Home | Main Index | Thread Index | Old Index