Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uboot-i9100
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
onny
uboot-i9100
Commits
0643631a
Commit
0643631a
authored
17 years ago
by
Michal Simek
Browse files
Options
Downloads
Patches
Plain Diff
16bit read/write little endian
parent
9d1d6a34
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpu/microblaze/start.S
+33
-0
33 additions, 0 deletions
cpu/microblaze/start.S
include/common.h
+4
-0
4 additions, 0 deletions
include/common.h
with
37 additions
and
0 deletions
cpu/microblaze/start.S
+
33
−
0
View file @
0643631a
...
...
@@ -117,3 +117,36 @@ clear_bss:
3
:
/
*
jumping
to
board_init
*/
brai
board_init
1
:
bri
1
b
/*
*
Read
16
bit
little
endian
*/
.
text
.
global
in16
.
ent
in16
.
align
2
in16
:
lhu
r3
,
r0
,
r5
bslli
r4
,
r3
,
8
bsrli
r3
,
r3
,
8
andi
r4
,
r4
,
0xffff
or
r3
,
r3
,
r4
rtsd
r15
,
8
sext16
r3
,
r3
.
end
in16
/*
*
Write
16
bit
little
endian
*
first
parameter
(
r5
)
-
address
,
second
(
r6
)
-
short
value
*/
.
text
.
global
out16
.
ent
out16
.
align
2
out16
:
bslli
r3
,
r6
,
8
bsrli
r6
,
r6
,
8
andi
r3
,
r3
,
0xffff
or
r3
,
r3
,
r6
sh
r3
,
r0
,
r5
rtsd
r15
,
8
or
r0
,
r0
,
r0
.
end
out16
This diff is collapsed.
Click to expand it.
include/common.h
+
4
−
0
View file @
0643631a
...
...
@@ -402,6 +402,10 @@ void ppcDcbi(unsigned long value);
void
ppcSync
(
void
);
void
ppcDcbz
(
unsigned
long
value
);
#endif
#if defined (CONFIG_MICROBLAZE)
unsigned
short
in16
(
unsigned
int
);
void
out16
(
unsigned
int
,
unsigned
short
value
);
#endif
#if defined (CONFIG_MPC83XX)
void
ppcDWload
(
unsigned
int
*
addr
,
unsigned
int
*
ret
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment