[Prev][Next][Index][Thread]

Re: OSKit & processes



>PS, you could also use a C-style function directly, as long as you start
>by >setting up the user %ds correctly and saving the registers.  Just put
>>asm("iret") at the end.  Don't worry about stack cleanup, the processor
>doesn't >remember the kernel %esp anyway after you iret.  Your code will
>be more >portable, though, if you use stubs like I do.

I just decided this is nonsense, because you'll mess up GCC's stack.  Just
do it the stub way :)

Ramon

---
Ramon van Handel   <vhandel@chem.vu.nl>
Chemistry Student, OS Programmer and all-round Weirdo
The ant has made himself illustrious / Through constant industry industrious.
So what? Would you be calm and placid / If you were full of formic acid?
(Ogden Nash)