Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我尝试计算通过引导操作花费的时间;我把 get_uptime() 放在 kernel/main.c 中 switch_to_user() 函数调用之前
printf("Uptime= %d \n",get_uptime());
但是在构建和重新启动后结果显示为 0。是否有遗漏点?