一区二区三区三上|欧美在线视频五区|国产午夜无码在线观看视频|亚洲国产裸体网站|无码成年人影视|亚洲AV亚洲AV|成人开心激情五月|欧美性爱内射视频|超碰人人干人人上|一区二区无码三区亚洲人区久久精品

您好,歡迎來電子發(fā)燒友網(wǎng)! ,新用戶?[免費(fèi)注冊]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>Linux/uClinux/Unix編程>

Linux 內(nèi)核源代碼

大?。?/span>415 人氣: 2010-02-10 需要積分:0
laisvl的空間

用戶級別:注冊會員

貢獻(xiàn)文章:

貢獻(xiàn)資料:

Linux 內(nèi)核源代碼

實模式setup階段
setup用于體系結(jié)構(gòu)相關(guān)的硬件初始化工作,在arch目錄中的各個系統(tǒng)結(jié)構(gòu)的平臺相關(guān)都有類似功能的代碼。在32位的x86平臺中,setup的入口點是arch/x86/boot/header.S中的_start。
代碼片段 4.1. 節(jié)自arch/x86/boot/header.S
1 .code16 2 section ".bstext", "ax" 3 4 .global bootsect_start 5 bootsect_start: 6 7 # Normalize the start address 8 ljmp $BOOTSEG, $start2 9 10 start2: 11 movw %cs, %ax 12 movw %ax, %ds 13 movw %ax, %es 14 movw %ax, %ss 15 xorw %sp, %sp 16 sti 17 cld 18 19 movw $bugger_off_msg, %si 20 21 msg_loop: 22 lodsb 23 andb %al, %al 24 jz bs_die 25 movb $0xe, %ah 26 movw $7, %bx 27 int $0x10 28 jmp msg_loop 29 ....... 30 .section ".bsdata", "a" 31 bugger_off_msg: 32 .ascii "Direct booting from floppy is no longer supported\r\n" 33 .ascii "Please use a boot loader program instead.\r\n" 34 .ascii "\n" 35 .ascii "Remove disk and press any key to reboot . . .\r\n"

非常好我支持^.^

(0) 0%

不好我反對

(0) 0%

      發(fā)表評論

      用戶評論
      評價:好評中評差評

      發(fā)表評論,獲取積分! 請遵守相關(guān)規(guī)定!

      ?