1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 227 unchanged lines hidden (view full) ---

236 enum OperatingMode {
237 MODE_USER = 16,
238 MODE_FIQ = 17,
239 MODE_IRQ = 18,
240 MODE_SVC = 19,
241 MODE_MON = 22,
242 MODE_ABORT = 23,
243 MODE_UNDEFINED = 27,
244 MODE_SYSTEM = 31
244 MODE_SYSTEM = 31,
245 MODE_MAXMODE = MODE_SYSTEM
246 };
247
248 static inline bool
249 badMode(OperatingMode mode)
250 {
251 switch (mode) {
252 case MODE_USER:
253 case MODE_FIQ:

--- 19 unchanged lines hidden ---