Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ members = [

[workspace.dependencies.sel4-capdl-initializer]
git = "https://github.com/seL4/rust-sel4"
rev = "21cca71072cda60bd8cc3f1b585818a21e0c6a77"
rev = "dbe6445d56059ed9a757e53c7137892aece1d179"

[workspace.dependencies.sel4-capdl-initializer-types]
git = "https://github.com/seL4/rust-sel4"
rev = "21cca71072cda60bd8cc3f1b585818a21e0c6a77"
rev = "dbe6445d56059ed9a757e53c7137892aece1d179"

[profile.release.package.microkit-tool]
strip = true
16 changes: 16 additions & 0 deletions build_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@
# Turning off this feature removes the __thread attribute on
# __sel4_ipc_buffer and makes it a true global.
"LibSel4UseThreadLocals": False,

# The domain scheduler is turned on by default with 16 domains and 100
# schedules. This represent the maximums imposed by the static build of
# the kernel; we can easily have less domains or schedules.
# Both of these are arbitrary values; increasing them has a memory cost
# for seL4.
# Having the domain scheduler enabled in the kernel has no impact if we
# only have one domain schedule (the non-domain kernel build has NumDomains = 1,
# and the same code is run).
# NOTE: If updating make sure to update the manual too.
"KernelNumDomains": 16,
# This is the current default value used by seL4.
"KernelNumDomainSchedules": 100,
}

DEFAULT_KERNEL_OPTIONS_AARCH64: KERNEL_OPTIONS = {
Expand Down Expand Up @@ -507,6 +520,7 @@ class KernelPath:

EXAMPLES = {
"hello": Path("example/hello"),
"domains": Path("example/domains"),
"ethernet": Path("example/ethernet"),
"passive_server": Path("example/passive_server"),
"hierarchy": Path("example/hierarchy"),
Expand All @@ -523,6 +537,8 @@ def elaborate_all_board_configs(board: BoardInfo) -> list[ConfigInfo]:
config.name = f"smp-{config.name}"
config.kernel_options |= {
"KernelMaxNumNodes": str(board.smp_cores),
# SMP configurations of seL4 do not support the domain scheduler
"KernelNumDomains": 1,
}
elaborated_configs.append(config)

Expand Down
Loading
Loading