Skip to content

Commit

Permalink
fix: omment in entry.S
Browse files Browse the repository at this point in the history
This is a  manual change based on PR mit-pdos#252
  • Loading branch information
echtwerner committed Oct 7, 2024
1 parent 11973d6 commit 2f6964d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _entry:
# set up a stack for C.
# stack0 is declared in start.c,
# with a CPUSTACKSIZE-kilobytes stack per CPU as definied in param.h.
# sp = stack0 + (hartid * CPUSTACKSIZE)
# sp = stack0 + ((hartid + 1) * CPUSTACKSIZE)
la sp, stack0
li a0, 1024 * CPUSTACKSIZE
csrr a1, mhartid
Expand Down

0 comments on commit 2f6964d

Please sign in to comment.