Program in user mode freezing

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
lordravenlee
Posts: 2
Joined: Mon Mar 30, 2026 10:04 am
GitHub: https://github.com/ravenleeblack/Elle_OS

Program in user mode freezing

Post by lordravenlee »

I was wondering what are possible reasons or causes to make a program freeze after executing or running the program? The mouse in my os worked beforehand. I can use the terminal, which is how I run the program, in the first place. Then after I execute the program, the terminal is forced closed and the program window shows up, but the os and mouse freezes. I have been beating my brain over this for days.
sebihepp
Member
Member
Posts: 256
Joined: Tue Aug 26, 2008 11:24 am
GitHub: https://github.com/sebihepp

Re: Program in user mode freezing

Post by sebihepp »

That could be anything. Let me guess quickly: Did you enable interrupts after returning from kernelspace to your user program?
lordravenlee
Posts: 2
Joined: Mon Mar 30, 2026 10:04 am
GitHub: https://github.com/ravenleeblack/Elle_OS

Re: Program in user mode freezing

Post by lordravenlee »

Thank you for your reply. I am pretty sure I did. I provided related files. programs are task/process, event here is thread, action are old events. Its baffling me.
Attachments
event_state.asm
(10.53 KiB) Downloaded 36 times
program.c
(32.8 KiB) Downloaded 34 times
event_manager.c
(16.28 KiB) Downloaded 36 times
Octocontrabass
Member
Member
Posts: 6249
Joined: Mon Mar 25, 2013 7:01 pm

Re: Program in user mode freezing

Post by Octocontrabass »

What does your debugger say the CPU is doing when your OS freezes?
Post Reply