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
87673af0
Commit
87673af0
authored
Sep 22, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Mark access_ok() as likely to succeed (as is done in x86 tree).
parent
fc051025
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
arch/ia64/kernel/traps.c
arch/ia64/kernel/traps.c
+2
-1
include/asm-ia64/uaccess.h
include/asm-ia64/uaccess.h
+5
-3
No files found.
arch/ia64/kernel/traps.c
View file @
87673af0
...
@@ -335,7 +335,8 @@ handle_fpu_swa (int fp_fault, struct pt_regs *regs, unsigned long isr)
...
@@ -335,7 +335,8 @@ handle_fpu_swa (int fp_fault, struct pt_regs *regs, unsigned long isr)
if
((
fpu_swa_count
<
4
)
&&
!
(
current
->
thread
.
flags
&
IA64_THREAD_FPEMU_NOPRINT
))
{
if
((
fpu_swa_count
<
4
)
&&
!
(
current
->
thread
.
flags
&
IA64_THREAD_FPEMU_NOPRINT
))
{
last_time
=
jiffies
;
last_time
=
jiffies
;
++
fpu_swa_count
;
++
fpu_swa_count
;
printk
(
KERN_WARNING
"%s(%d): floating-point assist fault at ip %016lx, isr %016lx
\n
"
,
printk
(
KERN_WARNING
"%s(%d): floating-point assist fault at ip %016lx, isr %016lx
\n
"
,
current
->
comm
,
current
->
pid
,
regs
->
cr_iip
+
ia64_psr
(
regs
)
->
ri
,
isr
);
current
->
comm
,
current
->
pid
,
regs
->
cr_iip
+
ia64_psr
(
regs
)
->
ri
,
isr
);
}
}
...
...
include/asm-ia64/uaccess.h
View file @
87673af0
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
* David Mosberger-Tang <davidm@hpl.hp.com>
* David Mosberger-Tang <davidm@hpl.hp.com>
*/
*/
#include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/sched.h>
...
@@ -57,7 +58,8 @@
...
@@ -57,7 +58,8 @@
* address TASK_SIZE is never valid. We also need to make sure that the address doesn't
* address TASK_SIZE is never valid. We also need to make sure that the address doesn't
* point inside the virtually mapped linear page table.
* point inside the virtually mapped linear page table.
*/
*/
#define __access_ok(addr,size,segment) (((unsigned long) (addr)) <= (segment).seg \
#define __access_ok(addr,size,segment) \
likely(((unsigned long) (addr)) <= (segment).seg \
&& ((segment).seg == KERNEL_DS.seg \
&& ((segment).seg == KERNEL_DS.seg \
|| REGION_OFFSET((unsigned long) (addr)) < RGN_MAP_LIMIT))
|| REGION_OFFSET((unsigned long) (addr)) < RGN_MAP_LIMIT))
#define access_ok(type,addr,size) __access_ok((addr),(size),get_fs())
#define access_ok(type,addr,size) __access_ok((addr),(size),get_fs())
...
...
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