CS 452/652 Winter 2023 - Lecture 5

Jan 24, 2023 prev next

Context Switch (cont'd)

After SVC

Exception Handler

Kernel Exit

Additional Information

An earlier document by Bill Cowan is available here. This is certainly not the only way to write a context switch and I do not necessarily recommend (or not recommend) this particular approach, but I figure every bit of information can help.

Mixing C and Assembler

Coding

See various examples file in demo05. Take a look at the compiled .s source

Recommendations

RPi Initialization

Kernel Start

Task Management

Scheduling