Linux 启动部分的代码使用什么语言写的?



 //代码路径: boot/bootsec.s
......

.global begtext.begdata.begbss.endtext.enddata.endbss
.text
begtext:
.data
begdata:
.bss
begbss:
.text
SETUPLEN=4! nr of setup-sectors
BOOTSEG=0x07c0! original address of boot-sector
INISEG=0x9000! we move boot here-out of the way

看着像汇编,但好像又不是汇编...
如果是汇编,请问是哪种汇编?

Linux asm linux内核模块 linux-kernel

cinder 8 years, 8 months ago

就是汇编了
有兴趣可以看下《深入理解LINUX内核》
http://item.jd.com/10100237.html

这里有位哥们对此源码进行了详细注释
https://code.csdn.net/Kestrel-Kernel/kestrel/tree/1015552b896e058fff782c69de7238fe6c91a80d/Reference/linux0.1.1_reference/boot/bootsect.s

HappyX answered 8 years, 8 months ago

Your Answer