flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Sequence in designing OS kernel? |
Author |
|
macomics 16 Jan 2022, 15:22
It seems to me that after that you will need more access to the disk and after that you can create an automated development environment under the control of your kernel already. This is necessary to speed up development in order to get rid of the need for constant rebooting / reloading with each build of your kernel. For development, you will need 3 utilities. A text editor (possibly with an external invocation system), a compiler and a kernel-mode debugger.
FlierMate wrote: These are the basics: Have you already implemented all of the above? |
|||
16 Jan 2022, 15:22 |
|
FlierMate 16 Jan 2022, 15:30
macomics wrote:
Yes, I even went two further steps, to support PS/2 keyboard and enumerate all PCI devices. macomics wrote: It seems to me that after that you will need more access to the disk and after that you can create an automated development environment under the control of your kernel already. This is necessary to speed up development in order to get rid of the need for constant rebooting / reloading with each build of your kernel. For development, you will need 3 utilities. A text editor (possibly with an external invocation system), a compiler and a kernel-mode debugger. This is really a good thing to know! It is new to me, and I like this idea very much. However, I am still in early beginning, I do not know what are: 1. KHeap 2. Heap 3. Paging 4....... As I do not have solid foundation in OS theory and CPU architecture, or anything related to allocation of RAM and CPU resources, because I learn by doing. Thanks, macomics, for your guidance in the past. |
|||
16 Jan 2022, 15:30 |
|
macomics 16 Jan 2022, 15:42
FlierMate wrote: However, I am still in early beginning, I do not know what are: |
|||
16 Jan 2022, 15:42 |
|
FlierMate 16 Jan 2022, 15:47
macomics wrote:
At least I have a direction or keyword ("kernel-mode debugger") to search. But what about ISR, it is related to IDT. The example PeachOS that I am studying can support ELF loader and basic syscall. |
|||
16 Jan 2022, 15:47 |
|
macomics 16 Jan 2022, 15:57
I'm afraid that for your kernel you will need not a ready-made solution, but a unique utility. kernel-mode debugger is just tied to the specific designs of the operating system kernel. If you take a ready-made solution, then with a high degree of probability you will make a clone of the system for which the debugger was created. But as a text editor and compiler, you can try to take fasmd from the DOS kit.
|
|||
16 Jan 2022, 15:57 |
|
moogloof 25 Feb 2022, 03:09
FlierMate wrote:
It's been like a year, but I'll just reply. I assume you probably figured it out already, but an ISR is an Interrupt Service Routine and an IDT is an Interrupt Descriptor Table. ISRs are basically functions that the CPU will jump to when it is signaled an interrupt. An interrupt can be system calls, alerts from hardware, or exceptions. The IDT basically contains the addresses and information about your ISRs, so that the cpu knows where to look for them. I don't know about PeachOS, but I recommend you read up on all of these keywords before diving into development. Trust me, I figured out the hard way. Hope you made progress! |
|||
25 Feb 2022, 03:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.