blob: 715e18a4add107bb230f6d522664e61cc7e47b84 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/include/asm-arm/cpu-multi32.h
3 *
4 * Copyright (C) 2000 Russell King
5 *
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>
11
12struct mm_struct;
13
14/*
15 * Don't change this structure - ASM code
16 * relies on it.
17 */
18extern struct processor {
19 /* MISC
20 * get data abort address/flags
21 */
22 void (*_data_abort)(unsigned long pc);
23 /*
24 * Set up any processor specifics
25 */
26 void (*_proc_init)(void);
27 /*
28 * Disable any processor specifics
29 */
30 void (*_proc_fin)(void);
31 /*
32 * Special stuff for a reset
33 */
Al Viro33215652005-08-23 22:47:52 +010034 void (*reset)(unsigned long addr) __attribute__((noreturn));
Linus Torvalds1da177e2005-04-16 15:20:36 -070035 /*
36 * Idle the processor
37 */
38 int (*_do_idle)(void);
39 /*
40 * Processor architecture specific
41 */
42 /*
43 * clean a virtual address range from the
44 * D-cache without flushing the cache.
45 */
46 void (*dcache_clean_area)(void *addr, int size);
47
48 /*
49 * Set the page table
50 */
51 void (*switch_mm)(unsigned long pgd_phys, struct mm_struct *mm);
52 /*
Russell Kingad1ae2f2006-12-13 14:34:43 +000053 * Set a possibly extended PTE. Non-extended PTEs should
54 * ignore 'ext'.
Linus Torvalds1da177e2005-04-16 15:20:36 -070055 */
Russell Kingad1ae2f2006-12-13 14:34:43 +000056 void (*set_pte_ext)(pte_t *ptep, pte_t pte, unsigned int ext);
Linus Torvalds1da177e2005-04-16 15:20:36 -070057} processor;
58
59#define cpu_proc_init() processor._proc_init()
60#define cpu_proc_fin() processor._proc_fin()
61#define cpu_reset(addr) processor.reset(addr)
62#define cpu_do_idle() processor._do_idle()
63#define cpu_dcache_clean_area(addr,sz) processor.dcache_clean_area(addr,sz)
Russell Kingad1ae2f2006-12-13 14:34:43 +000064#define cpu_set_pte_ext(ptep,pte,ext) processor.set_pte_ext(ptep,pte,ext)
Linus Torvalds1da177e2005-04-16 15:20:36 -070065#define cpu_do_switch_mm(pgd,mm) processor.switch_mm(pgd,mm)