Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
224 views

I am trying to compile a custom operating system by following a youtube tutorial. However the video instructs using mcopy, from gnu mtools, of which I cannot seem to install using the package managers ...
The CWD's user avatar
  • 21
0 votes
1 answer
238 views

I'm trying to make a simple OS and I'm currently working on interrupts and the IDT. So I implemented the IDT and a default exception handler that currently doe's nothing. And when I run my OS in bochs ...
neta cohen's user avatar
0 votes
0 answers
342 views

I'm working on a x64 uefi bootloader to load a hobby OS. I'm running on AMD (Ryzen 7 5700G) with kvm, and when I try to fill the CR3 register with my PML4, I get a KVM internal error with 5 extra data ...
Stégosaure's user avatar
1 vote
1 answer
748 views

I am developing a custom operating system and using the GRUB bootloader to load my kernel. In my development process, I've encountered an issue where I am unable to switch the display mode from text ...
TechMC's user avatar
  • 13
0 votes
0 answers
139 views

; ---------- GDT ---------- GDT_BASE: dd 0x00000000 dd 0x00000000 CODE_DESC: dd 0x0000ffff dd DESK_CODE_HIGH4 DATA_STACK_DECK: dd 0x0000ffff dd DESK_DATA_HIGH4 VIDEO_DESC: ...
handrix Richard's user avatar
0 votes
0 answers
209 views

I am currently creating a simple kernel and I just jumped to using C with the GCC(MinGW) compiler on windows. but the way I am using C with assembly is kind of problematic here is what I am doing : :: ...
Djebbar Abderrahmene's user avatar
0 votes
0 answers
199 views

I want to make a text-os only with assembly. I created a simple bootloader, but now I don't know how to start my kernel. Can you please help me with any example (if it's possible with a practical ...
Federico Occhiochiuso's user avatar
0 votes
0 answers
213 views

I am writing a simple OS and I am now trying to display stuff on the screen rather than just text. and after a little bit of research this is what I got : The simplest way to get graphics modes ...
Djebbar Abderrahmene's user avatar
1 vote
1 answer
184 views

I am trying to switch to protected mode after playing around a little bit with real mode, but something weird occurs. In real mode I have created a simple welcome screen asking the user to enter their ...
Djebbar Abderrahmene's user avatar
0 votes
1 answer
679 views

I'm in 32bit protected mode (BAREBONES) C I'm making 32bit DOS called YourDOS, but I can't get input. here is the code for the kernel That I got from a template on repl.it: #include <stdbool.h> #...
charlee vonlinsowe's user avatar
1 vote
0 answers
90 views

I'm trying to make a kernel for an operating system I'm trying to make, however, it seems the kernel isn't being loaded since the kernel is not printing anything like it should Error I get when using ...
Pigioty's user avatar
1 vote
0 answers
118 views

I'm trying to make a simple OS, so I wrote a small kernel that consist out of a c file an assembly file that calls the main function in the c file. but when I try to compile and link the two files ...
neta cohen's user avatar
1 vote
1 answer
109 views

I wrote a simple OS / bootloader that loads 4 additional sectors from disk and then jumps to them. But the jump isn't working and the code just hangs. This is the start.S file [BITS 16] [ORG 0x7C00] ...
Junus Safsouf's user avatar
3 votes
1 answer
198 views

I have always wondered how does GRUB 2 work. While reading it's source code, I saw that there are some #include directives which include seemingly nonexistent "grub/machine/...", for example ...
NotYourFox's user avatar
1 vote
0 answers
335 views

