loadfile.h (8461863e) | loadfile.h (c96d1163) |
---|---|
1/* $NetBSD: loadfile.h,v 1.1 1999/04/28 09:08:50 christos Exp $ */ | 1/* $NetBSD: loadfile.h,v 1.1 1999/04/28 09:08:50 christos Exp $ */ |
2/* $OpenBSD: loadfile.h,v 1.9 2017/06/07 14:41:53 mlarkin Exp $ */ | 2/* $OpenBSD: loadfile.h,v 1.10 2017/11/29 02:46:10 mlarkin Exp $ */ |
3 4/*- 5 * Copyright (c) 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Christos Zoulas. 10 * --- 55 unchanged lines hidden (view full) --- 66#define LOWMEM_KB 640 67 68#define BOOTARGS_PAGE 0x2000 69#define STACK_PAGE 0xF000 70#define GDT_PAGE 0x10000 71#define PML4_PAGE 0x11000 72#define PML3_PAGE 0x12000 73#define PML2_PAGE 0x13000 | 3 4/*- 5 * Copyright (c) 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Christos Zoulas. 10 * --- 55 unchanged lines hidden (view full) --- 66#define LOWMEM_KB 640 67 68#define BOOTARGS_PAGE 0x2000 69#define STACK_PAGE 0xF000 70#define GDT_PAGE 0x10000 71#define PML4_PAGE 0x11000 72#define PML3_PAGE 0x12000 73#define PML2_PAGE 0x13000 |
74#define NPTE_PG (PAGE_SIZE / sizeof(pt_entry_t)) | 74#define NPTE_PG (PAGE_SIZE / sizeof(uint64_t)) |
75 76int loadfile_elf(FILE *, struct vm_create_params *, 77 struct vcpu_reg_state *, uint32_t, uint32_t); 78 79size_t mread(FILE *, paddr_t, size_t); 80 81#include <machine/loadfile_machdep.h> | 75 76int loadfile_elf(FILE *, struct vm_create_params *, 77 struct vcpu_reg_state *, uint32_t, uint32_t); 78 79size_t mread(FILE *, paddr_t, size_t); 80 81#include <machine/loadfile_machdep.h> |