#ifndef _ASMARM_SETUP_H_ #define _ASMARM_SETUP_H_ /* * Copyright (C) 2014, Red Hat Inc, Andrew Jones * * This work is licensed under the terms of the GNU LGPL, version 2. */ #include "libcflat.h" #include "alloc.h" #define NR_CPUS 8 extern u32 cpus[NR_CPUS]; extern int nr_cpus; extern phys_addr_t __phys_offset, __phys_end; #define PHYS_OFFSET (__phys_offset) #define PHYS_END (__phys_end) #define PHYS_SHIFT 40 #define PHYS_SIZE (1ULL << PHYS_SHIFT) #define PHYS_MASK (PHYS_SIZE - 1ULL) #define L1_CACHE_SHIFT 6 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) #define SMP_CACHE_BYTES L1_CACHE_BYTES #endif /* _ASMARM_SETUP_H_ */