-/* $OpenBSD: arm32_machdep.c,v 1.61 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: arm32_machdep.c,v 1.62 2021/05/16 03:39:27 jsg Exp $ */
/* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */
/*
*/
void
-halt()
+halt(void)
{
while (1)
cpu_sleep(0);
*
*/
void
-cpu_startup()
+cpu_startup(void)
{
u_int loop;
paddr_t minaddr;
-/* $OpenBSD: cpufunc.c,v 1.56 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: cpufunc.c,v 1.57 2021/05/16 03:39:27 jsg Exp $ */
/* $NetBSD: cpufunc.c,v 1.65 2003/11/05 12:53:15 scw Exp $ */
/*
/*
*/
void
-armv7_idcache_wbinv_all()
+armv7_idcache_wbinv_all(void)
{
uint32_t arg;
arg = 0;
/* brute force cache flushing */
void
-armv7_dcache_wbinv_all()
+armv7_dcache_wbinv_all(void)
{
int sets, ways, lvl;
int nsets, nways;
*/
int
-set_cpufuncs()
+set_cpufuncs(void)
{
cputype = cpufunc_id();
cputype &= CPU_ID_CPU_MASK;
*/
void
-armv7_setup()
+armv7_setup(void)
{
uint32_t auxctrl, auxctrlmask;
uint32_t cpuctrl, cpuctrlmask;
-/* $OpenBSD: stubs.c,v 1.12 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: stubs.c,v 1.13 2021/05/16 03:39:27 jsg Exp $ */
/* $NetBSD: stubs.c,v 1.14 2003/07/15 00:24:42 lukem Exp $ */
/*
*/
void
-dumpsys()
+dumpsys(void)
{
const struct bdevsw *bdev;
daddr_t blkno;
-/* $OpenBSD: sys_machdep.c,v 1.6 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.7 2021/05/16 03:39:27 jsg Exp $ */
/* $NetBSD: sys_machdep.c,v 1.6 2003/07/15 00:24:42 lukem Exp $ */
/*
static int arm32_drain_writebuf (struct proc *, char *, register_t *);
static int
-arm32_sync_icache(p, args, retval)
- struct proc *p;
- char *args;
- register_t *retval;
+arm32_sync_icache(struct proc *p, char *args, register_t *retval)
{
struct arm_sync_icache_args ua;
struct vm_map *map = &p->p_vmspace->vm_map;
}
static int
-arm32_drain_writebuf(p, args, retval)
- struct proc *p;
- char *args;
- register_t *retval;
+arm32_drain_writebuf(struct proc *p, char *args, register_t *retval)
{
/* No args. */
}
int
-sys_sysarch(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
+sys_sysarch(struct proc *p, void *v, register_t *retval)
{
struct sys_sysarch_args /* {
syscallarg(int) op;
-/* $OpenBSD: syscall.c,v 1.22 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: syscall.c,v 1.23 2021/05/16 03:39:27 jsg Exp $ */
/* $NetBSD: syscall.c,v 1.24 2003/11/14 19:03:17 scw Exp $ */
/*-
}
void
-child_return(arg)
- void *arg;
+child_return(void *arg)
{
struct proc *p = arg;
struct trapframe *frame = p->p_addr->u_pcb.pcb_tf;
-/* $OpenBSD: undefined.c,v 1.15 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: undefined.c,v 1.16 2021/05/16 03:39:27 jsg Exp $ */
/* $NetBSD: undefined.c,v 1.22 2003/11/29 22:21:29 bjh21 Exp $ */
/*
static struct undefined_handler gdb_uh;
void
-undefined_init()
+undefined_init(void)
{
int loop;
-/* $OpenBSD: agtimer.c,v 1.13 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: agtimer.c,v 1.14 2021/05/16 03:39:27 jsg Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
}
void
-agtimer_cpu_initclocks()
+agtimer_cpu_initclocks(void)
{
struct agtimer_softc *sc = agtimer_cd.cd_devs[0];
struct agtimer_pcpu_softc *pc = &sc->sc_pstat[CPU_INFO_UNIT(curcpu())];
-/* $OpenBSD: amptimer.c,v 1.12 2021/03/25 04:12:00 jsg Exp $ */
+/* $OpenBSD: amptimer.c,v 1.13 2021/05/16 03:39:27 jsg Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
}
void
-amptimer_cpu_initclocks()
+amptimer_cpu_initclocks(void)
{
struct amptimer_softc *sc = amptimer_cd.cd_devs[0];
struct amptimer_pcpu_softc *pc = &sc->sc_pstat[CPU_INFO_UNIT(curcpu())];
-/* $OpenBSD: cpufunc.h,v 1.32 2019/11/07 21:54:49 patrick Exp $ */
+/* $OpenBSD: cpufunc.h,v 1.33 2021/05/16 03:39:27 jsg Exp $ */
/* $NetBSD: cpufunc.h,v 1.29 2003/09/06 09:08:35 rearnsha Exp $ */
/*
}
static __inline u_int32_t
-__get_cpsr()
+__get_cpsr(void)
{
u_int32_t ret;
-/* $OpenBSD: armv7_machdep.h,v 1.13 2017/08/27 12:42:22 kettenis Exp $ */
+/* $OpenBSD: armv7_machdep.h,v 1.14 2021/05/16 03:39:28 jsg Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
void platform_watchdog_reset(void);
void platform_init_cons(void);
void platform_init_mainbus(struct device *);
-struct board_dev *platform_board_devs();
+struct board_dev *platform_board_devs(void);
extern void (*cpuresetfn)(void);
extern void (*powerdownfn)(void);
-/* $OpenBSD: platform.c,v 1.26 2021/04/24 07:49:11 visa Exp $ */
+/* $OpenBSD: platform.c,v 1.27 2021/05/16 03:39:28 jsg Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
*
}
struct board_dev *
-platform_board_devs()
+platform_board_devs(void)
{
if (platform && platform->devs)
return (platform->devs);
-/* $OpenBSD: tps65090.c,v 1.4 2021/03/25 04:12:01 jsg Exp $ */
+/* $OpenBSD: tps65090.c,v 1.5 2021/05/16 03:39:28 jsg Exp $ */
/*
* Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
*
}
int
-tps65090_get_charging()
+tps65090_get_charging(void)
{
struct tps65090_softc *sc = tps65090_sc;
uint8_t val = tps65090_read_reg(sc, REG_CG_CTRL0);
-/* $OpenBSD: dmtimer.c,v 1.11 2021/03/25 04:12:01 jsg Exp $ */
+/* $OpenBSD: dmtimer.c,v 1.12 2021/05/16 03:39:28 jsg Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2013 Raphael Graf <r@undefined.ch>
*/
void
-dmtimer_cpu_initclocks()
+dmtimer_cpu_initclocks(void)
{
struct dmtimer_softc *sc = dmtimer_cd.cd_devs[1];
-/* $OpenBSD: gptimer.c,v 1.13 2021/03/25 04:12:01 jsg Exp $ */
+/* $OpenBSD: gptimer.c,v 1.14 2021/05/16 03:39:28 jsg Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
*/
void
-gptimer_cpu_initclocks()
+gptimer_cpu_initclocks(void)
{
stathz = 128;
profhz = 1024;
-/* $OpenBSD: omap.c,v 1.22 2021/04/02 03:02:46 tb Exp $ */
+/* $OpenBSD: omap.c,v 1.23 2021/05/16 03:39:28 jsg Exp $ */
/*
* Copyright (c) 2005,2008 Dale Rahn <drahn@openbsd.org>
*
#include <dev/ofw/fdt.h>
int omap_match(struct device *, void *, void *);
-void omap3_init();
-void omap4_init();
-void am335x_init();
+void omap3_init(void);
+void omap4_init(void);
+void am335x_init(void);
struct cfattach omap_ca = {
sizeof(struct armv7_softc), omap_match, armv7_attach