Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document constants needed to allocate scheduling contexts #560

Open
bennoleslie opened this issue Sep 6, 2021 · 1 comment
Open

Document constants needed to allocate scheduling contexts #560

bennoleslie opened this issue Sep 6, 2021 · 1 comment
Labels
docs Manual and other documentation MCS issues about the mixed-criticality system config

Comments

@bennoleslie
Copy link

As far as I can tell the following:

/* Minimum size of a scheduling context (2^{n} bytes) */
#define seL4_MinSchedContextBits 8
#ifndef __ASSEMBLER__
/* the size of a scheduling context, excluding extra refills */
#define seL4_CoreSchedContextBytes (10 * sizeof(seL4_Word) + (6 * 8))
/* the size of a single extra refill */
#define seL4_RefillSizeBytes (2 * 8)

Are not documented in the user manual currently. However this is critical to being able to allocate a scheduling context object.

Ideally this should at least be reference in section 2.4.2 Summary of Object Sizes.

@bennoleslie bennoleslie added MCS issues about the mixed-criticality system config docs Manual and other documentation labels Sep 6, 2021
@pingerino
Copy link
Contributor

Historically the seL4 manual hard coded all values and made no references to constants in seL4. I fixed this in a few places (mostly because the hard coded values were, not surprisingly, completely out of date) but not everywhere.

These constants should likely go somewhere around here: https://github.com/seL4/seL4/blob/master/manual/parts/objects.tex#L451 where the variable size of scheduling contexts is documented.

@lsf37 lsf37 changed the title Document constants need to allocate scheduling contexts Document constants needed to allocate scheduling contexts Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Manual and other documentation MCS issues about the mixed-criticality system config
Projects
Status: Todo
Development

No branches or pull requests

2 participants