sync with OpenBSD -current

This commit is contained in:
purplerain 2024-04-30 02:20:47 +00:00
parent 6fc9e02a30
commit 7768d1f254
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
35 changed files with 335 additions and 351 deletions

View file

@ -1,4 +1,4 @@
/* $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>
@ -620,11 +620,6 @@ dumpsys(void)
int (*dump)(dev_t, daddr_t, caddr_t, size_t);
int error;
#if 0
/* Save registers. */
savectx(&dumppcb);
#endif
if (dumpdev == NODEV)
return;

View file

@ -1,4 +1,4 @@
/* $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>
*
@ -96,10 +96,6 @@ extern uint64_t cpu_id_aa64pfr1;
#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.
*/
@ -276,29 +272,15 @@ void need_resched(struct cpu_info *);
// 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)