1 #ifndef _ASMARM_SETUP_H_ 2 #define _ASMARM_SETUP_H_ 3 /* 4 * Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com> 5 * 6 * This work is licensed under the terms of the GNU LGPL, version 2. 7 */ 8 #include "libcflat.h" 9 #include "alloc.h" 10 11 #define NR_CPUS 8 12 extern u32 cpus[NR_CPUS]; 13 extern int nr_cpus; 14 15 extern phys_addr_t __phys_offset, __phys_end; 16 17 #define PHYS_OFFSET (__phys_offset) 18 #define PHYS_END (__phys_end) 19 #define PHYS_SHIFT 40 20 #define PHYS_SIZE (1ULL << PHYS_SHIFT) 21 #define PHYS_MASK (PHYS_SIZE - 1ULL) 22 23 #define L1_CACHE_SHIFT 6 24 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) 25 #define SMP_CACHE_BYTES L1_CACHE_BYTES 26 27 #endif /* _ASMARM_SETUP_H_ */ 28