Exercises are optional, though I strongly recommend you to experiment with the source code a little bit. If you were able to complete any of the exercises - please share your source code with others. For details see the contribution guide.
- Introduce a constant
baud_rate
, calculate necessary Mini UART register values using this constant. Make sure that the program can work using baud rates other than 115200. - Change the OS code to use UART device instead of Mini UART. Use
BCM2837 ARM Peripherals
and ARM PrimeCell UART (PL011) manuals to figure out how to access UART registers and how to configure GPIO pins. The UART device uses the 48MHz clock as a base. - Try to use all 4 processor cores. The OS should print
Hello, from processor <processor index>
for all of the cores. Don't forget to set up a separate stack for each core and make sure that Mini UART is initialized only once. You can use a combination of global variables anddelay
function for synchronization. - Adapt lesson 01 to run on qemu. Check this issue for reference.