From 8083cea337696370b1894dcde013c923cd2e39e1 Mon Sep 17 00:00:00 2001 From: liguo <2925441676@qq.com> Date: Wed, 28 Feb 2024 11:08:07 +0800 Subject: [PATCH] update output --- chapter3_traps.md | 12 ++++++------ chapter4_memory.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/chapter3_traps.md b/chapter3_traps.md index 65d70d1..ef09b48 100644 --- a/chapter3_traps.md +++ b/chapter3_traps.md @@ -1952,18 +1952,18 @@ HTIF is available! (Emulated) memory size: 2048 MB In m_start, hartid:0 hartid = 0: Enter supervisor mode... -hartid = 0: Application: ./obj/app0 +hartid = 0: Application: obj/app0 hartid = 0: Application program entry point (virtual address): 0x0000000081000000 +hartid = 0: Switch to user mode... In m_start, hartid:1 hartid = 1: Enter supervisor mode... -hartid = 1: Application: ./obj/app1 +hartid = 1: Application: obj/app1 hartid = 1: Application program entry point (virtual address): 0x0000000085000000 hartid = 1: Switch to user mode... -hartid = 0: Switch to user mode... -hardid = 1: >>> app1 is executed by hart1 -hardid = 0: >>> app0 is executed by hart0 -hartid = 1: User exit with code:0. +hardid = 0: >>> app0 is expected to be executed by hart0 +hardid = 1: >>> app1 is expected to be executed by hart1 hartid = 0: User exit with code:0. +hartid = 1: User exit with code:0. hartid = 0: shutdown with code:0. System is shutting down with exit code 0. ``` diff --git a/chapter4_memory.md b/chapter4_memory.md index 5a62aeb..3045555 100644 --- a/chapter4_memory.md +++ b/chapter4_memory.md @@ -1156,8 +1156,8 @@ hartid = 0: user frame 0x0000000087fbc000, user stack 0x000000007ffff000, user k hartid = 0: Application: obj/app_alloc0 hartid = 1: user frame 0x0000000087fb8000, user stack 0x000000007ffff000, user kstack 0x0000000087fb7000 hartid = 1: Application: obj/app_alloc1 -hartid = 0: Application program entry point (virtual address): 0x00000000000100b0 -hartid = 1: Application program entry point (virtual address): 0x00000000000100b0 +hartid = 0: Application program entry point (virtual address): 0x0000000000010078 +hartid = 1: Application program entry point (virtual address): 0x0000000000010078 hartid = 0: Switch to user mode... hartid = 0: alloc page 0x87fa4000 hartid = 0: alloc page 0x87fa3000