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: 100
Location: Paris/French
MaoKo 18 Jan 2021, 06:01
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 Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 14 Aug 2021, 09:16
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: 100
Location: Paris/French
MaoKo 14 Aug 2021, 13:38
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 Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4043
Location: vpcmpistri
bitRAKE 14 Aug 2021, 18:37
I like how your leveraging fasm to model the processor features. Makes it very readable and flexible, imho.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
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: 100
Location: Paris/French
MaoKo 14 Aug 2021, 19:45
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: 6532 Time(s)

iapx.png


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



Joined: 07 May 2019
Posts: 100
Location: Paris/French
MaoKo 14 Aug 2021, 19:47
Btw a very good man ;D
Post 14 Aug 2021, 19:47
View user's profile Send private message Visit poster's website 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.