發表文章

目前顯示的是 2023的文章

Git指令彙整

在本機下載專案 git clone user@website:my/path/projectname.git git clone git@github.com:zlargon/git-test.git 在本機下載專案 git clone -b fix-header git@github.com:zlargon/git-test.git 在本機下載專案 git clone -b fix-header --single-branch git@github.com:zlargon/git-test.git 在本機下載專案 git clone -b fix-header --single-branch git@github.com:zlargon/git-test.git 分支 列出本地(local)分支 git branch 列出遠程(remote)分支 git branch -r git branch --remotes 列出本地、遠程全部分支 git branch -a git branch --all 新增分支 git branch branch_name 新增develop git branch develop 將分支develop合併於master git checkout master git merge develop --no-ff 顯示小耳朵 git log --oneline --graph 刪除本地(local)分支 git branch -d branch-name 刪除遠程(remote)分支 git push origin -d branch-name git reset --hard git clean -f git clean -df git rebase HEAD~1 --exec "git commit --amend --no-edit --date 'now'" git rebase HEAD~2 --exec "git commit --amend --no-edit ...

設定CPU的Cache模式:MTRR

圖片
  MSR(Model-Specific Register)內記錄關於CPU的特性,在MSR有段被稱為MTRR(Memory-Type Range Registers),用來記錄快取記憶體的模式。 快取模式 有5種快取模式。 編碼 簡寫 名稱 00h UC Uncacheable 01h WC Write-Combining 02h Reserved 03h Reserved 04h WT Writethrough 05h WP Write-Protect 06h WB Writeback IA32_MTRRCAP IA32_MTRRCAP的位址在MSR[FEh],定義如下: 位元 標記 描述 63 ~ 11 Reserved 10 WC Write-combining type is available 9 Reserved 8 FIX All fixed-size MTRRs are available 7 ~ 0 VCNT Count of variable-size MTRRs supported IA32_MTRRdefType IA32_MTRRdefType的位址在MSR[2FFh],定義如下: 位...