From 55bc96d4190e40704fb5e447cef9597b08b8f088 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Tue, 23 Jul 2019 11:14:10 -0400 Subject: a few core -> CPU get rid of PDF generating support --- kernel/entry.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kernel/entry.S') diff --git a/kernel/entry.S b/kernel/entry.S index b3d2c55..97eaf11 100644 --- a/kernel/entry.S +++ b/kernel/entry.S @@ -2,7 +2,7 @@ # there seem to be provided by qemu, as if it # were a ROM. the code at 0x1000 jumps to # 0x8000000, the _start function here, - # in machine mode. + # in machine mode. each CPU starts here. .section .data .globl stack0 .section .text @@ -11,8 +11,9 @@ .globl _entry _entry: # set up a stack for C. - # stack0 is declared in start, - # with 4096 bytes per CPU. + # stack0 is declared in start.c, + # with a 4096-byte stack per CPU. + # sp = stack0 + (hartid * 4096) la sp, stack0 li a0, 1024*4 csrr a1, mhartid -- cgit v1.2.3