Trivial change, except for x86 virtualisation and bootup. Normally the seL4_TCBFlag_fpuDisabled flag is used to decide whether to enable or disable the FPU. However, with x86 virtualisation there is only one TCB. Use the task flag for the host and always enable FPU for the guest. When either the host or the guest's FPU is loaded, ksCurFPUOwner will point to our TCB. saveFpuState and loadFpuState check fpu_active and do the right thing depending on the current FPU user. To make this work it was necessary to pass tcb_t to saveFpuState and loadFpuState. Use the idle thread to store the initial FPU state. x86KSnullFpuState is kept to simplify verification. However, when Arch_initFpu is called, the idle thread hasn't been created yet, so move the initialisation to after create_idle_thread, but before create_initial_thread, as that leads to Arch_initFpuContext using x86KSnullFpuState. Also initialise VCPU FPU registers correctly for x86, otherwise the initial state is wrong and can't be loaded when XSAVES is enabled. Signed-off-by: Indan Zupancic <indan@nul.nu>
The seL4 microkernel
This project contains the source code of seL4 microkernel.
For details about the seL4 microkernel, including details about its formal
correctness proof, please see the sel4.systems website and associated
FAQ.
DOIs for citing recent releases of this repository:
We welcome contributions to seL4. Please see the website for information on how to contribute.
This repository is usually not used in isolation, but as part of the build system in a larger project.
seL4 Basics
- Tutorials
- Overview
- Doc Site
- seL4 libraries
- seL4Test
- Debugging guide
- Benchmarking guide
- Virtualization on seL4
- Host Build Dependencies
- Porting seL4
Community
- Open-source help and support:
See also the contact links on the seL4 website.
Reporting security vulnerabilities
If you believe you have found a security vulnerability in seL4 or related software, we ask you to follow our vulnerability disclosure policy.
Manual
A hosted PDF version of the manual for the most recent release can be found here.
A web version of the API documentation is available as well.
Repository Overview
includeandsrc: C and ASM source code of seL4tools: build toolslibsel4: C bindings for the seL4 ABImanual: LaTeX sources of the seL4 reference manual
Build Instructions
See the seL4 website for build instructions.
Status
- Releases: list of available seL4 releases
- Roadmap: new features in development
- Hardware Support: information about hardware platform ports
- Kernel Options: information about available config options and features
License
See the file LICENSE.md.