genassym.c (295142) | genassym.c (297446) |
---|---|
1/*- 2 * Copyright (c) 2004 Olivier Houchard 3 * Copyright (c) 2014 Andrew Turner 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Olivier Houchard 3 * Copyright (c) 2014 Andrew Turner 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/arm64/arm64/genassym.c 295142 2016-02-02 10:28:56Z andrew $"); | 30__FBSDID("$FreeBSD: head/sys/arm64/arm64/genassym.c 297446 2016-03-31 11:07:24Z andrew $"); |
31#include <sys/param.h> 32#include <sys/assym.h> 33#include <sys/pcpu.h> 34#include <sys/proc.h> 35 36#include <machine/frame.h> 37#include <machine/pcb.h> 38#include <machine/vmparam.h> --- 8 unchanged lines hidden (view full) --- 47ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 48ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); 49 50/* Size of pcb, rounded to keep stack alignment */ 51ASSYM(PCB_SIZE, roundup2(sizeof(struct pcb), STACKALIGNBYTES + 1)); 52ASSYM(PCB_SINGLE_STEP_SHIFT, PCB_SINGLE_STEP_SHIFT); 53ASSYM(PCB_REGS, offsetof(struct pcb, pcb_x)); 54ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp)); | 31#include <sys/param.h> 32#include <sys/assym.h> 33#include <sys/pcpu.h> 34#include <sys/proc.h> 35 36#include <machine/frame.h> 37#include <machine/pcb.h> 38#include <machine/vmparam.h> --- 8 unchanged lines hidden (view full) --- 47ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 48ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); 49 50/* Size of pcb, rounded to keep stack alignment */ 51ASSYM(PCB_SIZE, roundup2(sizeof(struct pcb), STACKALIGNBYTES + 1)); 52ASSYM(PCB_SINGLE_STEP_SHIFT, PCB_SINGLE_STEP_SHIFT); 53ASSYM(PCB_REGS, offsetof(struct pcb, pcb_x)); 54ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp)); |
55ASSYM(PCB_L1ADDR, offsetof(struct pcb, pcb_l1addr)); | 55ASSYM(PCB_L0ADDR, offsetof(struct pcb, pcb_l0addr)); |
56ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault)); 57ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags)); 58 59ASSYM(SF_UC, offsetof(struct sigframe, sf_uc)); 60 61ASSYM(TD_PCB, offsetof(struct thread, td_pcb)); 62ASSYM(TD_FLAGS, offsetof(struct thread, td_flags)); 63ASSYM(TD_LOCK, offsetof(struct thread, td_lock)); 64 65ASSYM(TF_SIZE, sizeof(struct trapframe)); 66ASSYM(TF_SP, offsetof(struct trapframe, tf_sp)); 67ASSYM(TF_ELR, offsetof(struct trapframe, tf_elr)); 68ASSYM(TF_X, offsetof(struct trapframe, tf_x)); | 56ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault)); 57ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags)); 58 59ASSYM(SF_UC, offsetof(struct sigframe, sf_uc)); 60 61ASSYM(TD_PCB, offsetof(struct thread, td_pcb)); 62ASSYM(TD_FLAGS, offsetof(struct thread, td_flags)); 63ASSYM(TD_LOCK, offsetof(struct thread, td_lock)); 64 65ASSYM(TF_SIZE, sizeof(struct trapframe)); 66ASSYM(TF_SP, offsetof(struct trapframe, tf_sp)); 67ASSYM(TF_ELR, offsetof(struct trapframe, tf_elr)); 68ASSYM(TF_X, offsetof(struct trapframe, tf_x)); |