Skip to main content
Filter by
Sorted by
Tagged with
15 votes
2 answers
21k views

I am writing a small OS that will execute some code in user mode (privilege level 3). From that user level code, I want to call an interrupt back to the OS that prints a message. Right now I don't ...
Alex Nichol's user avatar
  • 7,520
6 votes
1 answer
818 views

I'm working on a small OS that will use a separate Local Descriptor Table for each process. I understand that I will need to use the lldt instruction to load a LDT segment from my GDT. I already ...
Alex Nichol's user avatar
  • 7,520
3 votes
4 answers
762 views

I understand that the Cosmos and SharpOS have made their own compilers to build binary code from C#, but could you use Microsoft's .NET AOT to do the same thing? Compiling C# to x86, that is. I assume ...
apophis's user avatar
  • 269
2 votes
1 answer
584 views

This in reference to InteI's Software Developer’s Manual (Order Number: 325384-039US May 2011), the section 4.10.4.4 "Delayed Invalidation" describes a potential delay in invalidation of TLB entries ...
Nitin Kunal's user avatar
3 votes
2 answers
604 views

I'm writing a small OS that runs under protected mode. I am coming to a point where I want to load a custom interrupt descriptor table, and I don't know where to start. I have read some stuff on the ...
Alex Nichol's user avatar
  • 7,520
5 votes
1 answer
4k views

I don't know how to compile my C kernel for 16 bit real mode. I have tried a variety of compilers with no luck. My bootloader simply loads raw sectors from the floppy (my kernel lives right after the ...
TheFuzz's user avatar
  • 2,629
3 votes
2 answers
2k views

I am trying to develop a C function for getting some motherboard info (name, id, etc.) but I can't find where these info are stored. I had a look at CPUID but I could't find anything related to the ...
limp's user avatar
  • 939
0 votes
1 answer
370 views

In the case of osx, gcc, modern x86: How is the x86 segmentation h/w and paging h/w used?
grok12's user avatar
  • 3,736
2 votes
2 answers
365 views

Recently I've picked up one of my old projects and restarted it, pretty much from scratch. I've been sick for awhile, so I've had time to crack down hard and implement tons of functionality. However ...
graphitemaster's user avatar
7 votes
5 answers
9k views

I've been interested in programming an operating system for some time. Delving through a few different sites, I've come across an interesting concept (to paraphrase): if you start writing your ...
Matticus's user avatar
  • 155
0 votes
1 answer
995 views

I'm trying to set up a working environment for assembling a bootloader and compiling and linking a simple kernel according to this page: enter link description here So far everything went well, ...
Janx's user avatar
  • 3
7 votes
1 answer
4k views

When initializing my kernel, I have a few things that need to happen: 1) paging needs to be enabled, 2) the physical memory manager needs to parse the memory map from grub, and 3) assorted startup ...
rpjohnst's user avatar
  • 1,642
13 votes
3 answers
35k views

