machdep.h (24891abdb2843c61ba8496ddb8935d894692f135) machdep.h (820a3f438db9e3a58ff393bbc83e5e02e219112e)
1/*-
2 * Copyright (c) 2015-2017 Ruslan Bukin <br@bsdpad.com>
3 * All rights reserved.
4 *
5 * Portions of this software were developed by SRI International and the
6 * University of Cambridge Computer Laboratory under DARPA/AFRL contract
7 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.
8 *

--- 30 unchanged lines hidden (view full) ---

39
40struct riscv_bootparams {
41 vm_offset_t kern_l1pt; /* Kernel L1 base */
42 vm_offset_t kern_phys; /* Kernel base (physical) addr */
43 vm_offset_t kern_stack;
44 vm_offset_t dtbp_virt; /* Device tree blob virtual addr */
45};
46
1/*-
2 * Copyright (c) 2015-2017 Ruslan Bukin <br@bsdpad.com>
3 * All rights reserved.
4 *
5 * Portions of this software were developed by SRI International and the
6 * University of Cambridge Computer Laboratory under DARPA/AFRL contract
7 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.
8 *

--- 30 unchanged lines hidden (view full) ---

39
40struct riscv_bootparams {
41 vm_offset_t kern_l1pt; /* Kernel L1 base */
42 vm_offset_t kern_phys; /* Kernel base (physical) addr */
43 vm_offset_t kern_stack;
44 vm_offset_t dtbp_virt; /* Device tree blob virtual addr */
45};
46
47extern vm_paddr_t physmap[];
47extern vm_paddr_t physmap[PHYS_AVAIL_ENTRIES];
48extern u_int physmap_idx;
49
50vm_offset_t fake_preload_metadata(struct riscv_bootparams *rbp);
51void initriscv(struct riscv_bootparams *);
52
53#endif /* _MACHINE_MACHDEP_H_ */
48extern u_int physmap_idx;
49
50vm_offset_t fake_preload_metadata(struct riscv_bootparams *rbp);
51void initriscv(struct riscv_bootparams *);
52
53#endif /* _MACHINE_MACHDEP_H_ */