Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305246
b: refs/heads/master
c: f007688
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 14, 2012
1 parent 3bdf834 commit 5eaf3b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbdb4e9f3fd4914caba6f102e62eef23920ab1f4
refs/heads/master: f007688a50cf5724049a4a5f17023fcdb0966b54
14 changes: 14 additions & 0 deletions trunk/arch/sh/include/asm/traps_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,22 @@
#ifndef __ASM_SH_TRAPS_64_H
#define __ASM_SH_TRAPS_64_H

#include <cpu/registers.h>

extern void phys_stext(void);

#define lookup_exception_vector() \
({ \
unsigned long _vec; \
\
__asm__ __volatile__ ( \
"getcon " __EXPEVT ", %0\n\t" \
: "=r" (_vec) \
); \
\
_vec; \
})

static inline void trigger_address_error(void)
{
phys_stext();
Expand Down

0 comments on commit 5eaf3b9

Please sign in to comment.