Re: New GCC compiler for 8086 cpu's

Juan Perez-Sanchez <[email protected]> Mon, 19 Jun 2017 14:57:22 -0500
Newsgroups org.kernel.vger.linux-8086
Message-ID <CAD6VGubryFchyiWL_Rn2jE7BX6ySNCELcGghmiGv_qwm0SFCfA@mail.gmail.com>
Hi,

On Mon, Jun 19, 2017 at 8:43 AM, Alan Cox <[email protected]> wrote:
> For the kernel it's good enough it could do it with a few helpers.
> However the big kernel problem space is data (because of the stacks).
>

A simple solution for the kernel stacks is to use the user stack in
kernel mode, this is:

DS = ES = Kernel segment
SS = User data segment.

Of course, this leads to problems. And the current kernel will require
very careful inspection and corrections. But I think this is doable by
enforcing some simple rules.

What do you think?

Juan,