flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Segmented Kernel.

Author
Thread Post new topic Reply to topic
MaoKo



Joined: 07 May 2019
Posts: 98
Location: Paris/French
MaoKo
Hello. Here is an small educational segmented kernel.
https://github.com/MaoKo/Segmented_Kernel
There is a kernel space and user space. In the user space, I implement a small shell.
You can switch between different "tty" with ctrl-b (backward) and ctrl-n (next).
Here I use TSS to fully exploit the isolation of the different tty with different address space (ldt) as well.
I use call gate for system call. I reserve empty slot in the GDT and LDTs to allow the kernel to be able to load dynamically without changing the gdt base.
If you have any recommendation, please tell me Smile.
Post 18 Jan 2021, 06:01
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3291
Location: vpcmipstrm
bitRAKE
Post 14 Aug 2021, 09:16
View user's profile Send private message Visit poster's website Reply with quote
MaoKo



Joined: 07 May 2019
Posts: 98
Location: Paris/French
MaoKo
Ha thanks you Smile. Currently working on APIC/SMP stuff. Very interesting.
Post 14 Aug 2021, 13:38
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3291
Location: vpcmipstrm
bitRAKE
I like how your leveraging fasm to model the processor features. Makes it very readable and flexible, imho.

_________________
¯\(°_o)/¯ unlicense.org
Post 14 Aug 2021, 18:37
View user's profile Send private message Visit poster's website Reply with quote
MaoKo



Joined: 07 May 2019
Posts: 98
Location: Paris/French
MaoKo
Yes thanks. I try to mimic the convention used in the old day of IAPX. At the time ASM286 was in use and I guess very readable code was primordial between team.
This is a sample of code found in the IAPX man:


Description:
Filesize: 253.52 KB
Viewed: 395 Time(s)

iapx.png


Post 14 Aug 2021, 19:45
View user's profile Send private message Reply with quote
MaoKo



Joined: 07 May 2019
Posts: 98
Location: Paris/French
MaoKo
Btw a very good man ;D
Post 14 Aug 2021, 19:47
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.