内核代码中的汇编小问题。。

.code16
.globl begtext, begdata, begbss, endtext, enddata, endbss

.text
begtext:
.data
begdata:
.bss
begbss:
.text

start:
        jmp        trampoline

# This is the setup header, and it must start at %cs:2 (old 0x9020:2)

                .ascii        "HdrS"                # header signature
                .word        0x0203                # header version number (>= 0x0105)
                                        # or else old loadlin-1.5 will fail)
realmode_swtch:        .word        0, 0                # default_switch, SETUPSEG
start_sys_seg:        .word        SYSSEG
                .word        kernel_version        # pointing to kernel version string


上面这段是setup.s中的一些代码段 以前学过一点汇编的东西 数据的搬移那些还是能看懂的 但是不太明白为什么很多行的开头都有".",比如.code16  .global  在下面还有什么  .word   .text  不明白这个是变量的定义还是什么东西   而且变量一般都是以字母开头的把。。

作者: space006   发布时间: 2011-01-13

http://linux.chinaunix.net/bbs/thread-976739-1-1.html

作者: amarant   发布时间: 2011-01-13