File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ unsigned int __attribute__((aligned(16))) mbox[8];
4646 */
4747int mbox_call (unsigned char ch , unsigned int * user_mbox )
4848{
49- // printf("[1]user_mbox[1]=%p\n",user_mbox[1]);
50- // printf("[1]user_mbox[28]=%p\n",user_mbox[28]);
5149 unsigned int r = (((unsigned int )((unsigned long )VA2PA (user_mbox ))& ~0xF ) | (ch & 0xF ));
5250 /* wait until we can write to the mailbox */
5351 do {asm volatile ("nop" );}while (* MBOX_STATUS & MBOX_FULL );
Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ void exec(const char *program_name, const char **argv) {
201201 // printf("identity_page=%p\n",identity_page);
202202 update_page_table (cur , identity_page , identity_page , PD_USER_RW );
203203 }
204+
204205 uint64_t virtual_addr = USER_STACK_BASE ;
205206 uint64_t physical_addr = VA2PA (cur -> user_stack_base );
206207 update_page_table (cur , virtual_addr , physical_addr , PD_USER_RW );
You can’t perform that action at this time.
0 commit comments