-
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: 21370 b: refs/heads/master c: 398d108 h: refs/heads/master v: v3
- Loading branch information
David S. Miller
committed
Mar 20, 2006
1 parent
e7eca0d
commit a2e8012
Showing
6 changed files
with
475 additions
and
1 deletion.
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: 30ddbdb03339fc62480ddbff800a44066bb14455 | ||
refs/heads/master: 398d10830843bda7798f71052b54a5341a8ddd53 |
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,37 @@ | ||
/* NGcopy_from_user.S: Niagara optimized copy from userspace. | ||
* | ||
* Copyright (C) 2006 David S. Miller (davem@davemloft.net) | ||
*/ | ||
|
||
#define EX_LD(x) \ | ||
98: x; \ | ||
.section .fixup; \ | ||
.align 4; \ | ||
99: wr %g0, ASI_AIUS, %asi;\ | ||
retl; \ | ||
mov 1, %o0; \ | ||
.section __ex_table,"a";\ | ||
.align 4; \ | ||
.word 98b, 99b; \ | ||
.text; \ | ||
.align 4; | ||
|
||
#ifndef ASI_AIUS | ||
#define ASI_AIUS 0x11 | ||
#endif | ||
|
||
#define FUNC_NAME NGcopy_from_user | ||
#define LOAD(type,addr,dest) type##a [addr] ASI_AIUS, dest | ||
#define LOAD_TWIN(addr_reg,dest0,dest1) \ | ||
ldda [addr_reg] ASI_BLK_INIT_QUAD_LDD_AIUS, dest0 | ||
#define EX_RETVAL(x) 0 | ||
|
||
#ifdef __KERNEL__ | ||
#define PREAMBLE \ | ||
rd %asi, %g1; \ | ||
cmp %g1, ASI_AIUS; \ | ||
bne,pn %icc, memcpy_user_stub; \ | ||
nop | ||
#endif | ||
|
||
#include "NGmemcpy.S" |
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,40 @@ | ||
/* NGcopy_to_user.S: Niagara optimized copy to userspace. | ||
* | ||
* Copyright (C) 2006 David S. Miller (davem@davemloft.net) | ||
*/ | ||
|
||
#define EX_ST(x) \ | ||
98: x; \ | ||
.section .fixup; \ | ||
.align 4; \ | ||
99: wr %g0, ASI_AIUS, %asi;\ | ||
retl; \ | ||
mov 1, %o0; \ | ||
.section __ex_table,"a";\ | ||
.align 4; \ | ||
.word 98b, 99b; \ | ||
.text; \ | ||
.align 4; | ||
|
||
#ifndef ASI_AIUS | ||
#define ASI_AIUS 0x11 | ||
#endif | ||
|
||
#define FUNC_NAME NGcopy_to_user | ||
#define STORE(type,src,addr) type##a src, [addr] ASI_AIUS | ||
#define STORE_ASI ASI_BLK_INIT_QUAD_LDD_AIUS | ||
#define EX_RETVAL(x) 0 | ||
|
||
#ifdef __KERNEL__ | ||
/* Writing to %asi is _expensive_ so we hardcode it. | ||
* Reading %asi to check for KERNEL_DS is comparatively | ||
* cheap. | ||
*/ | ||
#define PREAMBLE \ | ||
rd %asi, %g1; \ | ||
cmp %g1, ASI_AIUS; \ | ||
bne,pn %icc, memcpy_user_stub; \ | ||
nop | ||
#endif | ||
|
||
#include "U3memcpy.S" |
Oops, something went wrong.