Re: The well-factored 386

Jamie Lokier
2003-07-30T14:05:31Z

Helge Hafting wrote:
> So you can probably use paging in "forreal" mode too. I believe
> you only get the page table's memory mapping capabilities
> though, I don't think you get protection of "kernel" pages
> without protection enabled.
>
> You could still "hide" kernel memory by giving userspace another
> page table, but that means page table switching on each
> syscall which kills performance worse than interrupt handling
> in protecxted mode.

Yes, that's exactly what I had in mind.

You say that page table switching kills performance, but consider
Ingo's latest 64G patches do exactly that, and performance, though
degraded, is not too bad.

Whether it's worth doing that would depend on the balance of
interrupts vs. syscalls. Some embedded applications are dominated by
interrupts, and there are apps which avoid syscalls altogether during
the main part of their running.

-- Jamie