Chapter 12

Running without an operating system

Abstract

This chapter introduces bare metal programming on the Raspberry Pi. A simple example is given, showing how interrupts can be configured and used to wake the processor from sleep mode.

Keywords

Exception processing; AArch64; Exception states; The boot process; Bare metal program; Interrupt; ARM processor

The previous chapters assumed that the software would be running in user mode under an operating system. Sometimes, it is necessary to write assembly code to run on “bare metal,” which simply means: without an operating system. For example, when we write an operating system kernel, it must run on bare metal and a significant part of the code (especially during the boot process) must be written ...

Get ARM 64-Bit Assembly Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.