CtrlZ233

Results 5 comments of CtrlZ233

请问一下,这个fence.i指令清除指令缓存后会立即重新从内存中读入指令缓存块吗?如果是的话,那是不是应该将fence.i指令放到load_app函数末尾?

exec用新的elf数据替换当前进程的数据,这里inner中的base_size没有重新设置,虽然这个base_size在这章没有用到,但也应该设置一下吧: ```rust pub fn exec(&self, elf_data: &[u8]) { // memory_set with elf program headers/trampoline/trap context/user stack let (memory_set, user_sp, entry_point) = MemorySet::from_elf(elf_data); let trap_cx_ppn = memory_set .translate(VirtAddr::from(TRAP_CONTEXT).into()) .unwrap() .ppn(); //...

> Your QEMU emulates just one core, so the boot is stuck waiting for the other core to come up. There is no timeout in the seL4 boot process, so...

ALIGN(4K)能否解释一下为什么是4K

> @Zrzzzz > > @CtrlZ233 > > ALIGN(4K)能否解释一下为什么是4K > > 4k对齐挺常见吧 不知道我理解得对不对,4K一般是一个物理页的长度,这里的两个ALIGN(4K)是为了保证下一个section的开头能从一个新页的起始地址开始。