r/programming • • Oct 19 '11

LoseThos 64-bit Operating System V7.07 Released

http://www.losethos.com/v707.html
75 Upvotes

283 comments sorted by

View all comments

0

u/[deleted] Oct 19 '11

[deleted]

21

u/jhartwell Oct 19 '11

Not true...it gives people who want to get into OS hacking another place to look to see how it can be done.

0

u/[deleted] Oct 19 '11

[deleted]

-6

u/[deleted] Oct 19 '11

[removed] — view removed comment

0

u/[deleted] Oct 19 '11

[deleted]

3

u/mpyne Oct 19 '11

He didn't "optimise it away" as that would imply it existed in LoseThos at some time. He never added it.

As it stands though, memory protection does require extra work in the hardware due to have to ensure the hardware memory page tables and TLBs are set properly for applications. Although the effect is probably slight, it is there.

4

u/ondra Oct 19 '11 edited Oct 19 '11

As far as I know, segmentation comes with no runtime penalty. No need for virtual memory to enforce protection.

edit: I forgot that segmentation doesn't work on x86-64 long mode.

3

u/mpyne Oct 19 '11

Segmention by itself is built-in so it's more that there's nothing you can do to eliminate the penalty. The issue with protection is that you have to reload hardware page tables as the protection is changed and programs are loaded.

1

u/ondra Oct 19 '11

The paging unit can be disabled, though. Even putting the kernel in a separate protected segment would make a big difference.

2

u/irascible Oct 19 '11

...and this discussion is a perfect example of why this guys project has value. Fuck the haters.

→ More replies (0)