I am trying to build a rust kernel, however i am facing severe issues with the linker, can someone please suggest any solns for this problem. Thank you! I have made a library crate (initially a binary ...
kushurox TW's user avatar
1 vote
1 answer
372 views

I'm developing a small demo that boots a x86_64 machine. During early init (real mode), I set videomode 3 via int 10h. I then write to memory-mapped text at 0xb8000. My second stage already is high-...
performancematters's user avatar
0 votes
0 answers
59 views

i followed a tutorial series on youtube on how to make an x86_64 kernel. I wanted to know how i can detect keypresses in my c kernel. For example, i want it to call a function when a key is pressed ...
Natejoestev's user avatar
0 votes
0 answers
109 views

I started creating my first OS recently (I'm a complete beginner). I wanted to know how to connect the boot file with the kernel. I tried alone but I couldn't, how can I do? This is the project: boot....
Federico Occhiochiuso's user avatar
0 votes
0 answers
90 views

I am developing a 32 bit operating system. I have just implemented paging but came across a problem. My GDT was getting overwritten. That problem was fixed in a previous question. To fix it, I had to ...
modlegend's user avatar
1 vote
1 answer
71 views

I just started creating my first operating system, I wanted to start with a very simple bootloader that basically just prints a very simple string. But I can't figure out why, whatever string, the ...
Federico Occhiochiuso's user avatar
1 vote
0 answers
110 views

I am creating a 32 bit operating system. I have enabled paging and it works fine, until the kernel_main function returns to the assembly code (which calls the kernel_main function). The assembly code ...
modlegend's user avatar
0 votes
0 answers
68 views

I am trying to build my own hobby operating system and is trying to create load and run flat binary file into the heap and then execute it in protected mode? I have tried creating a pointer and then ...
Soubhik Biswas's user avatar
0 votes
1 answer
132 views

I am developing my OS from scratch on C. I have a problem that I can't solve for 2-3 months. When I try to output a pixel, it is not output to the screen. And when I try to call 13h mode for 256 ...
m0NNESY's user avatar
  • 18
0 votes
1 answer
641 views

I'm developing a 32-bit operating system on an IA-32 system (emulator: Bochs). I'm trying to implement a graceful shutdown procedure with ACPI. On the OSDev Wiki, it says that it can either be found ...
modlegend's user avatar
1 vote
1 answer
452 views

I did this simple input function that finished when the user press the enter key: input: mov ah, 0x00 int 0x16 cmp al, 0x0d je enter_press jne enter_not_press enter_press: ret ...
Federico Occhiochiuso's user avatar
0 votes
0 answers
58 views

I just started programming in assembly, I started with a simple program with a print, input and new line function. Then I wondered how to shutdown the machine and I found this function online: ...
Federico Occhiochiuso's user avatar
0 votes
0 answers
256 views

I am not able to get this working. I got this code from here: https://wiki.osdev.org/ATA_read/write_sectors `;============================================================================= ; ATA read ...
shawnixer's user avatar
0 votes
0 answers
51 views

I'm writing a custom OS kernel for x86-64. It uses a UEFI boot loader to load the kernel to a random free location provided by the UEFI. In the kernel, it first relocates to a high address direct ...
Jack Zhao's user avatar
3 votes
1 answer
707 views

What I'm Doing & What Works I've been working on my own 32 bit toy kernel in C for a while, and lately I've been fiddling around with executing dynamically defined code, as I'd like to add a ...
mell_o_tron's user avatar
0 votes
0 answers
81 views

Here is the Interrupt handler: void irsHandler(intData data) { char* vm = (char*) 0xb8000; vm[0] = 'A'; } When user code triggers an interrupt by int instruction, the handler ...
Jacob Knuth's user avatar
1 vote
0 answers
472 views

I am switching to user mode from kernel mode in 32-bit protected mode (only segmentation not paging). When I make the switch and call an interrupt in userspace I get this error from QEMU: This may ...
Jacob Knuth's user avatar
1 vote
0 answers
132 views

I was trying to write a custom kernel for x86-64 bare bone on Apple Silicon MacBook using x86_64-elf-gcc compiler. In one of my header file (Memory.hh), I declared a constant: extern "C" ...
Jack Zhao's user avatar
2 votes
1 answer
978 views

I am working on an operating system, and the problem I am stuck on right now has to do with linking kernel modules. The Operating system has some kernel mode libc functions like malloc, printf etc. I ...
Yarm's user avatar
  • 96
1 vote
1 answer
416 views

I'm working on xhci controller driver for a proprietary OS. I'm having a problem with enumerating USB2 devices. USB3 devices get enumerated without issues. Here's what my driver does: Attach device ...
effendi's user avatar
  • 113
2 votes
1 answer
284 views

I am writing a toy operating system. I am trying to implement memory protection for an operating system. All I want to do is create protection for the kernel from user space programs. I want to do ...
Jacob Knuth's user avatar
0 votes
1 answer
628 views

I am using Rust to code in a [no_std] environment, targeting ARM's aarch64-unknown-none. When I enable -semihosting as stipulated in the qemu-system-aarch64 command options below, I never see any ...
piosystems's user avatar
1 vote
0 answers
154 views

I am currently attempting to reinvent the wheel and code an x86 OS using C and GAS assembler. The OS currently starts up, initializes the GDT and IDT as well as interrupt handlers, then attempts to ...
user avatar
2 votes
1 answer
382 views

Problem Description Hi. I want to use grub chainloader to load my minios (an os I developed myself, not linux or windows). Before using grub chainloader, minios boot process was BIOS->MBR->os ...
DanielSun's user avatar
0 votes
0 answers
112 views

i have written a super simple os and i decided to start using grub to boot it, so i started a new projected and im getting my old kernel functions to the new kernel and the ATA driver is not working ...
Rabyt's user avatar
  • 77
0 votes
0 answers
65 views

As we know, the first step in mbr is to set the segment register to 0. But there can be two methods to set the segment register, first we can use "xorw %ax, %ax" to set AX to 0, and second ...
ruoqiu's user avatar
  • 1
0 votes
0 answers
466 views

I'm currently working on an x86_64 kernel as a personal project and I'm running into a page fault error when trying to write to memory. I've checked my code and I believe I've set up my paging ...
Yassine Dakhlaoui's user avatar
1 vote
1 answer
180 views

Here is my code: interruptstubs.s: .set IRQ_BASE, 0x20 .section .text .extern _ZN16InterruptManager15handleInterruptEhj .global _ZN16InterruptManager22IgnoreInterruptRequestEv .macro ...
SamuraiBUPT's user avatar
1 vote
0 answers
266 views

I'm writing my own boot loader for i386 in NASM for education purposes. But when I'm running qemu with this it starts blinking and do anything but what I want. Here's my code: ; defs.asm %define ...
k1r1t0's user avatar
  • 867
0 votes
0 answers
116 views

I have been working on an x86 OS using GRUB-multiboot as of late and have run into a problem concerning the IDT (or more specifically ISRs). Upon starting up my OS, an ISR is generated and then no ...
user avatar
1 vote
0 answers
103 views

I'm currently writing a kernel and I have troubles understanding how to load the GDT. In particular, I tried the following code, but the kernel reboot when it hit an mov R, ax instruction with R any ...
Turambar's user avatar
3 votes
1 answer
126 views

I have been writing a x86 bootloader for some while, and have verified that my bootloader works on both bochs and qemu, along with vmware. However, I get a disk read error with an error code of 0x0880 ...
bsdsylvia's user avatar
0 votes
2 answers
243 views

I am currently doing the MIT opencourseware OS course (https://ocw.mit.edu/courses/6-828-operating-system-engineering-fall-2012/) and I am struggling with the first class assignment which is ...
a6i09per5f's user avatar
1 vote
0 answers
228 views

I am trying to work on an x86 operating system and coding it in C. My OS uses GRUB-Multiboot and thus far I have been able to get a GDT working. I am currently working on my IDT and have run into a ...
user avatar
2 votes
1 answer
710 views

i have been writting an os for the last weeks and its going fine i decided to try it on a real machine but it doesnt jump to kernel i have tried to use an hdd instead of an usb stick and it doesnt ...
Rabyt's user avatar
  • 77
0 votes
0 answers
59 views

As the title says, I'm trying to write a simple boot loader in assembly to help with my virtual machine monitor that I've tried to implement using the D programming language. Can anyone help me ...
clickerticker48's user avatar

1
3 4
5
6 7
26