发明名称 METHOD AND APPRATUS FOR PREVENTING STACK OVERFLOW IN EMBEDDED SYSTEM
摘要 <p>A method and a device for preventing stack overflow in an embedded system are provided to prevent the stack overflow without causing runtime overflow by removing need for continuously checking whether the stack overflow is generated during runtime, as a maximum stack usage of a main function of functions or threads provided from a kernel is stored, and a task is selectively processed by comparing the stored maximum stack usage with the size of an assigned stack or an available memory. A stack usage storing part(110) stores maximum stack usage of functions provided from a kernel. A processing module(140) task processes a requested task selectively based on at least one maximum stack usage needed for executing the requested task among the maximum stack usage of the functions and the size of an available area among stacks for the requested task. The requested task is interrupt processing, at least one function is an interrupt handler function corresponding to an interrupt, and the stack for the requested task is an interrupt stack(170). The processing module includes an interrupt module(142) preventing occurrence of the additional interrupt and calling the interrupt handler function.</p>
申请公布号 KR20080064577(A) 申请公布日期 2008.07.09
申请号 KR20070001643 申请日期 2007.01.05
申请人 SAMSUNG ELECTRONICS CO., LTD. 发明人 LEE, SEUNG WON;KIM, HAN CHEOL;SHIN, YOUNG SAM;JEONG, MIN KYU;YIM, KEUN SOO;YOO, JEONG JOON;LEE, JAE DON
分类号 G06F9/42;G06F12/00;G06F12/06 主分类号 G06F9/42
代理机构 代理人
主权项
地址