Re: [9fans] too good to pass up (SRB Comments)



Richard Miller wrote:
I took the easy way out and rewrote the allocator to make sure it
extended the address space before the memory was used, rather than
relying on recoverable address faults.

Reminds me of a change I made to the PDP-11 C code generator
to test the new top-of-stack after setting up the stack
pointer in function prologues. The idea is that if a trap
was needed for the kernel to extend the process's allocation
of RAM, it was much better to do it in a controlled manner
than to have it happen in the middle of some complex machine
instruction (I think floating-point was the big problem, due
to the FPU running asynchronously to the integer ALU). You
may recall that a lot of code was used in some PDP-11 Unix
kernels to figure out how to correctly restart faulted
instructions; the lesson to be learned is not to get into
that situation.
.



Relevant Pages

  • Re: Suggestion: LKM should be able to add system call for itself
    ... system calls should be able to extend as long as the kernel is ... Using the interface we provide to add and delete system call (the ... but when the kernel later adds new ones.. ... Look at nfs etc. ...
    (Linux-Kernel)
  • Re: Put the Nextstar in the Trees
    ... I think the lucky one may need a wee bit of instruction:) e.g. Did he ... The plane was very stable even ... noticed that in my excitement I had neglected to extend the radio ... the airplane sitting on its wheels in the middle of the dense pine ...
    (rec.models.rc.air)
  • Re: [RFC][DRAFT][PATCH] iptables 32bit compat layer
    ... > This patch extends current iptables compatibility layer in order to get ... > due to alignment checks both in kernel and user space tools. ... > - extend translation to include more matches and targets. ...
    (Linux-Kernel)
  • Re: Damm Small Linux
    ... >extend some low-level video functions? ... MMX was almost obsolete when it came out for those reasons. ... argument - that kernel recompiling will match the kernel to the CPU ...
    (sci.electronics.design)
  • Re: win32forth allocate
    ... the B option to remetacompile the kernel ... and extend it into W32F, so only those 2 files (i.e. not the editors ...
    (comp.lang.forth)