Comments (2)
I am using the following version: "gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0" And it works well. My guess would be that you haven't installed GCC correctly.
What happens when use __asm__ instead asm these happens to be different. stackoverflow
__asm__ volatile("lgdt (%0)" : : "p"(((uint8_t *) i)+2));
from wyoos.
Thanks for the reply. It was indeed a bunch of missing packages. I added a few more to my development environment and was able to get it working.
Here is the nix flake with the working development environment.
{
description = "Development Environment For OS tutorial";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
devShell.x86_64-linux = pkgs.pkgsi686Linux.mkShell {
buildInputs = with pkgs; [
gcc
nasm
gnumake
valgrind
inetutils
grub2
binutils
xorriso
];
shellHook = ''
${pkgs.figlet}/bin/figlet "OS Development Tutorial"
'';
};
};
}
from wyoos.
Related Issues (20)
- Desktop not showing correctly in QEMU HOT 3
- 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
- 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 1
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.