TaiseiIto / hariboslinux

Haribote OSをLinux環境で開発しよう
MIT License
3 stars 0 forks source link

real modeで使用可能メモリサイズを取得しよう #12

Closed TaiseiIto closed 2 years ago

TaiseiIto commented 2 years ago

http://oswiki.osask.jp/?%28AT%29BIOS#a28a93a9 http://softwaretechnique.web.fc2.com/OS_Development/Tips/Bios_Services/low_memory_size_services.html http://softwaretechnique.web.fc2.com/OS_Development/Tips/Bios_Services/General_Services/system_services_0088.html http://softwaretechnique.web.fc2.com/OS_Development/Tips/Bios_Services/General_Services/bigmemory_services_E881.html

TaiseiIto commented 2 years ago

https://wiki.osdev.org/Memory_Map_(x86)

TaiseiIto commented 2 years ago

メモリマップにディスク上のアドレスも書いたほうがわかりやすいかも

TaiseiIto commented 2 years ago

read_sectorの引数の順番が逆になっていることに気づく

TaiseiIto commented 2 years ago

3G以上のメモリサイズは30日本の方法でやろう

TaiseiIto commented 2 years ago

それかコードセグメント0でint0x15を呼び出すか

TaiseiIto commented 2 years ago

0x0を起点とするコードセグメントを作って、そこでint0x15すればいける気はする

TaiseiIto commented 2 years ago

エラーは出ないが、66MiBしかないという結果が出た