utility.hh (10417:710ee116eb68) | utility.hh (10854:f449d6f8a647) |
---|---|
1/* 2 * Copyright (c) 2010, 2012-2013 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 --- 154 unchanged lines hidden (view full) --- 163 164/** 165 * Removes the tag from tagged addresses if that mode is enabled. 166 * @param addr The address to be purified. 167 * @param tc The thread context. 168 * @param el The controlled exception level. 169 * @return The purified address. 170 */ | 1/* 2 * Copyright (c) 2010, 2012-2013 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 --- 154 unchanged lines hidden (view full) --- 163 164/** 165 * Removes the tag from tagged addresses if that mode is enabled. 166 * @param addr The address to be purified. 167 * @param tc The thread context. 168 * @param el The controlled exception level. 169 * @return The purified address. 170 */ |
171Addr purifyTaggedAddr(Addr addr, ThreadContext *tc, ExceptionLevel el, 172 TTBCR tcr); |
|
171Addr purifyTaggedAddr(Addr addr, ThreadContext *tc, ExceptionLevel el); 172 173static inline bool 174inSecureState(SCR scr, CPSR cpsr) 175{ 176 switch ((OperatingMode) (uint8_t) cpsr.mode) { 177 case MODE_MON: 178 case MODE_EL3T: --- 150 unchanged lines hidden --- | 173Addr purifyTaggedAddr(Addr addr, ThreadContext *tc, ExceptionLevel el); 174 175static inline bool 176inSecureState(SCR scr, CPSR cpsr) 177{ 178 switch ((OperatingMode) (uint8_t) cpsr.mode) { 179 case MODE_MON: 180 case MODE_EL3T: --- 150 unchanged lines hidden --- |