diff options
author | Chris Zankel <chris@zankel.net> | 2008-01-09 12:22:36 -0500 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2008-02-13 20:22:18 -0500 |
commit | ea0b6b066304d9f7e24b273c71fab5d67ce54f96 (patch) | |
tree | e4f461b76a4afc9ea2105067e2f30c935cca4b27 /arch | |
parent | 50c0716aa2f49a9d34589e380fad73402464c088 (diff) |
[XTENSA] Fix comments regarding the number of frames to save
Signed-off-by: Marc Gauthier <marc@tensilica.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/kernel/entry.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S index 401b33bfd9c0..b4b14a579a3c 100644 --- a/arch/xtensa/kernel/entry.S +++ b/arch/xtensa/kernel/entry.S | |||
@@ -1336,11 +1336,11 @@ ENTRY(_spill_registers) | |||
1336 | 1336 | ||
1337 | wsr a2, DEPC # preserve a2 | 1337 | wsr a2, DEPC # preserve a2 |
1338 | rsr a2, WINDOWBASE | 1338 | rsr a2, WINDOWBASE |
1339 | rsr a3, WINDOWSTART | 1339 | rsr a3, WINDOWSTART # a3 = xxxwww1yy |
1340 | ssr a2 # holds WB | 1340 | ssr a2 # holds WB |
1341 | slli a2, a3, WSBITS | 1341 | slli a2, a3, WSBITS |
1342 | or a3, a3, a2 # a2 = xxxwww1yyxxxwww1yy | 1342 | or a3, a3, a2 # a3 = xxxwww1yyxxxwww1yy |
1343 | srl a3, a3 | 1343 | srl a3, a3 # a3 = 00xxxwww1yyxxxwww1 |
1344 | 1344 | ||
1345 | /* We are done if there are no more than the current register frame. */ | 1345 | /* We are done if there are no more than the current register frame. */ |
1346 | 1346 | ||
@@ -1395,8 +1395,8 @@ ENTRY(_spill_registers) | |||
1395 | j .Lc12c | 1395 | j .Lc12c |
1396 | 1396 | ||
1397 | .Lnospill: | 1397 | .Lnospill: |
1398 | rsr a2, DEPC # restore a2 and 'return' | 1398 | rsr a2, DEPC |
1399 | jx a0 | 1399 | ret |
1400 | 1400 | ||
1401 | .Lloop: _bbsi.l a3, 1, .Lc4 | 1401 | .Lloop: _bbsi.l a3, 1, .Lc4 |
1402 | _bbci.l a3, 2, .Lc12 | 1402 | _bbci.l a3, 2, .Lc12 |
@@ -1423,7 +1423,7 @@ ENTRY(_spill_registers) | |||
1423 | movi a3, 1 | 1423 | movi a3, 1 |
1424 | sll a3, a3 | 1424 | sll a3, a3 |
1425 | wsr a3, WINDOWSTART | 1425 | wsr a3, WINDOWSTART |
1426 | jx a0 | 1426 | ret |
1427 | 1427 | ||
1428 | .Lc4: s32e a4, a9, -16 | 1428 | .Lc4: s32e a4, a9, -16 |
1429 | s32e a5, a9, -12 | 1429 | s32e a5, a9, -12 |