Skip to content

Commit f694dfd

Browse files
committed
Find that user shell need excute after child mbox_call in qemu, but don't need in real machine
1 parent 349e906 commit f694dfd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lab6/kernel/src/exception.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,10 @@ void sync_handler_lowerEL_64(uint64_t sp) {
7575
} else if (iss == 5) { // exit
7676
exit();
7777
} else if (iss == 6) { // mbox_call
78-
// printf("[mbox_call]\n");
7978
thread_info *cur = get_current();
8079
unsigned int * mbox_user_va = (unsigned int *)trap_frame->x[1];
8180
unsigned int * mbox_user_pa = (unsigned int *)el0_VA2PA(cur,(uint64_t)mbox_user_va);
82-
// printf("mbox_user_va:%p\n",mbox_user_va);
83-
// printf("mbox_user_pa :%p\n",mbox_user_pa);
8481
unsigned int * mbox_kernel_va = (unsigned int *) PA2VA(mbox_user_pa);
85-
// printf("mbox_kernel_va :%p\n",mbox_kernel_va); // trap_frame->x[0] = mbox_call(trap_frame->x[0],(unsigned int *)trap_frame->x[1]);
8682
trap_frame->x[0] = mbox_call(trap_frame->x[0],mbox_kernel_va);
8783
} else if (iss == 7) { // kill
8884
kill((int)trap_frame->x[0]);

0 commit comments

Comments
 (0)