Comments (2)
Ah guess I lost track of this one. Not entirely sure what those do. Are they like setjmp/longjmp?
from lk.
http://man7.org/linux/man-pages/man3/makecontext.3.html
https://linux.die.net/man/2/setcontext
Basically it's setjmp/longjmp with an API optimized for threading because you can easily return to the old context, change the stack pointer and the entrypoint, etc.
On Unix systems it actually does more than setjmp/longjmp because it saves more data like the signal mask so you can set that from within a signal handler to allow external/timed scheduling.
from lk.
Related Issues (20)
- How to use timer HOT 1
- [libm] some missing float functions
- stm32-f4xx Display HOT 2
- Touchscreen HOT 2
- ASLR support? HOT 1
- Goldfish_RTC Timer support
- [request] WASM as build target? HOT 1
- [arch][mmu] align the return of arch_mmu_map and arch_mmu_unmap of all the arches HOT 1
- Rust HOT 4
- The lk coding style question HOT 3
- [Feature] Dual boot support HOT 4
- [libc][printf] limited number of characters support
- arch_in_int_handler not working on multicore ARCH HOT 1
- riscv sifive_u qemu port doesn't seem to have working timers/interrupts
- printf("%zd") of ssize_t variables results in a warning
- Exception occurs when SVE instructions used on aarch64
- [lib][console] unused with_history parameter when creating a new console
- Adding the `-mgeneral-regs-only` flag breaks variadic functions
- Aarch64 ILP32 LK HOT 1
- Saving FPU registers during IRQ Handler HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lk.