2 * linux/arch/arm/tools/getconsdata.c
4 * Copyright (C) 1995-2001 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.
10 #include <linux/config.h>
11 #include <linux/sched.h>
14 #include <asm/pgtable.h>
15 #include <asm/uaccess.h>
18 * Make sure that the compiler and target are compatible.
20 #if defined(__APCS_32__) && defined(CONFIG_CPU_26)
21 #error Your compiler targets APCS-32 but this kernel requires APCS-26
23 #if defined(__APCS_26__) && defined(CONFIG_CPU_32)
24 #error Your compiler targets APCS-26 but this kernel requires APCS-32
27 #define OFF_TSK(n) (unsigned long)&(((struct task_struct *)0)->n)
29 #define DEFN(name,off) asm("\n#define "name" %0" :: "I" (off))
33 DEFN("TSK_SIGPENDING", OFF_TSK(sigpending));
34 DEFN("TSK_ADDR_LIMIT", OFF_TSK(addr_limit));
35 DEFN("TSK_NEED_RESCHED", OFF_TSK(need_resched));
36 DEFN("TSK_PTRACE", OFF_TSK(ptrace));
37 DEFN("TSK_USED_MATH", OFF_TSK(used_math));
39 DEFN("TSS_SAVE", OFF_TSK(thread.save));
40 DEFN("TSS_FPESAVE", OFF_TSK(thread.fpstate.soft.save));
43 DEFN("TSS_DOMAIN", OFF_TSK(thread.domain));
45 DEFN("HPTE_TYPE_SMALL", PTE_TYPE_SMALL);
46 DEFN("HPTE_AP_READ", PTE_AP_READ);
47 DEFN("HPTE_AP_WRITE", PTE_AP_WRITE);
49 DEFN("LPTE_PRESENT", L_PTE_PRESENT);
50 DEFN("LPTE_YOUNG", L_PTE_YOUNG);
51 DEFN("LPTE_BUFFERABLE", L_PTE_BUFFERABLE);
52 DEFN("LPTE_CACHEABLE", L_PTE_CACHEABLE);
53 DEFN("LPTE_USER", L_PTE_USER);
54 DEFN("LPTE_WRITE", L_PTE_WRITE);
55 DEFN("LPTE_EXEC", L_PTE_EXEC);
56 DEFN("LPTE_DIRTY", L_PTE_DIRTY);
60 DEFN("PAGE_PRESENT", _PAGE_PRESENT);
61 DEFN("PAGE_READONLY", _PAGE_READONLY);
62 DEFN("PAGE_NOT_USER", _PAGE_NOT_USER);
63 DEFN("PAGE_OLD", _PAGE_OLD);
64 DEFN("PAGE_CLEAN", _PAGE_CLEAN);
67 DEFN("PAGE_SZ", PAGE_SIZE);
69 DEFN("SYS_ERROR0", 0x9f0000);