-
公开(公告)号:US11782762B2
公开(公告)日:2023-10-10
申请号:US16801776
申请日:2020-02-26
Applicant: QUALCOMM Incorporated
Inventor: Richard Senior , Sundeep Kushwaha , Harsha Gordhan Jagasia , Christopher Ahn , Gurvinder Singh Chhabra , Nieyan Geng , Maksim Krasnyanskiy , Unni Prasad
IPC: G06F9/46 , G06F9/50 , G06F9/48 , G06F12/0806
CPC classification number: G06F9/5016 , G06F9/4806 , G06F9/5022 , G06F12/0806 , G06F2209/481 , G06F2209/503 , G06F2212/1021
Abstract: A method of managing a stack includes detecting, by a stack manager of a processor, that a size of a frame to be allocated exceeds available space of a first stack. The first stack is used by a particular task executing at the processor. The method also includes designating a second stack for use by the particular task. The method further includes copying metadata associated with the first stack to the second stack. The metadata enables the stack manager to transition from the second stack to the first stack upon detection that the second stack is no longer in use by the particular task. The method also includes allocating the frame in the second stack.
-
公开(公告)号:US11386012B1
公开(公告)日:2022-07-12
申请号:US17201247
申请日:2021-03-15
Applicant: QUALCOMM incorporated
Inventor: Arvind Krishnaswamy , Richard Senior , Sundeep Kushwaha , Can Acar
IPC: G06F12/00 , G06F12/0882 , G06F12/0871 , G06F9/32 , G06F12/02
Abstract: Various embodiments include methods and devices for generating a memory map configured to map virtual addresses of pages to physical addresses, in which pages of a same size are grouped into regions. The embodiments may include adding a first entry for a first additional page to a first region in the memory map, shifting virtual addresses of the first region to accommodate a shift of virtual addresses of the first region allocated for code by a sub-page granular shift amount, mapping shifted virtual addresses of the first entry for the first additional page to physical address mapped to a first lowest shifted virtually addressed page of the first region, and shifting the virtual addresses of the first region allocated for code by a sub-page granular shift amount, in which the virtual addresses of the first region allocated for code partially shift into the first entry for the first additional page.
-