Absurdponcho / PonchoOS

The Unlicense
161 stars 46 forks source link

OS keeps rebooting on real hardware #28

Open Andrej123456789 opened 3 years ago

Andrej123456789 commented 3 years ago

Please help

https://user-images.githubusercontent.com/83548580/139536381-f5187e9c-6de6-4e17-bb05-c492790a79ac.mp4

Here is video of error Also, kernel don't initialize

Andrej123456789 commented 3 years ago

Maybe is my hardware problem. I am not sure

Andrej123456789 commented 3 years ago

I still don't fix issue

ElectroBoy404NotFound commented 2 years ago

Seems like you are having a tripple fault, it occors if even the double fault handler also throws, like if there is a page fault while printing, it will throw the page fault, which tries to print and throws a double fault which throws a triple fault which we cant handle and the CPU will just reboot

Andrej123456789 commented 2 years ago

It is RAM problem but I don't know who to fix it execpt using Limine as bootloader

ElectroBoy404NotFound commented 2 years ago

It is RAM problem but I don't know who to fix it execpt using Limine as bootloader

How did you know that it is a RAM problem?

ElectroBoy404NotFound commented 2 years ago

I think #20 fixes it

ElectroBoy404NotFound commented 2 years ago

Maby even check out #2

PokeyManatee4 commented 2 years ago

It That Your Selecting The Drive Name Not UEFI SHELL Whitch It The Right One

ElectroBoy404NotFound commented 2 years ago

It That Your Selecting The Drive Name Not UEFI SHELL Whitch It The Right One

No, that wont cause it

PokeyManatee4 commented 2 years ago

Did you Code It Right?

PokeyManatee4 commented 2 years ago

I Got An Imaage On It Before It Turned Off But Its Blurry Bc Of Zooming In Screenshot 2022-02-09 4 43 11 AM

Andrej123456789 commented 2 years ago

I get same result on real hardware and in Qemu with over of 3GB RAM

ElectroBoy404NotFound commented 2 years ago

I get same result on real hardware and in Qemu with over of 3GB RAM

Memory alocation problems ig

ElectroBoy404NotFound commented 2 years ago

Did you Code It Right?

@PokeyManatee4 @Andrej123456789 Turns out that the issue is caused with mouse init code. After some debugging in an VM, till 3 GM of ram, everything was fine, but when i got to 4GB, it started rebooting for no reason, so after commenting code, uncomenting, i found that issue at mouse init code. After commenting and uncommenting code, the probleam was at line outb(0x64, 0x20); after mouseWait(); and before mouseWaitInput();. I'm sure that outb is working, so something is going wrong when writing to port 0x64 when using more then 3GB of ram...

Andrej123456789 commented 2 years ago

@ElectroBoy404NotFound I think this problem exist before implementing mouse

PokeyManatee4 commented 2 years ago

What Im Thinking Is Because The Template Is When We Had Ram Under 3 gb And Cant Handle It

ElectroBoy404NotFound commented 2 years ago

@ElectroBoy404NotFound I think this problem exist before implementing mouse

But, when i remove the mouse.init();, it stopped crashing

ElectroBoy404NotFound commented 2 years ago

What Im Thinking Is Because The Template Is When We Had Ram Under 3 gb And Cant Handle It

Ok

PokeyManatee4 commented 2 years ago

and. cant map all of the mem

Andrej123456789 commented 2 years ago

Yes

Andrej123456789 commented 2 years ago

Maybe Limine fix this error

ElectroBoy404NotFound commented 2 years ago

and. cant map all of the mem

?

PokeyManatee4 commented 2 years ago

It Is A Issue Before Adding Mouse Im On EFI Mem Map And It Crashes On My 18gb Computer But not my 4gb laptop

On Fri, Mar 11, 2022 at 2:49 AM #Mouse got crash @.***> wrote:

and. cant map all of the mem

?

— Reply to this email directly, view it on GitHub https://github.com/Absurdponcho/PonchoOS/issues/28#issuecomment-1064900871, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNRYPMVONMUPYGER4RQMYLU7MCLFANCNFSM5HBFAHSQ . You are receiving this because you were mentioned.Message ID: @.***>

Andrej123456789 commented 2 years ago

Yes

PokeyManatee4 commented 2 years ago

Even Before EFI Mem ap It Did It

PokeyManatee4 commented 2 years ago

so its the template

ElectroBoy404NotFound commented 2 years ago

It Is A Issue Before Adding Mouse Im On EFI Mem Map And It Crashes On My 18gb Computer But not my 4gb laptop On Fri, Mar 11, 2022 at 2:49 AM #Mouse got crash @.> wrote: and. cant map all of the mem ? — Reply to this email directly, view it on GitHub <#28 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNRYPMVONMUPYGER4RQMYLU7MCLFANCNFSM5HBFAHSQ . You are receiving this because you were mentioned.Message ID: @.>

can you please explain why it is working for me after remoing mouse.init(); ?

ElectroBoy404NotFound commented 2 years ago

oh wait i get what you ment

Andrej123456789 commented 2 years ago

I was working with Limine and GDT was not working in BIOS only in UEFI so maybe GDT causes fault or something else with GDT code. Now I use GDT code from wiki osdev and works both in BIOS and UEFI boot mode

Andrej123456789 commented 2 years ago

GDT code which I use for Limine do not work for this version

PokeyManatee4 commented 2 years ago

Ok

ghost commented 1 year ago

Please help

Ringos.Error-1.1.mp4 Here is video of error Also, kernel don't initialize

It wasn't meant to be run on hardware. Also, if you're that stupid to fix it don't bother with OS development.

ghost commented 1 year ago

GDT code which I use for Limine do not work for this version

Don't use Limine it's a garbage loader and is becoming deprecated.

PokeyManatee4 commented 1 year ago

bruh its a tutorial so fuck off bruv

On Thu, Jun 1, 2023, 11:12 AM syscall7788 @.***> wrote:

GDT code which I use for Limine do not work for this version

Don't use Limine it's a garbage loader and is becoming deprecated.

— Reply to this email directly, view it on GitHub https://github.com/Absurdponcho/PonchoOS/issues/28#issuecomment-1572344001, or unsubscribe https://github.com/notifications/unsubscribe-auth/APNRYPI7FXVBJOT6W64WFMLXJC5OBANCNFSM5HBFAHSQ . You are receiving this because you were mentioned.Message ID: @.***>

Andrej123456789 commented 1 year ago

he deleted account because: a) PonchoOS is just tutorial b) Limine is very good

ElectroBoy404NotFound commented 1 year ago

c) He finally learned how to google

PokeyManatee4 commented 1 year ago

Lol

Andrej123456789 commented 1 year ago

lol