摘要 |
The present invention relates to a method for sensing a used memory capacity and an error for each real time kernel process, whose purpose is to add a protective region to a final portion of a stack region allocated with a fixed size, to cause a page fault if a stack pointer enters the protective region, and thereby to sense the used memory amount and the error for each kernel process. To attain the purpose, the present invention comprises steps of: (a) making a kernel stack manager generate a kernel stack region at a virtual address space; (b) operating the kernel stack by performing kernel subsystems of a disk driver and a file system; (c) in the case that the stack pointer enters the protective region of the kernel stack and an overflow occurs, generating a page fault exception; and (d) processing the overflow. [Reference numerals] (AA) Start;(BB) End;(S100) Generate a kernel stack region at a virtual address space;(S200) Add a protective region at the very last of the stack region;(S300) Move a push operation generator and a pop operation generator while executing the kernel;(S400) Generating a page fault exception;(S500) Processing an overflow |