Implement a window manager #62
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hubert/Pi-kachULM_OS!62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kernel Synchronous Interrupt must be processed prior any allocation possible (In case of a Data Abort, we want to retrieve it !)
I don't known if all the call made by the
ContextSwitcherdo not allocate memory but in both case, it's a pain to check & maintains. Knowing that we will panic on a synchronous interrupt in the kernel, I prefer to process them first and panic quickly to not have the time to make other errors... (do_kernelspace_interruptmodification are also discussed here)What is going on here ? 😂
Yep but in that case syscalls from the kernel are not processed correctly (they are coming from kernel tasks): a syscall which sleep or yield may need a context switch.
Moreover, the context switcher only does do any allocation if it must kill the previous task. This is only possible if the previous task was a kernel task that triggered a syscall (so the interrupt is entered not in the case of a data abort). Therefore, it should be safe. Even if I agree with you in the fact that it will be hard to check and maintain the constraint.
So maybe we need to check explictly if it is not a syscall.
Some things are better left unanswered...
@emile-s
Let's do that !