Abstract
This Chapter covers multiprocessing in embedded systems. It explains the requirements of Symmetric Multiprocessing (SMP) systems and compares the approach to SMP of Intel with that of ARM. It lists ARM MPcore processors and describes the components and functions of ARM MPcore processors in support of SMP. It shows how to configure the GIC to route interrupts and demonstrates GIC programming by examples. It shows how to start up ARM MPcores and points out the need for synchronization in a SMP environment. It shows how to use the classic test-and-set or equivalent instructions to implement atomic updates and critical regions and points out their shortcomings. Then it explains the new features of ARM MPcores in support of SMP. These include LDRES/STRES instructions and memory barriers. It shows how to use the new features of ARM MPcore processors to implement spinlocks, mutexes and semaphores for process synchronization in SMP. It defines conditional spinlocks, mutexes and semaphores and shows how to use them for deadlock prevention in SMP kernels. It also covers the additional features of the ARM MMU for SMP. It presents a general methodology for adapting uniprocessor OS kernel to SMP. Then it applies the principles to develop a complete SMP_EOS for embedded systems, and it demonstrates the capabilities of the SMP_EOS system by example programs.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
ARM 926EJ-S : ARM Versatile Application Baseboard for ARM926EJ-S User guide, ARM Information Center, 2010
ARM11: ARM11 MPcore Processor Technical Reference Manual, r2p0, ARM Information Center, 2008
ARM Cortex-A9 MPCore: Technical Reference Manual Revision: r4p1, ARM information Center, 2012
ARM GIC: ARM Generic Interrupt Controller (PL390) Technical Reference Manual, ARM Information Center, 2013
ARM Linux SMP: Booting ARM Linux SMP on MPCore http://www.linux-arm.org/LinuxBootLoader/SMPBoot, 2010
ARM Timers: ARM Dual-Timer Module (SP804) Technical Reference Manual, Arm Information Center, 2004
Cox, R., Kaashoek, F., Morris, R. “xv6 a simple, Unix-like teaching operating system, xv6-book@pdos.csail.mit.edu, Sept. 2011
Intel: MultiProcessor Specification, v1.4, Intel, 1997
Stallings, W. “Operating Systems: Internals and Design Principles (7th Edition)”, Prentice Hall, 2011
Silberschatz, A., P.A. Galvin, P.A., Gagne, G, “Operating system concepts, 8th Edition”, John Wiley & Sons, Inc. 2009
Wang, K.C., “Design and Implementation of the MTX Operating Systems, Springer International Publishing AG, 2015
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this chapter
Cite this chapter
Wang, K.C. (2017). Multiprocessing in Embedded Systems. In: Embedded and Real-Time Operating Systems. Springer, Cham. https://doi.org/10.1007/978-3-319-51517-5_9
Download citation
DOI: https://doi.org/10.1007/978-3-319-51517-5_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-51516-8
Online ISBN: 978-3-319-51517-5
eBook Packages: EngineeringEngineering (R0)