Skip to content

Commit d790321

Browse files
committed
Fix comments
Signed-off-by: Lup Yuen Lee <luppy@appkaki.com>
1 parent 2657aaf commit d790321

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ extern int g_eic7700x_boot_hart;
5959
* Name: setintstack
6060
*
6161
* Description:
62-
* Set the current stack pointer to the "top" the correct interrupt stack
63-
* for the current CPU.
62+
* Set the current stack pointer to the "top" of the correct interrupt
63+
* stack for the current CPU.
6464
*
6565
****************************************************************************/
6666

arch/risc-v/src/eic7700x/eic7700x_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/eic7700x/eic7700x_start.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -300,30 +300,28 @@ void eic7700x_start_s(int mhartid)
300300
goto cpux;
301301
}
302302

303-
/* Boot Hart starts here */
303+
/* Boot Hart starts here. Init the UART Driver. */
304304

305305
showprogress('A');
306306

307307
#ifdef USE_EARLYSERIALINIT
308308
riscv_earlyserialinit();
309309
#endif
310310

311-
showprogress('B');
312-
313-
/* Do board initialization */
314-
315-
showprogress('C');
316-
317311
/* Setup page tables for kernel and enable MMU */
318312

313+
showprogress('B');
319314
eic7700x_mm_init();
320315

321-
/* Call nx_start() */
316+
/* Start NuttX */
322317

318+
showprogress('C');
323319
nx_start();
324320

325321
cpux:
326322

323+
/* Non-Boot Hart starts here. Init the CPU for the Hart. */
324+
327325
#ifdef CONFIG_SMP
328326
riscv_cpu_boot(mhartid);
329327
#endif

0 commit comments

Comments
 (0)