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
b6f6db3e
Commit
b6f6db3e
authored
Feb 28, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Add forgotten probe.w.fault checks in fsys_gettimeofday().
parent
b8fcff74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
arch/ia64/kernel/fsys.S
arch/ia64/kernel/fsys.S
+11
-1
No files found.
arch/ia64/kernel/fsys.S
View file @
b6f6db3e
...
@@ -180,7 +180,7 @@ ENTRY(fsys_gettimeofday)
...
@@ -180,7 +180,7 @@ ENTRY(fsys_gettimeofday)
ldf8
f7
=[
r10
]
//
f7
now
contains
itm_delta
ldf8
f7
=[
r10
]
//
f7
now
contains
itm_delta
setf.sig
f11
=
r2
setf.sig
f11
=
r2
nop
0
adds
r10
=
8
,
r32
adds
r20
=
IA64_TIMESPEC_TV_NSEC_OFFSET
,
r19
//
r20
=
&
xtime
->
tv_nsec
adds
r20
=
IA64_TIMESPEC_TV_NSEC_OFFSET
,
r19
//
r20
=
&
xtime
->
tv_nsec
movl
r26
=
jiffies
movl
r26
=
jiffies
...
@@ -192,6 +192,16 @@ ENTRY(fsys_gettimeofday)
...
@@ -192,6 +192,16 @@ ENTRY(fsys_gettimeofday)
movl
r25
=
last_nsec_offset
movl
r25
=
last_nsec_offset
;;
;;
/
*
*
Verify
that
we
have
permission
to
write
to
struct
timeval
.
Note
:
*
Another
thread
might
unmap
the
mapping
before
we
actually
get
*
to
store
the
result
.
That
's OK as long as the stores are also
*
protect
by
EX
()
.
*/
EX
(.
fail
,
probe.w.fault
r32
,
3
)
//
this
must
come
_after_
NaT
-
check
EX
(.
fail
,
probe.w.fault
r10
,
3
)
//
this
must
come
_after_
NaT
-
check
nop
0
ldf8
f10
=[
r8
]
//
f10
<-
local_cpu_data
->
nsec_per_cyc
value
ldf8
f10
=[
r8
]
//
f10
<-
local_cpu_data
->
nsec_per_cyc
value
cmp.ne
p8
,
p0
=
0
,
r9
cmp.ne
p8
,
p0
=
0
,
r9
(
p8
)
br.spnt.many
fsys_fallback_syscall
(
p8
)
br.spnt.many
fsys_fallback_syscall
...
...
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