+# $OpenBSD: GENERIC,v 1.11 2021/05/12 01:20:52 jsg Exp $
+#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
#
+# $OpenBSD: Makefile.riscv64,v 1.6 2021/05/12 01:20:52 jsg Exp $
+
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
#
-# $OpenBSD: RAMDISK,v 1.9 2021/05/11 14:58:08 deraadt Exp $
+# $OpenBSD: RAMDISK,v 1.10 2021/05/12 01:20:52 jsg Exp $
#
# GENERIC machine description file
#
+# $OpenBSD: files.riscv64,v 1.9 2021/05/12 01:20:52 jsg Exp $
+
# Standard stanzas config(8) can't run without
maxpartitions 16
maxusers 2 8 64
+/* $OpenBSD: kern.ldscript,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
OUTPUT_ARCH(riscv64)
/* Define how we want our ELF binary to look like. */
-/* $OpenBSD: mainbus.c,v 1.5 2021/05/04 16:38:06 kettenis Exp $ */
+/* $OpenBSD: mainbus.c,v 1.6 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
+/* $OpenBSD: mainbus.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
+/* $OpenBSD: plic.c,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020, Mars Li <mengshi.li.mars@gmail.com>
* Copyright (c) 2020, Brian Bamsch <bbamsch@google.com>
+/* $OpenBSD: plic.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020, Mars Li <mengshi.li.mars@gmail.com>
* Copyright (c) 2020, Brian Bamsch <bbamsch@google.com>
+/* $OpenBSD: riscv_cpu_intc.c,v 1.6 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020, Mars Li <mengshi.li.mars@gmail.com>
*
+/* $OpenBSD: riscv_cpu_intc.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Mars Li <mengshi.li.mars@gmai..com>
*
+/* $OpenBSD: simplebus.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
+/* $OpenBSD: simplebusvar.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
-/* $OpenBSD: _types.h,v 1.2 2021/05/08 05:31:07 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
+/* $OpenBSD: asm.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 1990 The Regents of the University of California.
+/* $OpenBSD: atomic.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/* Public Domain */
#ifndef _MACHINE_ATOMIC_H_
+/* $OpenBSD: bootconfig.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2015-2017 Ruslan Bukin <br@bsdpad.com>
* All rights reserved.
-/* $OpenBSD: bus.h,v 1.3 2021/05/05 13:28:56 jsg Exp $ */
+/* $OpenBSD: bus.h,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2003-2004 Opsycon AB Sweden. All rights reserved.
*
+/* $OpenBSD: conf.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
*
+/* $OpenBSD: cpu.h,v 1.6 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019 Mike Larkin <mlarkin@openbsd.org>
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
+/* $OpenBSD: cpufunc.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2014 Andrew Turner
* All rights reserved.
+/* $OpenBSD: db_machdep.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2015-2016 Ruslan Bukin <br@bsdpad.com>
-/* $OpenBSD: disklabel.h,v 1.1 2021/04/23 02:42:16 drahn Exp $ */
+/* $OpenBSD: disklabel.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
*
-/* $OpenBSD: endian.h,v 1.1 2021/04/23 02:42:16 drahn Exp $ */
+/* $OpenBSD: endian.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
/*
* Copyright (c) 2015 David Gwynne <dlg@openbsd.org>
-/* $OpenBSD: exec.h,v 1.1 2021/04/23 02:42:16 drahn Exp $ */
+/* $OpenBSD: exec.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
*
+/* $OpenBSD: fdt.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
+/* $OpenBSD: frame.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
-/* $OpenBSD: ieee.h,v 1.2 2021/05/11 14:58:25 deraadt Exp $ */
-/* $NetBSD: ieee.h,v 1.1 1996/09/30 16:34:25 ws Exp $ */
+/* $OpenBSD: ieee.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+/* $NetBSD: ieee.h,v 1.1 1996/09/30 16:34:25 ws Exp $ */
/*
* Copyright (c) 1992, 1993
+/* $OpenBSD: intr.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
*
-/* $OpenBSD: kcore.h,v 1.1 2021/04/23 02:42:16 drahn Exp $ */
+/* $OpenBSD: kcore.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/* public domain */
/* Make sure this is larger than DRAM_BLOCKS on all arm-based platforms */
+/* $OpenBSD: param.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
+/* $OpenBSD: pcb.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
*
+/* $OpenBSD: pmap.h,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019-2020 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2008,2009,2014 Dale Rahn <drahn@dalerahn.com>
+/* $OpenBSD: proc.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
/* $NetBSD: proc.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */
/*
-/* $OpenBSD: profile.h,v 1.2 2021/05/11 14:58:08 deraadt Exp $ */
+/* $OpenBSD: profile.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
*
+/* $OpenBSD: pte.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2014 Dale Rahn <drahn@dalerahn.com>
+/* $OpenBSD: ptrace.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
*
+/* $OpenBSD: reg.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2019 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2015-2016 Ruslan Bukin <br@bsdpad.com>
-/* $OpenBSD: reloc.h,v 1.1 2021/04/23 02:42:16 drahn Exp $ */
+/* $OpenBSD: reloc.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* RISCV64 static relocation types.
*/
#define R_RISCV_TLS_DTPREL64 9
#define R_RISCV_TLS_TPREL32 10
#define R_RISCV_TLS_TPREL64 11
-
+/* $OpenBSD: riscv64var.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Mengshi Li <mengshi.li.mars@gmail.com>
* Copyright (c) 2005,2008 Dale Rahn <drahn@openbsd.com>
+/* $OpenBSD: riscvreg.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2019 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2015-2017 Ruslan Bukin <br@bsdpad.com>
+/* $OpenBSD: sbi.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2016-2017 Ruslan Bukin <br@bsdpad.com>
* All rights reserved.
-/* $OpenBSD: setjmp.h,v 1.2 2021/05/09 21:26:06 drahn Exp $ */
+/* $OpenBSD: setjmp.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
/*
* machine/setjmp.h: machine dependent setjmp-related information.
+/* $OpenBSD: signal.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 1986, 1989, 1991, 1993
* The Regents of the University of California. All rights reserved.
+/* $OpenBSD: spinlock.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
#ifndef _MACHINE_SPINLOCK_H_
#define _MACHINE_SPINLOCK_H_
+/* $OpenBSD: syscall.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
*
+/* $OpenBSD: tcb.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
-/* $OpenBSD: timetc.h,v 1.1 2021/04/23 02:42:16 drahn Exp $ */
+/* $OpenBSD: timetc.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Paul Irofti <paul@irofti.net>
*
+/* $OpenBSD: trap.h,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
+/* $OpenBSD: vmparam.h,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
+/* $OpenBSD: ast.c,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
*
+/* $OpenBSD: autoconf.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2009 Miodrag Vallat.
*
-/* $OpenBSD: bus_dma.c,v 1.3 2021/05/05 19:26:51 kettenis Exp $ */
+/* $OpenBSD: bus_dma.c,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
+/* $OpenBSD: bus_space.c,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
*
+/* $OpenBSD: conf.c,v 1.7 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
*
+/* $OpenBSD: copy.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
+/* $OpenBSD: copyinout.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2015-2018 Ruslan Bukin <br@bsdpad.com>
* Copyright (c) 2019 Mitchell Horne
-/* $OpenBSD: copystr.S,v 1.1 2021/04/23 02:42:17 drahn Exp $ */
+/* $OpenBSD: copystr.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
+/* $OpenBSD: cpu.c,v 1.6 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
+/* $OpenBSD: cpufunc_asm.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2015-2017 Ruslan Bukin <br@bsdpad.com>
* All rights reserved.
+/* $OpenBSD: cpuswitch.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
+/* $OpenBSD: db_interface.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 1996 Scott K. Stevens
*
+/* $OpenBSD: db_trace.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2000, 2001 Ben Harris
* Copyright (c) 1996 Scott K. Stevens
+/* $OpenBSD: disksubr.c,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 1996 Theo de Raadt
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
+/* $OpenBSD: fpu.c,v 1.7 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Dale Rahn <drahn@openbsd.org>
*
+# $OpenBSD: genassym.cf,v 1.2 2021/05/12 01:20:52 jsg Exp $
+#
# Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
# All rights reserved.
#
+/* $OpenBSD: intr.c,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
-/* $OpenBSD: locore.S,v 1.5 2021/05/11 14:58:08 deraadt Exp $ */
+/* $OpenBSD: locore.S,v 1.6 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2012-2014 Andrew Turner
* All rights reserved.
-/* $OpenBSD: locore0.S,2019/10/31 mengshi.li.mars@gmail.com */
+/* $OpenBSD: locore0.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2012-2014 Andrew Turner
* All rights reserved.
* $FreeBSD: head/sys/arm64/arm64/locore.S 282867 2015-05-13 18:57:03Z zbb $
*/
-
#include <sys/syscall.h>
#include <machine/asm.h>
#include <machine/param.h>
+/* $OpenBSD: machdep.c,v 1.14 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
+/* $OpenBSD: mem.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 1982, 1986, 1990, 1993
* The Regents of the University of California. All rights reserved.
+/* $OpenBSD: pagezero.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
*
+/* $OpenBSD: pmap.c,v 1.7 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2019-2020 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2008-2009,2014-2016 Dale Rahn <drahn@dalerahn.com>
+/* $OpenBSD: process_machdep.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
*
+/* $OpenBSD: sbi.c,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
+/* $OpenBSD: sig_machdep.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
+/* $OpenBSD: softintr.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
* All rights reserved.
+/* $OpenBSD: support.S,v 1.2 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 2015-2020 Ruslan Bukin <br@bsdpad.com>
* All rights reserved.
+/* $OpenBSD: syscall.c,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
+/* $OpenBSD: trap.c,v 1.7 2021/05/12 01:20:52 jsg Exp $ */
+
/*
* Copyright (c) 2020 Shivam Waghela <shivamwaghela@gmail.com>
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
+/* $OpenBSD: vm_machdep.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */
+
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
* Copyright (c) 1982, 1986 The Regents of the University of California.