Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
527b5bae
Commit
527b5bae
authored
Dec 26, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: switch to extable.h
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d597580d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
25 deletions
+30
-25
arch/powerpc/include/asm/extable.h
arch/powerpc/include/asm/extable.h
+29
-0
arch/powerpc/include/asm/uaccess.h
arch/powerpc/include/asm/uaccess.h
+1
-25
No files found.
arch/powerpc/include/asm/extable.h
0 → 100644
View file @
527b5bae
#ifndef _ARCH_POWERPC_EXTABLE_H
#define _ARCH_POWERPC_EXTABLE_H
/*
* The exception table consists of pairs of relative addresses: the first is
* the address of an instruction that is allowed to fault, and the second is
* the address at which the program should continue. No registers are
* modified, so it is entirely up to the continuation code to figure out what
* to do.
*
* All the routines below use bits of fixup code that are out of line with the
* main instruction path. This means when everything is well, we don't even
* have to jump over them. Further, they do not intrude on our cache or tlb
* entries.
*/
#define ARCH_HAS_RELATIVE_EXTABLE
struct
exception_table_entry
{
int
insn
;
int
fixup
;
};
static
inline
unsigned
long
extable_fixup
(
const
struct
exception_table_entry
*
x
)
{
return
(
unsigned
long
)
&
x
->
fixup
+
x
->
fixup
;
}
#endif
arch/powerpc/include/asm/uaccess.h
View file @
527b5bae
...
...
@@ -5,6 +5,7 @@
#include <asm/ppc_asm.h>
#include <asm/processor.h>
#include <asm/page.h>
#include <asm/extable.h>
/*
* The fs value determines whether argument validity checking should be
...
...
@@ -55,31 +56,6 @@
(__chk_user_ptr(addr), \
__access_ok((__force unsigned long)(addr), (size), get_fs()))
/*
* The exception table consists of pairs of relative addresses: the first is
* the address of an instruction that is allowed to fault, and the second is
* the address at which the program should continue. No registers are
* modified, so it is entirely up to the continuation code to figure out what
* to do.
*
* All the routines below use bits of fixup code that are out of line with the
* main instruction path. This means when everything is well, we don't even
* have to jump over them. Further, they do not intrude on our cache or tlb
* entries.
*/
#define ARCH_HAS_RELATIVE_EXTABLE
struct
exception_table_entry
{
int
insn
;
int
fixup
;
};
static
inline
unsigned
long
extable_fixup
(
const
struct
exception_table_entry
*
x
)
{
return
(
unsigned
long
)
&
x
->
fixup
+
x
->
fixup
;
}
/*
* These are the main single-value transfer routines. They automatically
* use the right size if we just have the right pointer type.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment