Comments (9)
But i have to say your tutorial series is GREAT pls never leave this project
from wyoos.
Hey, I have the same problem. If I comment out the sti call, it doesn't crash, but if I don't, as soon as it calls it, VirtualBox crashes. Were you ever able to fix this? Anyone can help?
from wyoos.
Ah! I found out what was happening. In my gdt constructor, I had inverted the indexes of the array I sent to the lgdt
command. After I switched those around, it stopped crashing. Now, I have another problem though. When I call sti
, not only I don't receive any interrupt calls to my HandleInterrupt
function, but after like 5-10 seconds, my screens clear and fills with some weird characters. I'm trying to compare my code with the code in this git repository and, so far, I seem to be matching. I'm sure I'm missing something stupid...
from wyoos.
Yeah, I found what I did. In the interrupts.cpp, I set the handlerAddressLowBits twice instead of setting the handlerAddressLowBits and handlerAddressHighBits. Everything is working fine now.
from wyoos.
Same issue. Can't seem to fix it.
from wyoos.
@HayJayDee @Ilc-Ilia-Developer Is it possible to show your code? Maybe I can take a look.
from wyoos.
Does anyone know how to fix this issue?
from wyoos.
I resolved following issue via:-
-GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(uint32_t limit, uint32_t base , uint8_t type)
+GlobalDescriptorTable::SegmentDescriptor::SegmentDescriptor(uint32_t base, uint32_t limit, uint8_t type)
mistakenly using base & limit interchangeably
from wyoos.
- check out constructor of GlobalDescriptorTable(), make sure i[0] = sizeof(GlobalDescriptorTable) << 16; i[1] = (uint32_t) i[2];
- check all structs with attribute((packed)), make sure everything is placed just in the order as tutorial and nothing is randomly swapped. For me, I changed sequence of size and base in InterruptDescriptorTablePointer and that led to error.
from wyoos.
Related Issues (20)
- Desktop flashing in VirtualBox HOT 1
- Graphics mode is not working on qemu. HOT 4
- How do I compile the source code? HOT 2
- Why don't you use the makefile ... HOT 1
- undefined reference to `GlobalDescriptorTable::GlobalDescriptorTable()' HOT 1
- error: cast from ‘GlobalDescriptorTable*’ to ‘uint32_t’
- Error from makefile: "cannto find start_ctors" how can i fix it? HOT 1
- Error from windows 11 virtualbox
- Invalid 'asm': invalid expression as operand HOT 2
- Can I install on it python3? HOT 1
- How Can I remove the GUI? HOT 1
- AMD am79c973 HOT 3
- ld: i386:x86-64 architecture of input file `kernel.o' is incompatible with i386 output HOT 1
- Excuse me
- Linker Issue HOT 2
- Write your own Operating System 5: Interrupts HOT 1
- memorymanagement.cpp bug
- Info concerning ata driver
- Slow VGA Fill? HOT 3
- Chapter 5, error. "undefined reference to `InterruptManager:...` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wyoos.