Skip to content

Commit

Permalink
fix(lab1): correct typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MisakaVan committed Nov 26, 2024
1 parent 27ddddc commit eb47784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Lab1/kernel/arch/aarch64/boot/raspi3/init/init_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
char boot_cpu_stack[PLAT_CPU_NUMBER][INIT_STACK_SIZE] ALIGN(4096);

/*
* Initialize these varibles in order to make them not in .bss section.
* Initialize these variables in order to make them not in .bss section.
* So, they will have concrete initial value even on real machine.
*
* Non-primary CPUs will spin until they see the secondary_boot_flag becomes
* non-zero which is set in kernel (see enable_smp_cores).
*
* The secondary_boot_flag is initilized as {NOT_BSS, 0, 0, ...}.
* The secondary_boot_flag is initialized as {NOT_BSS, 0, 0, ...}.
*/
#define NOT_BSS (0xBEEFUL)
long secondary_boot_flag[PLAT_CPU_NUMBER] = {NOT_BSS};
Expand Down Expand Up @@ -85,7 +85,7 @@ void init_c(void)

wakeup_other_cores();

/* Initialize Kernell Page Table. */
/* Initialize Kernel Page Table. */
uart_send_string("[BOOT] Install kernel page table\r\n");
init_kernel_pt();

Expand Down
2 changes: 1 addition & 1 deletion Lab1/kernel/arch/aarch64/boot/raspi3/init/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void init_kernel_pt(void)
| UXN /* Unprivileged execute never */
| ACCESSED /* Set access flag */
| NG /* Mark as not global */
| INNER_SHARABLE /* Sharebility */
| INNER_SHARABLE /* Shareability */
| NORMAL_MEMORY /* Normal memory */
| IS_VALID;
}
Expand Down

0 comments on commit eb47784

Please sign in to comment.