-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 67263 b: refs/heads/master c: 7180e3e h: refs/heads/master i: 67261: 6c3dce9 67259: adc9c9c 67255: f3c5867 67247: 6383966 67231: 9d2bbfb 67199: 3577b2f v: v3
- Loading branch information
Stephen Rothwell
authored and
Paul Mackerras
committed
Aug 22, 2007
1 parent
b0f8844
commit 3fd887b
Showing
4 changed files
with
79 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: dc8f571a26689102f6abe2565a84226edeaacc61 | ||
refs/heads/master: 7180e3e636deff82f8810291878a184f21142fa9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#ifndef _ASM_POWERPC_ISERIES_EXCEPTION_H | ||
#define _ASM_POWERPC_ISERIES_EXCEPTION_H | ||
/* | ||
* Extracted from head_64.S | ||
* | ||
* PowerPC version | ||
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) | ||
* | ||
* Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP | ||
* Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu> | ||
* Adapted for Power Macintosh by Paul Mackerras. | ||
* Low-level exception handlers and MMU support | ||
* rewritten by Paul Mackerras. | ||
* Copyright (C) 1996 Paul Mackerras. | ||
* | ||
* Adapted for 64bit PowerPC by Dave Engebretsen, Peter Bergner, and | ||
* Mike Corrigan {engebret|bergner|mikejc}@us.ibm.com | ||
* | ||
* This file contains the low-level support and setup for the | ||
* PowerPC-64 platform, including trap and interrupt dispatch. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the License, or (at your option) any later version. | ||
*/ | ||
#include <asm/exception.h> | ||
|
||
#define EXCEPTION_PROLOG_ISERIES_1 \ | ||
mfmsr r10; \ | ||
ld r12,PACALPPACAPTR(r13); \ | ||
ld r11,LPPACASRR0(r12); \ | ||
ld r12,LPPACASRR1(r12); \ | ||
ori r10,r10,MSR_RI; \ | ||
mtmsrd r10,1 | ||
|
||
#define STD_EXCEPTION_ISERIES(n, label, area) \ | ||
.globl label##_iSeries; \ | ||
label##_iSeries: \ | ||
HMT_MEDIUM; \ | ||
mtspr SPRN_SPRG1,r13; /* save r13 */ \ | ||
EXCEPTION_PROLOG_1(area); \ | ||
EXCEPTION_PROLOG_ISERIES_1; \ | ||
b label##_common | ||
|
||
#define MASKABLE_EXCEPTION_ISERIES(n, label) \ | ||
.globl label##_iSeries; \ | ||
label##_iSeries: \ | ||
HMT_MEDIUM; \ | ||
mtspr SPRN_SPRG1,r13; /* save r13 */ \ | ||
EXCEPTION_PROLOG_1(PACA_EXGEN); \ | ||
lbz r10,PACASOFTIRQEN(r13); \ | ||
cmpwi 0,r10,0; \ | ||
beq- label##_iSeries_masked; \ | ||
EXCEPTION_PROLOG_ISERIES_1; \ | ||
b label##_common; \ | ||
|
||
#endif /* _ASM_POWERPC_ISERIES_EXCEPTION_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters