···11-/*22- * This file is subject to the terms and conditions of the GNU General Public33- * License. See the file "COPYING" in the main directory of this archive44- * for more details.55- *66- * Copyright (C) 1999 by Kaz Kojima77- *88- * Defitions for the address spaces of the SH-3 CPUs.99- */1010-#ifndef __ASM_CPU_SH3_ADDRSPACE_H1111-#define __ASM_CPU_SH3_ADDRSPACE_H1212-1313-#define P0SEG 0x000000001414-#define P1SEG 0x800000001515-#define P2SEG 0xa00000001616-#define P3SEG 0xc00000001717-#define P4SEG 0xe00000001818-1919-#endif /* __ASM_CPU_SH3_ADDRSPACE_H */
+1-35
arch/sh/include/cpu-sh3/cpu/cacheflush.h
···1010#ifndef __ASM_CPU_SH3_CACHEFLUSH_H1111#define __ASM_CPU_SH3_CACHEFLUSH_H12121313-/*1414- * Cache flushing:1515- *1616- * - flush_cache_all() flushes entire cache1717- * - flush_cache_mm(mm) flushes the specified mm context's cache lines1818- * - flush_cache_dup mm(mm) handles cache flushing when forking1919- * - flush_cache_page(mm, vmaddr, pfn) flushes a single page2020- * - flush_cache_range(vma, start, end) flushes a range of pages2121- *2222- * - flush_dcache_page(pg) flushes(wback&invalidates) a page for dcache2323- * - flush_icache_range(start, end) flushes(invalidates) a range for icache2424- * - flush_icache_page(vma, pg) flushes(invalidates) a page for icache2525- *2626- * Caches are indexed (effectively) by physical address on SH-3, so2727- * we don't need them.2828- */2929-3013#if defined(CONFIG_SH7705_CACHE_32KB)3131-3214/* SH7705 is an SH3 processor with 32KB cache. This has alias issues like the3315 * SH4. Unlike the SH4 this is a unified cache so we need to do some work3416 * in mmap when 'exec'ing a new binary···3048void flush_icache_range(unsigned long start, unsigned long end);3149void flush_icache_page(struct vm_area_struct *vma, struct page *page);3250#else3333-#define flush_cache_all() do { } while (0)3434-#define flush_cache_mm(mm) do { } while (0)3535-#define flush_cache_dup_mm(mm) do { } while (0)3636-#define flush_cache_range(vma, start, end) do { } while (0)3737-#define flush_cache_page(vma, vmaddr, pfn) do { } while (0)3838-#define flush_dcache_page(page) do { } while (0)3939-#define flush_icache_range(start, end) do { } while (0)4040-#define flush_icache_page(vma,pg) do { } while (0)5151+#include <cpu-common/cpu/cacheflush.h>4152#endif4242-4343-#define flush_dcache_mmap_lock(mapping) do { } while (0)4444-#define flush_dcache_mmap_unlock(mapping) do { } while (0)4545-4646-/* SH3 has unified cache so no special action needed here */4747-#define flush_cache_sigtramp(vaddr) do { } while (0)4848-#define flush_icache_user_range(vma,pg,adr,len) do { } while (0)4949-5050-#define p3_cache_init() do { } while (0)51535254#endif /* __ASM_CPU_SH3_CACHEFLUSH_H */
-8
arch/sh/include/cpu-sh3/cpu/rtc.h
···11-#ifndef __ASM_SH_CPU_SH3_RTC_H22-#define __ASM_SH_CPU_SH3_RTC_H33-44-#define rtc_reg_size sizeof(u16)55-#define RTC_BIT_INVERTED 0 /* No bug on SH7708, SH7709A */66-#define RTC_DEF_CAPABILITIES 0UL77-88-#endif /* __ASM_SH_CPU_SH3_RTC_H */
-17
arch/sh/include/cpu-sh3/cpu/sigcontext.h
···11-#ifndef __ASM_CPU_SH3_SIGCONTEXT_H22-#define __ASM_CPU_SH3_SIGCONTEXT_H33-44-struct sigcontext {55- unsigned long oldmask;66-77- /* CPU registers */88- unsigned long sc_regs[16];99- unsigned long sc_pc;1010- unsigned long sc_pr;1111- unsigned long sc_sr;1212- unsigned long sc_gbr;1313- unsigned long sc_mach;1414- unsigned long sc_macl;1515-};1616-1717-#endif /* __ASM_CPU_SH3_SIGCONTEXT_H */