Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第三章c03/4 loader.asm 解决显示问题 #2

Open
cjd9023 opened this issue Aug 19, 2018 · 2 comments
Open

第三章c03/4 loader.asm 解决显示问题 #2

cjd9023 opened this issue Aug 19, 2018 · 2 comments

Comments

@cjd9023
Copy link

cjd9023 commented Aug 19, 2018

在 471行加入
jum $
,可解决没显示字符的问题
image

loader.asm.txt

@lyciumlee
Copy link

如果在471行加入jump $后面cpu进入不了实模式
00015149860i[BXVGA ] VBE set bpp (32)
00015149882i[BXVGA ] VBE set xres (1440)
00015149921i[BXVGA ] VBE set yres (900)
00015149959i[BXVGA ] VBE enabling x 1440, y 900, bpp 32, 5184000 bytes visible
看不见字符串的原因是这段字符串显示过后会重新设置显示器,由于CPU运行过快所以就刷掉了。
(0) [0x000000010444] 0008:0000000000010444 (unk. ctxt): jmpf 0x0008:00100000 ; ea000010000800
bochs:902
Next at t=15151035
(0) [0x000000100000] 0008:0000000000100000 (unk. ctxt): (invalid) ; 61
bochs:903
00015151035e[CPU0 ] interrupt(long mode): IDT entry extended attributes DWORD4 TYPE != 0
00015151035e[CPU0 ] interrupt(long mode): IDT entry extended attributes DWORD4 TYPE != 0
00015151035e[CPU0 ] interrupt(long mode): IDT entry extended attributes DWORD4 TYPE != 0
00015151035i[CPU0 ] CPU is in long mode (active)
由于还没有编写异常处理模块,所以CPU进入 0x0008:00100000会异常,但是CPU成功开启了保护模式

@kinwe
Copy link

kinwe commented May 15, 2024

请问一下,你们的开发环境是什么样的,我用ubuntu系统,运行的时候报找不到KERNEL BIN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants