-
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: 13726 b: refs/heads/master c: 3ddfbcf h: refs/heads/master v: v3
- Loading branch information
David Gibson
authored and
Paul Mackerras
committed
Nov 10, 2005
1 parent
482c6da
commit c3f54e7
Showing
16 changed files
with
211 additions
and
211 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: f6d3577da14e877b79517c883d1139ee6ad7da45 | ||
refs/heads/master: 3ddfbcf19b15ccd25a0b4b2dc2e38000e08de739 |
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
|
||
#include <asm/processor.h> | ||
#include <asm/asm-offsets.h> | ||
#include <asm/ppc_asm.h> | ||
|
||
.text | ||
|
||
|
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
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,55 @@ | ||
#ifndef _ASM_POWERPC_ASM_COMPAT_H | ||
#define _ASM_POWERPC_ASM_COMPAT_H | ||
|
||
#include <linux/config.h> | ||
#include <asm/types.h> | ||
|
||
#ifdef __ASSEMBLY__ | ||
# define stringify_in_c(...) __VA_ARGS__ | ||
# define ASM_CONST(x) x | ||
#else | ||
/* This version of stringify will deal with commas... */ | ||
# define __stringify_in_c(...) #__VA_ARGS__ | ||
# define stringify_in_c(...) __stringify_in_c(__VA_ARGS__) " " | ||
# define __ASM_CONST(x) x##UL | ||
# define ASM_CONST(x) __ASM_CONST(x) | ||
#endif | ||
|
||
#ifdef __powerpc64__ | ||
|
||
/* operations for longs and pointers */ | ||
#define PPC_LL stringify_in_c(ld) | ||
#define PPC_STL stringify_in_c(std) | ||
#define PPC_LCMPI stringify_in_c(cmpdi) | ||
#define PPC_LONG stringify_in_c(.llong) | ||
#define PPC_TLNEI stringify_in_c(tdnei) | ||
#define PPC_LLARX stringify_in_c(ldarx) | ||
#define PPC_STLCX stringify_in_c(stdcx.) | ||
#define PPC_CNTLZL stringify_in_c(cntlzd) | ||
|
||
#else /* 32-bit */ | ||
|
||
/* operations for longs and pointers */ | ||
#define PPC_LL stringify_in_c(lwz) | ||
#define PPC_STL stringify_in_c(stw) | ||
#define PPC_LCMPI stringify_in_c(cmpwi) | ||
#define PPC_LONG stringify_in_c(.long) | ||
#define PPC_TLNEI stringify_in_c(twnei) | ||
#define PPC_LLARX stringify_in_c(lwarx) | ||
#define PPC_STLCX stringify_in_c(stwcx.) | ||
#define PPC_CNTLZL stringify_in_c(cntlzw) | ||
|
||
#endif | ||
|
||
#ifdef CONFIG_IBM405_ERR77 | ||
/* Erratum #77 on the 405 means we need a sync or dcbt before every | ||
* stwcx. The old ATOMIC_SYNC_FIX covered some but not all of this. | ||
*/ | ||
#define PPC405_ERR77(ra,rb) stringify_in_c(dcbt ra, rb;) | ||
#define PPC405_ERR77_SYNC stringify_in_c(sync;) | ||
#else | ||
#define PPC405_ERR77(ra,rb) | ||
#define PPC405_ERR77_SYNC | ||
#endif | ||
|
||
#endif /* _ASM_POWERPC_ASM_COMPAT_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
Oops, something went wrong.