-/* $OpenBSD: machdep.c,v 1.88 2024/03/17 13:05:40 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.89 2024/04/29 13:01:54 jsg Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
int (*dump)(dev_t, daddr_t, caddr_t, size_t);
int error;
-#if 0
- /* Save registers. */
- savectx(&dumppcb);
-#endif
-
if (dumpdev == NODEV)
return;
-/* $OpenBSD: cpu.h,v 1.45 2024/04/19 10:22:50 mpi Exp $ */
+/* $OpenBSD: cpu.h,v 1.46 2024/04/29 13:01:54 jsg Exp $ */
/*
* Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
*
#define PROC_PC(p) ((p)->p_addr->u_pcb.pcb_tf->tf_elr)
#define PROC_STACK(p) ((p)->p_addr->u_pcb.pcb_tf->tf_sp)
-/* The address of the vector page. */
-extern vaddr_t vector_page;
-void arm32_vector_init(vaddr_t, int);
-
/*
* Per-CPU information. For now we assume one CPU.
*/
// asm code to start new kernel contexts.
void proc_trampoline(void);
-void child_trampoline(void);
/*
* Random cruft
*/
void dumpconf(void);
-// cpuswitch.S
-struct pcb;
-void savectx (struct pcb *pcb);
-
-// machdep.h
-void bootsync (int);
-
-// fault.c
-int badaddr_read (void *, size_t, void *);
-
// syscall.c
void svc_handler (trapframe_t *);
-/* machine_machdep.c */
-void board_startup(void);
-
// functions to manipulate interrupt state
static __inline void
restore_daif(uint32_t daif)