Deleted Added
full compact
machdep.c (294930) machdep.c (295142)
1/*-
2 * Copyright (c) 2014 Andrew Turner
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * SUCH DAMAGE.
25 *
26 */
27
28#include "opt_platform.h"
29#include "opt_ddb.h"
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2014 Andrew Turner
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

24 * SUCH DAMAGE.
25 *
26 */
27
28#include "opt_platform.h"
29#include "opt_ddb.h"
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/arm64/arm64/machdep.c 294930 2016-01-27 17:55:01Z jhb $");
32__FBSDID("$FreeBSD: head/sys/arm64/arm64/machdep.c 295142 2016-02-02 10:28:56Z andrew $");
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/buf.h>
37#include <sys/bus.h>
38#include <sys/cons.h>
39#include <sys/cpu.h>
40#include <sys/efi.h>

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

228 panic("ARM64TODO: ptrace_set_pc");
229 return (0);
230}
231
232int
233ptrace_single_step(struct thread *td)
234{
235
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/buf.h>
37#include <sys/bus.h>
38#include <sys/cons.h>
39#include <sys/cpu.h>
40#include <sys/efi.h>

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

228 panic("ARM64TODO: ptrace_set_pc");
229 return (0);
230}
231
232int
233ptrace_single_step(struct thread *td)
234{
235
236 /* TODO; */
236 td->td_frame->tf_spsr |= PSR_SS;
237 td->td_pcb->pcb_flags |= PCB_SINGLE_STEP;
237 return (0);
238}
239
240int
241ptrace_clear_single_step(struct thread *td)
242{
243
238 return (0);
239}
240
241int
242ptrace_clear_single_step(struct thread *td)
243{
244
244 /* TODO; */
245 td->td_frame->tf_spsr &= ~PSR_SS;
246 td->td_pcb->pcb_flags &= ~PCB_SINGLE_STEP;
245 return (0);
246}
247
248void
249exec_setregs(struct thread *td, struct image_params *imgp, u_long stack)
250{
251 struct trapframe *tf = td->td_frame;
252

--- 732 unchanged lines hidden ---
247 return (0);
248}
249
250void
251exec_setregs(struct thread *td, struct image_params *imgp, u_long stack)
252{
253 struct trapframe *tf = td->td_frame;
254

--- 732 unchanged lines hidden ---