Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openocd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
openocd
Commits
2d45a10d
Commit
2d45a10d
authored
15 years ago
by
Øyvind Harboe
Browse files
Options
Downloads
Patches
Plain Diff
read/write physical target fn's
parent
85bf1627
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/target/arm720t.c
+27
-0
27 additions, 0 deletions
src/target/arm720t.c
src/target/arm920t.c
+26
-0
26 additions, 0 deletions
src/target/arm920t.c
with
53 additions
and
0 deletions
src/target/arm720t.c
+
27
−
0
View file @
2d45a10d
...
...
@@ -44,6 +44,8 @@ int arm720t_quit(void);
int
arm720t_arch_state
(
struct
target_s
*
target
);
int
arm720t_read_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
);
int
arm720t_write_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
);
int
arm720t_read_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
);
int
arm720t_write_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
);
int
arm720t_soft_reset_halt
(
struct
target_s
*
target
);
target_type_t
arm720t_target
=
...
...
@@ -65,6 +67,8 @@ target_type_t arm720t_target =
.
read_memory
=
arm720t_read_memory
,
.
write_memory
=
arm720t_write_memory
,
.
read_phys_memory
=
arm720t_read_phys_memory
,
.
write_phys_memory
=
arm720t_write_phys_memory
,
.
bulk_write_memory
=
arm7_9_bulk_write_memory
,
.
checksum_memory
=
arm7_9_checksum_memory
,
.
blank_check_memory
=
arm7_9_blank_check_memory
,
...
...
@@ -81,6 +85,7 @@ target_type_t arm720t_target =
.
init_target
=
arm720t_init_target
,
.
examine
=
arm7tdmi_examine
,
.
quit
=
arm720t_quit
};
int
arm720t_scan_cp15
(
target_t
*
target
,
uint32_t
out
,
uint32_t
*
in
,
int
instruction
,
int
clock
)
...
...
@@ -358,6 +363,28 @@ int arm720t_write_memory(struct target_s *target, uint32_t address, uint32_t siz
return
retval
;
}
int
arm720t_read_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
)
{
armv4_5_common_t
*
armv4_5
=
target
->
arch_info
;
arm7_9_common_t
*
arm7_9
=
armv4_5
->
arch_info
;
arm7tdmi_common_t
*
arm7tdmi
=
arm7_9
->
arch_info
;
arm720t_common_t
*
arm720t
=
arm7tdmi
->
arch_info
;
return
armv4_5_mmu_read_physical
(
target
,
&
arm720t
->
armv4_5_mmu
,
address
,
size
,
count
,
buffer
);
}
int
arm720t_write_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
)
{
armv4_5_common_t
*
armv4_5
=
target
->
arch_info
;
arm7_9_common_t
*
arm7_9
=
armv4_5
->
arch_info
;
arm7tdmi_common_t
*
arm7tdmi
=
arm7_9
->
arch_info
;
arm720t_common_t
*
arm720t
=
arm7tdmi
->
arch_info
;
return
armv4_5_mmu_write_physical
(
target
,
&
arm720t
->
armv4_5_mmu
,
address
,
size
,
count
,
buffer
);
}
int
arm720t_soft_reset_halt
(
struct
target_s
*
target
)
{
int
retval
=
ERROR_OK
;
...
...
This diff is collapsed.
Click to expand it.
src/target/arm920t.c
+
26
−
0
View file @
2d45a10d
...
...
@@ -36,6 +36,8 @@ int arm920t_handle_cp15i_command(struct command_context_s *cmd_ctx, char *cmd, c
int
arm920t_handle_cache_info_command
(
struct
command_context_s
*
cmd_ctx
,
char
*
cmd
,
char
**
args
,
int
argc
);
int
arm920t_handle_md_phys_command
(
struct
command_context_s
*
cmd_ctx
,
char
*
cmd
,
char
**
args
,
int
argc
);
int
arm920t_handle_mw_phys_command
(
struct
command_context_s
*
cmd_ctx
,
char
*
cmd
,
char
**
args
,
int
argc
);
int
arm920t_read_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
);
int
arm920t_write_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
);
int
arm920t_handle_read_cache_command
(
struct
command_context_s
*
cmd_ctx
,
char
*
cmd
,
char
**
args
,
int
argc
);
int
arm920t_handle_read_mmu_command
(
struct
command_context_s
*
cmd_ctx
,
char
*
cmd
,
char
**
args
,
int
argc
);
...
...
@@ -68,6 +70,8 @@ target_type_t arm920t_target =
.
read_memory
=
arm920t_read_memory
,
.
write_memory
=
arm920t_write_memory
,
.
read_phys_memory
=
arm920t_read_phys_memory
,
.
write_phys_memory
=
arm920t_write_phys_memory
,
.
bulk_write_memory
=
arm7_9_bulk_write_memory
,
.
checksum_memory
=
arm7_9_checksum_memory
,
.
blank_check_memory
=
arm7_9_blank_check_memory
,
...
...
@@ -520,6 +524,28 @@ int arm920t_read_memory(struct target_s *target, uint32_t address, uint32_t size
return
retval
;
}
int
arm920t_read_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
)
{
armv4_5_common_t
*
armv4_5
=
target
->
arch_info
;
arm7_9_common_t
*
arm7_9
=
armv4_5
->
arch_info
;
arm9tdmi_common_t
*
arm9tdmi
=
arm7_9
->
arch_info
;
arm920t_common_t
*
arm920t
=
arm9tdmi
->
arch_info
;
return
armv4_5_mmu_read_physical
(
target
,
&
arm920t
->
armv4_5_mmu
,
address
,
size
,
count
,
buffer
);
}
int
arm920t_write_phys_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
)
{
armv4_5_common_t
*
armv4_5
=
target
->
arch_info
;
arm7_9_common_t
*
arm7_9
=
armv4_5
->
arch_info
;
arm9tdmi_common_t
*
arm9tdmi
=
arm7_9
->
arch_info
;
arm920t_common_t
*
arm920t
=
arm9tdmi
->
arch_info
;
return
armv4_5_mmu_write_physical
(
target
,
&
arm920t
->
armv4_5_mmu
,
address
,
size
,
count
,
buffer
);
}
int
arm920t_write_memory
(
struct
target_s
*
target
,
uint32_t
address
,
uint32_t
size
,
uint32_t
count
,
uint8_t
*
buffer
)
{
int
retval
;
...
...
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