Deleted Added
full compact
undefined.c (254451) undefined.c (254461)
1/* $NetBSD: undefined.c,v 1.22 2003/11/29 22:21:29 bjh21 Exp $ */
2
3/*-
4 * Copyright (c) 2001 Ben Harris.
5 * Copyright (c) 1995 Mark Brinicombe.
6 * Copyright (c) 1995 Brini.
7 * All rights reserved.
8 *

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

43 *
44 * Created : 06/01/95
45 */
46
47
48#include "opt_ddb.h"
49
50#include <sys/cdefs.h>
1/* $NetBSD: undefined.c,v 1.22 2003/11/29 22:21:29 bjh21 Exp $ */
2
3/*-
4 * Copyright (c) 2001 Ben Harris.
5 * Copyright (c) 1995 Mark Brinicombe.
6 * Copyright (c) 1995 Brini.
7 * All rights reserved.
8 *

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

43 *
44 * Created : 06/01/95
45 */
46
47
48#include "opt_ddb.h"
49
50#include <sys/cdefs.h>
51__FBSDID("$FreeBSD: head/sys/arm/arm/undefined.c 254451 2013-08-17 14:52:19Z andrew $");
51__FBSDID("$FreeBSD: head/sys/arm/arm/undefined.c 254461 2013-08-17 18:51:38Z andrew $");
52
53#include <sys/param.h>
54#include <sys/malloc.h>
55#include <sys/queue.h>
56#include <sys/signal.h>
57#include <sys/systm.h>
58#include <sys/proc.h>
59#include <sys/syslog.h>

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

229 * instruction to tell the difference between and undefined
230 * instruction and a coprocessor instruction following an undefined
231 * instruction trap.
232 */
233
234 coprocessor = 0;
235 if ((fault_instruction & (1 << 27)) != 0)
236 coprocessor = (fault_instruction >> 8) & 0x0f;
52
53#include <sys/param.h>
54#include <sys/malloc.h>
55#include <sys/queue.h>
56#include <sys/signal.h>
57#include <sys/systm.h>
58#include <sys/proc.h>
59#include <sys/syslog.h>

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

229 * instruction to tell the difference between and undefined
230 * instruction and a coprocessor instruction following an undefined
231 * instruction trap.
232 */
233
234 coprocessor = 0;
235 if ((fault_instruction & (1 << 27)) != 0)
236 coprocessor = (fault_instruction >> 8) & 0x0f;
237#ifdef ARM_VFP_SUPPORT
237#ifdef VFP
238 else { /* check for special instructions */
239 if (((fault_instruction & 0xfe000000) == 0xf2000000) ||
240 ((fault_instruction & 0xff100000) == 0xf4000000))
241 coprocessor = 10; /* vfp / simd */
242 }
238 else { /* check for special instructions */
239 if (((fault_instruction & 0xfe000000) == 0xf2000000) ||
240 ((fault_instruction & 0xff100000) == 0xf4000000))
241 coprocessor = 10; /* vfp / simd */
242 }
243#endif /* ARM_VFP_SUPPORT */
243#endif /* VFP */
244
245 if ((frame->tf_spsr & PSR_MODE) == PSR_USR32_MODE) {
246 /*
247 * Modify the fault_code to reflect the USR/SVC state at
248 * time of fault.
249 */
250 fault_code = FAULT_USER;
251 td->td_frame = frame;

--- 41 unchanged lines hidden ---
244
245 if ((frame->tf_spsr & PSR_MODE) == PSR_USR32_MODE) {
246 /*
247 * Modify the fault_code to reflect the USR/SVC state at
248 * time of fault.
249 */
250 fault_code = FAULT_USER;
251 td->td_frame = frame;

--- 41 unchanged lines hidden ---