Method and system for providing stack memory management in real-time operating systems
    3.
    发明授权
    Method and system for providing stack memory management in real-time operating systems 有权
    在实时操作系统中提供堆栈内存管理的方法和系统

    公开(公告)号:US09529625B2

    公开(公告)日:2016-12-27

    申请号:US14676366

    申请日:2015-04-01

    CPC classification number: G06F9/4881 G06F9/461 G06F9/5011 G06F9/5016

    Abstract: A method and system for providing memory management in a Real-Time Operating System (RTOS) based system are provided. The method includes creating a plurality of tasks with a two level stack scheme comprising a first level stack and a second level stack, scheduling a first task for execution by moving a stack pointer from the first level stack to the second level stack, determining whether the first task is pre-empted, allocating the second level stack to the first task in a second state if the first task is not pre-empted, changing an active task for execution, determining whether the first task relinquishes control from the second state and is waiting for a resource, moving the stack pointer back from the second level stack to the first level stack if the first task relinquishes itself and providing the second level stack for use by a second task.

    Abstract translation: 提供了一种用于在基于实时操作系统(RTOS)的系统中提供存储器管理的方法和系统。 该方法包括通过包括第一级堆栈和第二级堆栈的两级堆栈方案来创建多个任务,通过将堆栈指针从第一级堆栈移动到第二级堆栈来调度第一任务以执行,确定是否 首先任务被抢占,如果第一任务没有被抢占,则将第二级堆栈分配给第一任​​务,改变要执行的活动任务,确定第一任务是否从第二状态放弃控制,并且是第 等待资源,如果第一个任务放弃自身并提供第二级堆栈供第二个任务使用,则将堆栈指针从第二级堆栈移回到第一级堆栈。

    Method and system for providing stack memory management in real-time operating systems

    公开(公告)号:US10248456B2

    公开(公告)日:2019-04-02

    申请号:US15374603

    申请日:2016-12-09

    Abstract: A method and system for providing memory management in a Real-Time Operating System (RTOS) based system are provided. The method includes creating a plurality of tasks with a two level stack scheme comprising a first level stack and a second level stack, scheduling a first task for execution by moving a stack pointer from the first level stack to the second level stack, determining whether the first task is pre-empted, allocating the second level stack to the first task in a second state if the first task is not pre-empted, changing an active task for execution, determining whether the first task relinquishes control from the second state and is waiting for a resource, moving the stack pointer back from the second level stack to the first level stack if the first task relinquishes itself and providing the second level stack for use by a second task.

    METHOD AND SYSTEM FOR DYNAMICALLY UPDATING STACK CANARY

    公开(公告)号:US20240054250A1

    公开(公告)日:2024-02-15

    申请号:US18362010

    申请日:2023-07-31

    CPC classification number: G06F21/64

    Abstract: A canary update method according to some embodiments is disclosed. The canary update method includes executing, by a processor configured to process tasks including the canary, computer program instructions to perform operations including extracting, by a processor, a first value from an array including N values, setting the canary to the first value, determining that the canary is updated based on a canary flag value of a first task, extracting, when determined that the canary is updated, a second value from the array, and updating the canary of the first task to the second value. The processor is configured to access a memory through a mapping circuit, and the mapping circuit includes mapping information between a physical memory region in the memory corresponding to the first task and a virtual memory region associated with the mapping circuit.

Patent Agency Ranking