Skip to content

Commit 1ef411c

Browse files
author
mean
committed
fixup : fix comment style
1 parent aa210a0 commit 1ef411c

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/target/riscv32.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -671,34 +671,34 @@ static int riscv32_breakwatch_clear(target_s *const target, breakwatch_s *const
671671
}
672672

673673
/*
674-
Small helper function to translate target to hart and simplify parameters
675-
We assume it is 32 bits
676-
*/
674+
* Small helper function to translate target to hart and simplify parameters
675+
* We assume it is 32 bits
676+
*/
677677
static inline bool riscv32_target_csr_write(target_s *target, const uint16_t reg, uint32_t val)
678678
{
679679
riscv_hart_s *const hart = riscv_hart_struct(target);
680680
return riscv_csr_write(hart, reg, &val);
681681
}
682682

683683
/*
684-
Small helper function to translate target to hart and simplify parameters
685-
We assume it is 32 bits
686-
*/
684+
* Small helper function to translate target to hart and simplify parameters
685+
* We assume it is 32 bits
686+
*/
687687
static inline bool riscv32_target_csr_read(target_s *target, const uint16_t reg, uint32_t *val)
688688
{
689689
riscv_hart_s *const hart = riscv_hart_struct(target);
690690
return riscv_csr_read(hart, reg, val);
691691
}
692692

693693
/*
694-
Execute code on the target with the signature void function(a,b,c,d)
695-
- codexec is the address the code to tun is located at
696-
- param1/2/3/4 will end up as the 4 parameters of the stub function
697-
698-
The flashstub must not use the stack at all.
699-
It returns true on success, false on error
700-
There is a built-in timeout of 10 seconds
701-
*/
694+
* Execute code on the target with the signature void function(a,b,c,d)
695+
* - codexec is the address the code to tun is located at
696+
* - param1/2/3/4 will end up as the 4 parameters of the stub function
697+
*
698+
* The flashstub must not use the stack at all.
699+
* It returns true on success, false on error
700+
* There is a built-in timeout of 10 seconds
701+
*/
702702
bool riscv32_run_stub(
703703
target_s *target, uint32_t loadaddr, uint32_t param1, uint32_t param2, uint32_t param3, uint32_t param4)
704704
{

src/target/riscv_debug.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,14 @@ void riscv32_mem_read(target_s *target, void *dest, target_addr_t src, size_t le
250250
void riscv32_mem_write(target_s *target, target_addr_t dest, const void *src, size_t len);
251251

252252
/*
253-
Execute code on the target with the signature void stub_function(a,b,c,d)
254-
- codexec is the address the code to run is located at
255-
- param1/2/3/4 will end up as the 4 parameters of the stub function
256-
257-
The flashstub must not use the stack at all.
258-
The flashstub must return 0 on success, not 0 on error
259-
There is a built-in timeout of 10 seconds
260-
*/
253+
* Execute code on the target with the signature void stub_function(a,b,c,d)
254+
* - codexec is the address the code to run is located at
255+
* - param1/2/3/4 will end up as the 4 parameters of the stub function
256+
*
257+
* The flashstub must not use the stack at all.
258+
* The flashstub must return 0 on success, not 0 on error
259+
* There is a built-in timeout of 10 seconds
260+
*/
261261
bool riscv32_run_stub(target_s *target, uint32_t loadaddr, uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3);
262262

263263
#endif /*TARGET_RISCV_DEBUG_H*/

0 commit comments

Comments
 (0)