Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347240
b: refs/heads/master
c: c0226e3
h: refs/heads/master
v: v3
  • Loading branch information
Max Filippov authored and Chris Zankel committed Dec 19, 2012
1 parent 206133d commit 26ca397
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6550162200b40d1e725167f8a617255c42b57552
refs/heads/master: c0226e34a4293dee0e7c5787e1ebfc5ee8b44b7c
14 changes: 10 additions & 4 deletions trunk/arch/xtensa/kernel/vectors.S
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,13 @@ ENTRY(_DoubleExceptionVector)
/* Window overflow/underflow exception. Get stack pointer. */

mov a3, a2
movi a2, exc_table
/* This explicit literal and the following references to it are made
* in order to fit DoubleExceptionVector.literals into the available
* 16-byte gap before DoubleExceptionVector.text in the absence of
* link time relaxation. See kernel/vmlinux.lds.S
*/
.literal .Lexc_table, exc_table
l32r a2, .Lexc_table
l32i a2, a2, EXC_TABLE_KSTK

/* Check for overflow/underflow exception, jump if overflow. */
Expand Down Expand Up @@ -255,7 +261,7 @@ ENTRY(_DoubleExceptionVector)
s32i a0, a2, PT_AREG0

wsr a3, excsave1 # save a3
movi a3, exc_table
l32r a3, .Lexc_table

rsr a0, exccause
s32i a0, a2, PT_DEPC # mark it as a regular exception
Expand All @@ -267,7 +273,7 @@ ENTRY(_DoubleExceptionVector)

/* a0: depc, a1: a1, a2: a2, a3: trashed, depc: a0, excsave1: a3 */

movi a3, exc_table
l32r a3, .Lexc_table
s32i a2, a3, EXC_TABLE_DOUBLE_SAVE # temporary variable

/* Enter critical section. */
Expand Down Expand Up @@ -296,7 +302,7 @@ ENTRY(_DoubleExceptionVector)

/* a0: avail, a1: a1, a2: kstk, a3: avail, depc: a2, excsave: a3 */

movi a3, exc_table
l32r a3, .Lexc_table
rsr a0, exccause
addx4 a0, a0, a3
l32i a0, a0, EXC_TABLE_FAST_USER
Expand Down

0 comments on commit 26ca397

Please sign in to comment.