backup2007

          導(dǎo)航

          <2025年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          統(tǒng)計

          公告

          @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);


          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          bootSect.S 文件中的include小問題

          在 Linux 啟動過程中,最開始加載的程序就是 bootSect.S 文件.

          其中第一行是一個include 語句:#include <asm/boot.h>
          而當(dāng)我去查看boot.h的時候,發(fā)現(xiàn)它的真正位置在 "include/asm-i386/boot.h" 而不是 "include/ asm/boot.h"

          這讓我很不解,查網(wǎng)上資料也沒有解答, 打開makefile文件,仔細(xì)看了一下,終于找到原因:

          在makefile 中有這么一段:

          symlinks:
              rm 
          -f include/asm
              ( cd include ; ln 
          -sf asm-$(ARCH) asm)
              @if [ 
          ! -d include/linux/modules ]; then 
                  mkdir include
          /linux/modules; 
              fi

          很明顯,首先刪除了 asm文件夾,然后 在include 下面做了一個軟連接: ln -sf asm-$(ARCH)  asm

          這里的ARCH明顯是系統(tǒng)相關(guān)的環(huán)境變量了,比如在i386機器上就是代表i386了。這樣asm-i386就轉(zhuǎn)成了asm.

          posted on 2007-12-13 18:23 backup2007 閱讀(405) 評論(0)  編輯  收藏 所屬分類: Linux

          主站蜘蛛池模板: 天津市| 青川县| 安陆市| 桐城市| 兴安盟| 平南县| 建德市| 沙田区| 赤城县| 如东县| 滕州市| 五华县| 湖南省| 广汉市| 思南县| 城口县| 台北县| 英吉沙县| 酉阳| 湟中县| 新和县| 繁峙县| 峨边| 施秉县| 伊川县| 忻州市| 山阴县| 洛川县| 汕尾市| 霍山县| 台南市| 含山县| 临潭县| 溆浦县| 伊吾县| 龙江县| 靖安县| 茶陵县| 盐源县| 小金县| 营山县|