Giter Site home page Giter Site logo

Comments (9)

jj01101010 avatar jj01101010 commented on August 27, 2024 3

But i have to say your tutorial series is GREAT pls never leave this project

from wyoos.

sgermain06 avatar sgermain06 commented on August 27, 2024

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.

sgermain06 avatar sgermain06 commented on August 27, 2024

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.

sgermain06 avatar sgermain06 commented on August 27, 2024

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.

fluecs avatar fluecs commented on August 27, 2024

Same issue. Can't seem to fix it.

from wyoos.

M1sterPl0w avatar M1sterPl0w commented on August 27, 2024

@HayJayDee @Ilc-Ilia-Developer Is it possible to show your code? Maybe I can take a look.

from wyoos.

StjepanBM1 avatar StjepanBM1 commented on August 27, 2024

Does anyone know how to fix this issue?

from wyoos.

ssagar-linux avatar ssagar-linux commented on August 27, 2024

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.

yutojama avatar yutojama commented on August 27, 2024
  1. check out constructor of GlobalDescriptorTable(), make sure i[0] = sizeof(GlobalDescriptorTable) << 16; i[1] = (uint32_t) i[2];
  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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.