Skip to content

Commit 9790ce8

Browse files
committed
arch/arm, risc-v: Fix typos in Code Comments
This PR fixes the typos in the Code Comments of chip.h, allocateheap.c and start.c. The typos were discovered here: - #15921 Signed-off-by: Lup Yuen Lee <[email protected]>
1 parent 6e64f15 commit 9790ce8

File tree

20 files changed

+36
-35
lines changed

20 files changed

+36
-35
lines changed

arch/arm/src/qemu/qemu_allocateheap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
* IDLE thread stack. Size determined by CONFIG_IDLETHREAD_STACKSIZE.
6666
* Heap. Extends to the end of User SRAM.
6767
*
68-
* The following memory map is assumed for the protect build.
69-
* The kernel and user space have it's own dedicated heap space.
68+
* The following memory map is assumed for the protected build.
69+
* The kernel and user space have their own dedicated heap spaces.
7070
*
7171
* User .data region Size determined at link time
7272
* User .bss region Size determined at link time

arch/risc-v/src/bl808/bl808_allocateheap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
* IDLE thread stack. Size determined by CONFIG_IDLETHREAD_STACKSIZE.
6666
* Heap. Extends to the end of User SRAM.
6767
*
68-
* The following memory map is assumed for the protect build.
69-
* The kernel and user space have it's own dedicated heap space.
68+
* The following memory map is assumed for the protected build.
69+
* The kernel and user space have their own dedicated heap spaces.
7070
*
7171
* User .data region Size determined at link time
7272
* User .bss region Size determined at link time

arch/risc-v/src/bl808/bl808_start.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void bl808_start_s(int mhartid)
224224

225225
showprogress('B');
226226

227-
/* Do board initialization */
227+
/* TODO: Additional initialization */
228228

229229
showprogress('C');
230230

arch/risc-v/src/bl808/chip.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
* Name: setintstack
5050
*
5151
* Description:
52-
* Set the current stack pointer to the "top" the correct interrupt stack
53-
* for the current CPU.
52+
* Set the current stack pointer to the "top" of the correct interrupt
53+
* stack for the current CPU.
5454
*
5555
****************************************************************************/
5656

arch/risc-v/src/c906/c906_allocateheap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
* IDLE thread stack. Size determined by CONFIG_IDLETHREAD_STACKSIZE.
6464
* Heap. Extends to the end of User SRAM.
6565
*
66-
* The following memory map is assumed for the protect build.
67-
* The kernel and user space have it's own dedicated heap space.
66+
* The following memory map is assumed for the protected build.
67+
* The kernel and user space have their own dedicated heap spaces.
6868
*
6969
* User .data region Size determined at link time
7070
* User .bss region Size determined at link time

arch/risc-v/src/jh7110/chip.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
* Name: setintstack
5050
*
5151
* Description:
52-
* Set the current stack pointer to the "top" the correct interrupt stack
53-
* for the current CPU.
52+
* Set the current stack pointer to the "top" of the correct interrupt
53+
* stack for the current CPU.
5454
*
5555
****************************************************************************/
5656

arch/risc-v/src/jh7110/jh7110_allocateheap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
* IDLE thread stack. Size determined by CONFIG_IDLETHREAD_STACKSIZE.
6666
* Heap. Extends to the end of User SRAM.
6767
*
68-
* The following memory map is assumed for the protect build.
69-
* The kernel and user space have it's own dedicated heap space.
68+
* The following memory map is assumed for the protected build.
69+
* The kernel and user space have their own dedicated heap spaces.
7070
*
7171
* User .data region Size determined at link time
7272
* User .bss region Size determined at link time

arch/risc-v/src/jh7110/jh7110_start.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void jh7110_start_s(int mhartid)
9999

100100
showprogress('B');
101101

102-
/* Do board initialization */
102+
/* TODO: Additional initialization */
103103

104104
showprogress('C');
105105

arch/risc-v/src/k210/chip.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
* Name: setintstack
4444
*
4545
* Description:
46-
* Set the current stack pointer to the "top" the correct interrupt stack
47-
* for the current CPU.
46+
* Set the current stack pointer to the "top" of the correct interrupt
47+
* stack for the current CPU.
4848
*
4949
****************************************************************************/
5050

arch/risc-v/src/k230/chip.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
* Name: setintstack
5252
*
5353
* Description:
54-
* Set the current stack pointer to the "top" the correct interrupt stack
55-
* for the current CPU.
54+
* Set the current stack pointer to the "top" of the correct interrupt
55+
* stack for the current CPU.
5656
*
5757
****************************************************************************/
5858

0 commit comments

Comments
 (0)