Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
c0e8bd6c
Commit
c0e8bd6c
authored
Dec 09, 2010
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nic/nic-mem: bugfix: size must have the 2-byte offset added
parent
5e42d5cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
nic-mem.h
nic/nic-mem.h
+2
-0
No files found.
nic/nic-mem.h
View file @
c0e8bd6c
...
...
@@ -39,6 +39,7 @@ static inline void __wrn_copy_out(u32 __iomem *to, void *from, int size)
u32
i
;
from
-=
WRN_DDATA_OFFSET
;
size
+=
WRN_DDATA_OFFSET
;
while
(
size
>
0
)
{
i
=
get_unaligned_le32
(
from
);
writel
(
i
,
to
);
...
...
@@ -52,6 +53,7 @@ static inline void __wrn_copy_in(void *to, u32 __iomem *from, int size)
u32
i
;
to
-=
WRN_DDATA_OFFSET
;
size
+=
WRN_DDATA_OFFSET
;
printk
(
"%s: %i %p <= %p %i
\n
"
,
__func__
,
__LINE__
,
to
,
from
,
size
);
while
(
size
>
0
)
{
i
=
readl
(
from
);
...
...
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