代码拉取完成,页面将自动刷新
#include <xuxiake.h>
#include <lib.h>
#include <gpio.h>
#include <asm.h>
void cpu_entry(void)
{
arch_init();
xxk_print("XXK: Hello XU Xiake\n");
setup_exception_vector();
xxk_print("XXK: After set vector\n");
#ifdef CONFIG_USERSPACE
copy_user_program();
#endif /* #ifdef CONFIG_USERSPACE */
mmu_init();
#if defined(CONFIG_MMU) && !defined(CONFIG_USERSPACE)
xxk_print("XXK: Test write addres not mappped by kernel:");
*((unsigned long*)USER_MEM_START) = 0x0;
xxk_print("...DONE\n");
#endif /* #ifdef CONFIG_MMU */
#ifdef CONFIG_USERSPACE
xxk_print("XXK: Jump to userspace\n");
jump_to_user_mode();
#endif /* #ifdef CONFIG_USERSPACE */
xxk_print("XXK: Exit!(Please Ctrl+a,x or kill the qemu process)\n");
while(1);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。