ARM な kernel の bootstrap 関連
そろそろ LEC5 に着手しないと、と思いつつブレーキがかからん。とりあえず _Look at real operating systems to see how they size memory._なナニ含め、もう少しごにょごにょしてみます。
ええと確認しておきたいのは
とは言え、stext な手続きの定義直前のコメントには
* This is normally called from the decompressor code. The requirements * are: MMU = off, D-cache = off, I-cache = dont care, r0 = 0, * r1 = machine nr, r2 = atags or dtb pointer.
とあるので、r2 には値が設定された状態で startup するのだろうなと。
とりあえず、dtb だの device tree だのでググッて以下なコンテンツを発見。
なんか http://devicetree.org/ とかな URL がナニ。あるいは https://wiki.ubuntu.com/KernelTeam/ARMDeviceTrees とか。ちょっと確認してみます。
以下、メモがあれば追記予定ですが、どうなるか。