GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / include / asm / cpu-multi32.h
blobe2b5b0b2116a705819995256e51b70bc27abb764
1 /*
2 * arch/arm/include/asm/cpu-multi32.h
4 * Copyright (C) 2000 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10 #include <asm/page.h>
12 struct mm_struct;
15 * Don't change this structure - ASM code
16 * relies on it.
18 extern struct processor {
19 /* MISC
20 * get data abort address/flags
22 void (*_data_abort)(unsigned long pc);
24 * Retrieve prefetch fault address
26 unsigned long (*_prefetch_abort)(unsigned long lr);
28 * Set up any processor specifics
30 void (*_proc_init)(void);
32 * Disable any processor specifics
34 void (*_proc_fin)(void);
36 * Special stuff for a reset
38 void (*reset)(unsigned long addr) __attribute__((noreturn));
40 * Idle the processor
42 int (*_do_idle)(void);
44 * Processor architecture specific
47 * clean a virtual address range from the
48 * D-cache without flushing the cache.
50 void (*dcache_clean_area)(void *addr, int size);
53 * Set the page table
55 void (*switch_mm)(unsigned long pgd_phys, struct mm_struct *mm);
57 * Set a possibly extended PTE. Non-extended PTEs should
58 * ignore 'ext'.
60 void (*set_pte_ext)(pte_t *ptep, pte_t pte, unsigned int ext);
61 } processor;
63 #define cpu_proc_init() processor._proc_init()
64 #define cpu_proc_fin() processor._proc_fin()
65 #define cpu_reset(addr) processor.reset(addr)
66 #define cpu_do_idle() processor._do_idle()
67 #define cpu_dcache_clean_area(addr,sz) processor.dcache_clean_area(addr,sz)
68 #define cpu_set_pte_ext(ptep,pte,ext) processor.set_pte_ext(ptep,pte,ext)
69 #define cpu_do_switch_mm(pgd,mm) processor.switch_mm(pgd,mm)