1/* 2 * Copyright (c) 2009-2015 ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 8 */ 9 10#include <kernel.h> 11 12#include <cp15.h> 13#include <platform.h> 14 15void 16armv7_get_info(struct arch_info_armv7 *ai) { 17 ai->ncores = platform_get_core_count(); 18 ai->midr = cp15_read_midr(); 19 ai->ctr = cp15_read_ctr(); 20 ai->id_pfr0 = cp15_read_id_pfr0(); 21 ai->id_pfr1 = cp15_read_id_pfr1(); 22 ai->id_dfr0 = cp15_read_id_dfr0(); 23 ai->id_afr0 = cp15_read_id_afr0(); 24} 25