345 add sp, sp, #PT_REGS_SIZE - S_SPģ46 movs pc, lr return & move spsr_svc into cpsr // 返回用户空间前的最后一句特权级别指令 347 1 : bug "Returning to usermode but unexpected PSR bits set?", #endif /* !CONFIG_THUMB2_KERNEL */ 349. macro restore_user_regs, fast = 0, offset = 0 295 uaccess_enable r1, isb = 0. fnend ) 66 ENDPROC (ret_fast_syscall )Ģ94. cantunwind ) 51 disable_irq_notrace disable interruptsĥ2 ldr r2, 53 ldr r1, =TASK_SIZEĥ6 ldr r1, re -check for syscall tracingĥ7 movs r1, r1, lsl # 16 58 bne fast_work_pendingĥ9 60 61 /* perform architecture specific actions before user return */ 62 arch_ret_to_user r1, lr // 为空 63 64 restore_user_regs fast = 1, offset = S_OFFĦ5 UNWIND (. endmĤ7 ret_fast_syscall : 48 _ret_fast_syscall : 49 UNWIND (. Int (*const applet_main)(int argc, char **argv) = update stack argumentsģ91 ldrcc pc, call sys_ * routine // 调用了 sys_xxx 392 # else. ![]() Xfunc_error_retval = applet_main (argc, argv ) // 调用 halt_main Main // libbb/appletlib.c int main(int argc UNUSED_PARAM, char **argv) run_applet_and_exit (applet_name, argv ) int applet = find_applet_by_name (name ) run_applet_no_and_exit (applet, name, argv ) Lrwxrwxrwx 1 root root 14 /sbin /reboot ->. Take the path that goes to the right, and you'll soon come to a dead end. ![]() 回车按键后,bash 对 reboot 字符串的处理,并fork子进程,填充reboot命令到子进程,并执行 # which reboot /sbin /reboot Once you get to the 'Zero level' for the Fairground memory level, where you have to follow the moving lines in otherwise pitch black darkness, follow them until you get to a T intersection. # ls -l /bin/bash -rwxr -xr -x 1 root root 640080 /bin /bashĢ. 59 : /home /suws /ok6410 /system -new /buildroot /output /images /rootfs console =tty0 console =ttySAC0, 115200 init = /linuxrc ip = 10.10. 1./bin/bash shell下键入 reboot,console对字符的处理 # cat /proc/cmdline
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |