Variably-sized kernel memory stacks
Abstract
The invention includes a computer system having a processor that executes program instructions in privileged and non-privileged execution modes. A user stack is used when the processor is executing in the non-privileged execution mode. A kernel memory stack is used when the processor is executing in the privileged execution mode. The kernel memory stack can grow and shrink dynamically as it is used by its associated thread, through the use of allocate-on-demand memory. A stack overflow handler is executed from within the kernel to resolve allocate-on-demand faults. The stack handler uses only fixed-size memory stacks.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 78.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
In a computer system having privileged and non-privileged execution modes, a method comprising the following steps: using a variably-sized kernel memory stack in the privileged execution mode; executing a stack overflow handler that dynamically allocates additional memory for the variably-sized kernel memory stack; using a fixed-size memory stack for the stack overflow handler.
- Claim 2Depends on #1
A method as recited in claim 1, wherein the stack overflow handler dynamically allocates additional memory for the variably-sized kernel memory stack in response to allocate-on-demand memory faults.
- Claim 3Depends on #1
A method as recited in claim 1, further comprising a step of initiating the stack overflow handler in response to memory faults.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 78 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (4)
- Bala, Kavita et al., "Software Prefetching and Caching for Translation Lookaside Buffers," MIT Laboratory for Computer Science, Cambridge, MA, date unknown.
- Bala, Kavita et al., Software Prefetching and Caching for Translation Lookaside Buffers, MIT Laboratory for Computer Science, Cambridge, MA, date unknown.
- Rashid, Richard et al., "Machine-Independent Virtual Memory Management for Paged Uniprocessor and Multiprocessor Architectures," Department of Computer Science, Carnegie Mellon University, 1987.
- Rashid, Richard et al., Machine Independent Virtual Memory Management for Paged Uniprocessor and Multiprocessor Architectures, Department of Computer Science, Carnegie Mellon University, 1987.