64bit-os-tutorial icon indicating copy to clipboard operation
64bit-os-tutorial copied to clipboard

Infinite loop in the last chapter

Open ThunderDZNGITH opened this issue 2 years ago • 3 comments

Hi, I know this is an old repo but who knows I might have an answer.

I would like to say that I followed this repo because it offers very good explanation unlike others. It's a pity that you don't continue it.

So my problem is that I have a problem of infinite loading in chapter 3.1, I suppose a problem of sector loading certainly in the "boot.asm" at the line "mov cx, 0x000A", when I compile, the build.sh indicates me that it is necessary to load 10 sectors however I move well cx to the 10 th sectors It is even more surprising that when I compile and launch the code provided on the github, I have the same problem.

If the author of this repo or someone has an idea of why, an answer is welcome!

Thanks in advance, Thunder.

ThunderDZNGITH avatar Dec 28 '22 05:12 ThunderDZNGITH

Hi Thunder,

I see the issue you're referring to, and have been able to reproduce it locally. I'll leave this issue open until I can figure out what went wrong and fix it. Thanks for bringing this to my attention.

gmarino2048 avatar May 02 '23 15:05 gmarino2048

Hey ! any update here ?

ThunderDZNGITH avatar Oct 09 '23 20:10 ThunderDZNGITH

Same error here, I'll try to fix it myself but would appreciate some advice on the situation!

EDIT: It's caused by the line 'asm volatile ("sti");' in isr.c. I think there's some kind of interrupt happening at some stage that we can't see.

frisby-ninja avatar Oct 27 '23 08:10 frisby-ninja