a86d798210
This is a last followup of r315974, which fixes userland part of VFP save/restore problems described in PR 217611. PR: 217611 MFC after: 2 weeks
65 lines
1.8 KiB
C
65 lines
1.8 KiB
C
/* $NetBSD: machdep.h,v 1.7 2002/02/21 02:52:21 thorpej Exp $ */
|
|
/* $FreeBSD$ */
|
|
|
|
#ifndef _MACHDEP_BOOT_MACHDEP_H_
|
|
#define _MACHDEP_BOOT_MACHDEP_H_
|
|
|
|
/* Structs that need to be initialised by initarm */
|
|
#if __ARM_ARCH >= 6
|
|
extern vm_offset_t irqstack;
|
|
extern vm_offset_t undstack;
|
|
extern vm_offset_t abtstack;
|
|
#else
|
|
struct pv_addr;
|
|
extern struct pv_addr irqstack;
|
|
extern struct pv_addr undstack;
|
|
extern struct pv_addr abtstack;
|
|
#endif
|
|
|
|
/* Define various stack sizes in pages */
|
|
#define IRQ_STACK_SIZE 1
|
|
#define ABT_STACK_SIZE 1
|
|
#define UND_STACK_SIZE 1
|
|
|
|
/* misc prototypes used by the many arm machdeps */
|
|
struct trapframe;
|
|
void arm_lock_cache_line(vm_offset_t);
|
|
void init_proc0(vm_offset_t kstack);
|
|
void halt(void);
|
|
void abort_handler(struct trapframe *, int );
|
|
void set_stackptrs(int cpu);
|
|
void undefinedinstruction_bounce(struct trapframe *);
|
|
|
|
/* Early boot related helper functions */
|
|
struct arm_boot_params;
|
|
vm_offset_t default_parse_boot_param(struct arm_boot_params *abp);
|
|
vm_offset_t fake_preload_metadata(struct arm_boot_params *abp,
|
|
void *dtb_ptr, size_t dtb_size);
|
|
vm_offset_t parse_boot_param(struct arm_boot_params *abp);
|
|
void arm_parse_fdt_bootargs(void);
|
|
void arm_print_kenv(void);
|
|
|
|
void arm_generic_initclocks(void);
|
|
int arm_get_vfpstate(struct thread *td, void *args);
|
|
|
|
/* Board-specific attributes */
|
|
void board_set_serial(uint64_t);
|
|
void board_set_revision(uint32_t);
|
|
|
|
int arm_predict_branch(void *, u_int, register_t, register_t *,
|
|
u_int (*)(void*, int), u_int (*)(void*, vm_offset_t, u_int*));
|
|
|
|
#ifdef PLATFORM
|
|
typedef void delay_func(int, void *);
|
|
void arm_set_delay(delay_func *, void *);
|
|
#endif
|
|
|
|
#ifdef EFI
|
|
struct efi_map_header;
|
|
struct mem_region;
|
|
void arm_add_efi_map_entries(struct efi_map_header *efihdr,
|
|
struct mem_region *mr, int *mrcnt);
|
|
#endif
|
|
|
|
#endif /* !_MACHINE_MACHDEP_H_ */
|