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
e70f1d59
Commit
e70f1d59
authored
Dec 26, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s390: 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
29 additions
and
25 deletions
+29
-25
arch/s390/include/asm/extable.h
arch/s390/include/asm/extable.h
+28
-0
arch/s390/include/asm/uaccess.h
arch/s390/include/asm/uaccess.h
+1
-25
No files found.
arch/s390/include/asm/extable.h
0 → 100644
View file @
e70f1d59
#ifndef __S390_EXTABLE_H
#define __S390_EXTABLE_H
/*
* The exception table consists of pairs of 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.
*/
struct
exception_table_entry
{
int
insn
,
fixup
;
};
static
inline
unsigned
long
extable_fixup
(
const
struct
exception_table_entry
*
x
)
{
return
(
unsigned
long
)
&
x
->
fixup
+
x
->
fixup
;
}
#define ARCH_HAS_RELATIVE_EXTABLE
#endif
arch/s390/include/asm/uaccess.h
View file @
e70f1d59
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
*/
*/
#include <asm/processor.h>
#include <asm/processor.h>
#include <asm/ctl_reg.h>
#include <asm/ctl_reg.h>
#include <asm/extable.h>
/*
/*
...
@@ -59,31 +60,6 @@ static inline int __range_ok(unsigned long addr, unsigned long size)
...
@@ -59,31 +60,6 @@ static inline int __range_ok(unsigned long addr, unsigned long size)
#define access_ok(type, addr, size) __access_ok(addr, size)
#define access_ok(type, addr, size) __access_ok(addr, size)
/*
* The exception table consists of pairs of 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.
*/
struct
exception_table_entry
{
int
insn
,
fixup
;
};
static
inline
unsigned
long
extable_fixup
(
const
struct
exception_table_entry
*
x
)
{
return
(
unsigned
long
)
&
x
->
fixup
+
x
->
fixup
;
}
#define ARCH_HAS_RELATIVE_EXTABLE
/**
/**
* __copy_from_user: - Copy a block of data from user space, with less checking.
* __copy_from_user: - Copy a block of data from user space, with less checking.
* @to: Destination address, in kernel space.
* @to: Destination address, in kernel space.
...
...
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