Meaning
Modern processor designs include hardware-enforced isolation to secure sensitive code and data from common software vulnerabilities. The implementation of trustzone creates two distinct execution states called the secure world and the non-secure world. This split is enforced at the hardware level by the CPU core, ensuring that resources assigned to the secure world are inaccessible to standard application code.
Security Segmentation
Memory, interrupts, and peripherals are partitioned between these two worlds during system startup. Security-critical tasks, such as cryptographic key management, secure boot routines, and network stack authentication, execute exclusively within the secure environment. The non-secure world, which runs the main operating system or application, can only access these services through controlled gatekeepers.
Transition Handling
Context switching between the states uses a dedicated instruction known as the secure gateway. This instruction validates the transition and ensures that the non-secure code cannot jump into arbitrary locations within the secure memory space.
Peripheral Protection
Hardware-level gating extends to the system bus. Each bus transaction carries a sideband signal that indicates whether the access originated from the secure or non-secure world. Peripherals equipped with this technology can reject unauthorized transactions directly at the hardware interface.
This hardware enforcement guarantees that even a compromised application stack cannot manipulate critical hardware resources like cryptographic accelerators or radio control registers.