Update Booting/linux-bootstrap-2.md

This commit is contained in:
hailin cai
2016-02-24 12:02:07 -05:00
parent 7b3dd4f2f4
commit e00393d9c1

View File

@@ -208,7 +208,7 @@ GLOBAL(memcpy)
ENDPROC(memcpy)
```
`copy.S`文件中,你可以看到所有的方法都开始于`GLOBAL`宏定义,而结束于`ENDPROC`宏定义。
`copy.S`文件中,你可以看到所有的方法都开始于 `GLOBAL` 宏定义,而结束于 `ENDPROC` 宏定义。
你可以在 [arch/x86/include/asm/linkage.h](https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/linkage.h)中找到`GLOBAL`宏定义。这个宏给代码段分配了一个名字标签,并且让这个名字全局可用。