I'm trying to call a function from within ASM. I know how to call it, but i'm having trouble finding how to get the return value of this function. An example follows: C code: int dummy() { ...
Juan Pablo's user avatar
3 votes
1 answer
3k views

I have already looked for NUMA documentations for X86-64 processors, unfortunately I only found optimization documents for NUMA. What I want is: how do I initialize NUMA in a system (this would ...
prinzrainer's user avatar
4 votes
1 answer
2k views

I know this project.The question is that "Can we create a real OS with Managed Code or the os that will create with this project is a hello world os?" Operating Systems need to have full ...
Saleh's user avatar
  • 3,040
2 votes
1 answer
3k views

I have developed an own OS entirely in Assembly, now I want to implement a mouse driver because I see that the INT 33h in Windows with EMU8086 works but when I boot from floppy it doesn't work. I have ...
Claudio's user avatar
  • 21
8 votes
3 answers
9k views

Can anybody point me to a simple (can't stress this enough) implementation of an in memory file system? If I can create a file and do a simple cat file.txt it's more than enough. I would like to use ...
user avatar
2 votes
2 answers
2k views

I'm developing a simple little toy OS in C and assembly as an experiment, but I'm starting to worry myself with my lack of knowledge on system memory. I've been able to compile the kernel, run it in ...
rovaughn's user avatar
  • 1,223
3 votes
1 answer
1k views

Basically I've followed the instructions here http://sig9.com/bochs-grub to create a bare image file which does nothing but lets the BIOS start GRUB. The problems are: The kernel I am writing will be ...
Flavius's user avatar
  • 13.8k
3 votes
2 answers
9k views

I am working in Linux and i have a little bit confusion that whether i can access the PCB of process or not? if yes then what content of it we can access it and print them on to the terminal and if ...
user1032283's user avatar
4 votes
2 answers
3k views

How do I perform an indirect far jump/call in protected mode? First I was thinking that doing this is allowable: jmp 0x10:eax; (Don't worry about the segment selector..the 2nd entry of my GDT is a ...
prinzrainer's user avatar
1 vote
2 answers
3k views

Question 1 :- During the booting process, Linux creates the page tables. However, when a new process is executed, it also has its own page table. How are these two tables different? Question 2 :- On ...
Ashish's user avatar
  • 569
2 votes
1 answer
3k views

Will a memory mapped i/o operation (in intel processor) still be cached if the address range of the mapped i/o is being typed as write back (WB) even if I use the in/out instruction? EDIT: This ...
prinzrainer's user avatar
0 votes
1 answer
582 views

Grub is a multiboot compliant boot loader. When it boots an operating system it creates a structure defining the available memory and leaves a pointer to that structure in memory. I got that ...
Philluminati's user avatar
  • 2,819
4 votes
2 answers
1k views

I am making a custom Operating System. I have two nasm files: boot.asm: [BITS 16] ;tell the assembler that its a 16 bit code [ORG 0x7C00] ;Origin, tell the assembler that where the code will ;...
None's user avatar
  • 3,973
19 votes
9 answers
9k views

What's the best operating system to study in order to write your own x86 operating system from scratch?
mudgen's user avatar
  • 7,383
4 votes
3 answers
1k views

I don't want to write my own boot loader -- happy to use Grub. I just want to implement pre-emptive multi threading, a basic file system, and virtual memory. I want something that can run on top of ...
anon's user avatar
  • 43.1k
0 votes
1 answer
2k views

I'm learning MIPS Assembly by the book MIPS Assembly Language Programming, but my I've just started learning MIPS because I want to build a MIPS OS, but now as I can see, there isn't any documentation ...
Nathan Campos's user avatar
0 votes
3 answers
2k views

I'm using BIOS int 0x15 on my Bochs emulator, however this always returns the same memory size (34440) no matter what I have configured: mov ax, 0x88 int 0x15 I know that there are better methods of ...
Justin's user avatar
  • 87.3k
1 vote
3 answers
3k views

I was reading about Singularity and it was developed in part with C#, but how can I develop a operatin system in part with C#?(because the boot loader needs to be in Assembly, that I know) the thing ...
Nathan Campos's user avatar
11 votes
5 answers
8k views

I've been stuck with this for weeks now and have no idea where I'm going wrong because NASM hasn't given me any errors. The code is pretty self explanatory because of the comments. this is the code ...
user avatar
1 vote
1 answer
173 views

I'm not planning on doing this right now, as I don't have the experience in this area to even attempt it at the moment, but I'm curious about something. If implementing an operating system from ...
Max Schmeling's user avatar
116 votes
20 answers
52k views

This might be in vain, as I know writing an operating system is unbearably complicated (especially by oneself). I don't expect to build the next linux, or windows. I know it will be horrible, and ...
Carson Myers's user avatar
  • 38.7k
19 votes
17 answers
5k views

I like operating systems and would eventually like to become a OS developer mostly working on kernels. In the future will C still be the language of choice and what else should I be trying to learn?
Recursion's user avatar
  • 3,131
7 votes
1 answer
4k views

I'd like to build an embedded kernel for an x86 machine using Visual C++. I have some C and assembly code files to compile and I'd like to link them all together in a way that is compatible with a ...
Frank Miller's user avatar
9 votes
11 answers
12k views

In my Operating Systems class we are looking to modify a Linux kernel with some simple system calls of our own in C. What would be a good distro suited for this purpose? We don't need any frills, no ...
mmcdole's user avatar
  • 93.2k
7 votes
6 answers
6k views

I have loaded an idt table with 256 entries, all pointing to similar handlers: for exceptions 8 and 10-14, push the exception number (these exceptions push an error code automatically) for the others, ...
Joao da Silva's user avatar
7 votes
3 answers
2k views

I'm using a barebones tutorial as the basis for an OS I'm working on, and it seems to be an older tutorial: it has be compiling the kernel down to a floppy image, and then loading it with GRUB. ...
Blank's user avatar
  • 7,248
9 votes
3 answers
4k views

I'm doing some work on the input buffers for my kernel, and I had some questions. On Dual Core machines, I know that more than one "process" can be running simultaneously. What I don't know is how the ...
Blank's user avatar
  • 7,248
49 votes
25 answers
24k views

Creating an OS seems like a massive project. How would anyone even get started? For example, when I pop Ubuntu into my drive, how can my computer just run it? (This, I guess, is what I'd really ...
stalepretzel's user avatar
19 votes
6 answers
7k views

It seems to me that the most common overly ambitious project that programmers (esp. Comp. Sci. grads) try to tackle is building your own operating system. (Trying to create your own programming ...
Dinah's user avatar
  • 54.3k
10 votes
2 answers
5k views

I'm following several tutorials and references trying to get my kernel set up. I've come across some unfamiliar code in a tutorial that isn't explaining it at all. It's code that I'm told maps the 16 ...
Blank's user avatar
  • 7,248
6 votes
2 answers
3k views

I'm working on kernel design, and I've got some questions concerning paging. The basic idea that I have so far is this: Each program gets its own (or so it thinks) 4G of memory, minus a section ...
Blank's user avatar
  • 7,248
66 votes
15 answers
32k views

I'm planning to write an operating system and I don't know very much about operating systems. Are there any good resources or books to read in order for me to learn? What are your recommendations?
Agusti-N's user avatar
  • 3,973
16 votes
3 answers
9k views

I'm working on keyboard input for a very basic kernel that I'm developing and I'm completely stuck. I can't seem to find any information online that can show me the information I need to know. My ...
Blank's user avatar
  • 7,248
12 votes
2 answers
2k views

I am developing a kernel for an operating system. In order to execute it, I've decided to use GRUB. Currently, I have a script attached to GRUB's stage1, stage2, a pad file and the kernel itself ...
Cristián Romo's user avatar
10 votes
5 answers
9k views

I'm developing an operating system and rather than programming the kernel, I'm designing the kernel. This operating system is targeted at the x86 architecture and my target is for modern computers. ...
Blank's user avatar
  • 7,248
9 votes
7 answers
6k views

I'm working on designing the kernel (which I'm going to actually call the "core" just to be different, but its basically the same) for an OS I'm working on. The specifics of the OS itself are ...
Blank's user avatar
  • 7,248
35 votes
13 answers
10k views

I am planning to develop an operating system for the x86 architecture. What options of programming languages do I have? What types of compilers are there available, preferably on a Windows environment?...
Jeff's user avatar
  • 351
610 votes
28 answers
129k views

One thing I've always wanted to do is develop my very own operating system (not necessarily fancy like Linux or Windows, but better than a simple boot loader which I've already done). I'm having a ...