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
Kirill Smelkov
linux
Commits
cdd00fe6
Commit
cdd00fe6
authored
May 17, 2022
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Add dep_safe() macro to deposit a register in 32- and 64-kernels
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
be6aee13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
arch/parisc/include/asm/assembly.h
arch/parisc/include/asm/assembly.h
+10
-0
No files found.
arch/parisc/include/asm/assembly.h
View file @
cdd00fe6
...
...
@@ -174,6 +174,16 @@
#endif
.
endm
/* The depw instruction leaves the most significant 32 bits of the
* target register in an undefined state on PA 2.0 systems. */
.
macro
dep_safe
i
,
p
,
len
,
t
#ifdef CONFIG_64BIT
depd
\
i
,
32
+
(
\
p
),
\
len
,
\
t
#else
depw
\
i
,
\
p
,
\
len
,
\
t
#endif
.
endm
/* load 32-bit 'value' into 'reg' compensating for the ldil
* sign-extension when running in wide mode.
* WARNING!! neither 'value' nor 'reg' can be expressions
...
...
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