diff options
Diffstat (limited to 'include/asm-sh64')
-rw-r--r-- | include/asm-sh64/cayman.h | 20 | ||||
-rw-r--r-- | include/asm-sh64/hardware.h | 22 | ||||
-rw-r--r-- | include/asm-sh64/irq.h | 144 | ||||
-rw-r--r-- | include/asm-sh64/keyboard.h | 70 | ||||
-rw-r--r-- | include/asm-sh64/pci.h | 102 | ||||
-rw-r--r-- | include/asm-sh64/platform.h | 64 | ||||
-rw-r--r-- | include/asm-sh64/thread_info.h | 91 |
7 files changed, 0 insertions, 513 deletions
diff --git a/include/asm-sh64/cayman.h b/include/asm-sh64/cayman.h deleted file mode 100644 index 7b6b96844842..000000000000 --- a/include/asm-sh64/cayman.h +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * include/asm-sh64/cayman.h | ||
7 | * | ||
8 | * Cayman definitions | ||
9 | * | ||
10 | * Global defintions for the SH5 Cayman board | ||
11 | * | ||
12 | * Copyright (C) 2002 Stuart Menefy | ||
13 | */ | ||
14 | |||
15 | |||
16 | /* Setup for the SMSC FDC37C935 / LAN91C100FD */ | ||
17 | #define SMSC_IRQ IRQ_IRL1 | ||
18 | |||
19 | /* Setup for PCI Bus 2, which transmits interrupts via the EPLD */ | ||
20 | #define PCI2_IRQ IRQ_IRL3 | ||
diff --git a/include/asm-sh64/hardware.h b/include/asm-sh64/hardware.h deleted file mode 100644 index 931c1ad80847..000000000000 --- a/include/asm-sh64/hardware.h +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | #ifndef __ASM_SH64_HARDWARE_H | ||
2 | #define __ASM_SH64_HARDWARE_H | ||
3 | |||
4 | /* | ||
5 | * This file is subject to the terms and conditions of the GNU General Public | ||
6 | * License. See the file "COPYING" in the main directory of this archive | ||
7 | * for more details. | ||
8 | * | ||
9 | * include/asm-sh64/hardware.h | ||
10 | * | ||
11 | * Copyright (C) 2002 Stuart Menefy | ||
12 | * Copyright (C) 2003 Paul Mundt | ||
13 | * | ||
14 | * Defitions of the locations of registers in the physical address space. | ||
15 | */ | ||
16 | |||
17 | #define PHYS_PERIPHERAL_BLOCK 0x09000000 | ||
18 | #define PHYS_DMAC_BLOCK 0x0e000000 | ||
19 | #define PHYS_PCI_BLOCK 0x60000000 | ||
20 | #define PHYS_EMI_BLOCK 0xff000000 | ||
21 | |||
22 | #endif /* __ASM_SH64_HARDWARE_H */ | ||
diff --git a/include/asm-sh64/irq.h b/include/asm-sh64/irq.h deleted file mode 100644 index 5c9e6a873aeb..000000000000 --- a/include/asm-sh64/irq.h +++ /dev/null | |||
@@ -1,144 +0,0 @@ | |||
1 | #ifndef __ASM_SH64_IRQ_H | ||
2 | #define __ASM_SH64_IRQ_H | ||
3 | |||
4 | /* | ||
5 | * This file is subject to the terms and conditions of the GNU General Public | ||
6 | * License. See the file "COPYING" in the main directory of this archive | ||
7 | * for more details. | ||
8 | * | ||
9 | * include/asm-sh64/irq.h | ||
10 | * | ||
11 | * Copyright (C) 2000, 2001 Paolo Alberelli | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | |||
16 | /* | ||
17 | * Encoded IRQs are not considered worth to be supported. | ||
18 | * Main reason is that there's no per-encoded-interrupt | ||
19 | * enable/disable mechanism (as there was in SH3/4). | ||
20 | * An all enabled/all disabled is worth only if there's | ||
21 | * a cascaded IC to disable/enable/ack on. Until such | ||
22 | * IC is available there's no such support. | ||
23 | * | ||
24 | * Presumably Encoded IRQs may use extra IRQs beyond 64, | ||
25 | * below. Some logic must be added to cope with IRQ_IRL? | ||
26 | * in an exclusive way. | ||
27 | * | ||
28 | * Priorities are set at Platform level, when IRQ_IRL0-3 | ||
29 | * are set to 0 Encoding is allowed. Otherwise it's not | ||
30 | * allowed. | ||
31 | */ | ||
32 | |||
33 | /* Independent IRQs */ | ||
34 | #define IRQ_IRL0 0 | ||
35 | #define IRQ_IRL1 1 | ||
36 | #define IRQ_IRL2 2 | ||
37 | #define IRQ_IRL3 3 | ||
38 | |||
39 | #define IRQ_INTA 4 | ||
40 | #define IRQ_INTB 5 | ||
41 | #define IRQ_INTC 6 | ||
42 | #define IRQ_INTD 7 | ||
43 | |||
44 | #define IRQ_SERR 12 | ||
45 | #define IRQ_ERR 13 | ||
46 | #define IRQ_PWR3 14 | ||
47 | #define IRQ_PWR2 15 | ||
48 | #define IRQ_PWR1 16 | ||
49 | #define IRQ_PWR0 17 | ||
50 | |||
51 | #define IRQ_DMTE0 18 | ||
52 | #define IRQ_DMTE1 19 | ||
53 | #define IRQ_DMTE2 20 | ||
54 | #define IRQ_DMTE3 21 | ||
55 | #define IRQ_DAERR 22 | ||
56 | |||
57 | #define IRQ_TUNI0 32 | ||
58 | #define IRQ_TUNI1 33 | ||
59 | #define IRQ_TUNI2 34 | ||
60 | #define IRQ_TICPI2 35 | ||
61 | |||
62 | #define IRQ_ATI 36 | ||
63 | #define IRQ_PRI 37 | ||
64 | #define IRQ_CUI 38 | ||
65 | |||
66 | #define IRQ_ERI 39 | ||
67 | #define IRQ_RXI 40 | ||
68 | #define IRQ_BRI 41 | ||
69 | #define IRQ_TXI 42 | ||
70 | |||
71 | #define IRQ_ITI 63 | ||
72 | |||
73 | #define NR_INTC_IRQS 64 | ||
74 | |||
75 | #ifdef CONFIG_SH_CAYMAN | ||
76 | #define NR_EXT_IRQS 32 | ||
77 | #define START_EXT_IRQS 64 | ||
78 | |||
79 | /* PCI bus 2 uses encoded external interrupts on the Cayman board */ | ||
80 | #define IRQ_P2INTA (START_EXT_IRQS + (3*8) + 0) | ||
81 | #define IRQ_P2INTB (START_EXT_IRQS + (3*8) + 1) | ||
82 | #define IRQ_P2INTC (START_EXT_IRQS + (3*8) + 2) | ||
83 | #define IRQ_P2INTD (START_EXT_IRQS + (3*8) + 3) | ||
84 | |||
85 | #define I8042_KBD_IRQ (START_EXT_IRQS + 2) | ||
86 | #define I8042_AUX_IRQ (START_EXT_IRQS + 6) | ||
87 | |||
88 | #define IRQ_CFCARD (START_EXT_IRQS + 7) | ||
89 | #define IRQ_PCMCIA (0) | ||
90 | |||
91 | #else | ||
92 | #define NR_EXT_IRQS 0 | ||
93 | #endif | ||
94 | |||
95 | #define NR_IRQS (NR_INTC_IRQS+NR_EXT_IRQS) | ||
96 | |||
97 | |||
98 | /* Default IRQs, fixed */ | ||
99 | #define TIMER_IRQ IRQ_TUNI0 | ||
100 | #define RTC_IRQ IRQ_CUI | ||
101 | |||
102 | /* Default Priorities, Platform may choose differently */ | ||
103 | #define NO_PRIORITY 0 /* Disabled */ | ||
104 | #define TIMER_PRIORITY 2 | ||
105 | #define RTC_PRIORITY TIMER_PRIORITY | ||
106 | #define SCIF_PRIORITY 3 | ||
107 | #define INTD_PRIORITY 3 | ||
108 | #define IRL3_PRIORITY 4 | ||
109 | #define INTC_PRIORITY 6 | ||
110 | #define IRL2_PRIORITY 7 | ||
111 | #define INTB_PRIORITY 9 | ||
112 | #define IRL1_PRIORITY 10 | ||
113 | #define INTA_PRIORITY 12 | ||
114 | #define IRL0_PRIORITY 13 | ||
115 | #define TOP_PRIORITY 15 | ||
116 | |||
117 | extern int intc_evt_to_irq[(0xE20/0x20)+1]; | ||
118 | int intc_irq_describe(char* p, int irq); | ||
119 | |||
120 | #define irq_canonicalize(irq) (irq) | ||
121 | |||
122 | #ifdef CONFIG_SH_CAYMAN | ||
123 | int cayman_irq_demux(int evt); | ||
124 | int cayman_irq_describe(char* p, int irq); | ||
125 | #define irq_demux(x) cayman_irq_demux(x) | ||
126 | #define irq_describe(p, x) cayman_irq_describe(p, x) | ||
127 | #else | ||
128 | #define irq_demux(x) (intc_evt_to_irq[x]) | ||
129 | #define irq_describe(p, x) intc_irq_describe(p, x) | ||
130 | #endif | ||
131 | |||
132 | /* | ||
133 | * Function for "on chip support modules". | ||
134 | */ | ||
135 | |||
136 | /* | ||
137 | * SH-5 supports Priority based interrupts only. | ||
138 | * Interrupt priorities are defined at platform level. | ||
139 | */ | ||
140 | #define set_ipr_data(a, b, c, d) | ||
141 | #define make_ipr_irq(a) | ||
142 | #define make_imask_irq(a) | ||
143 | |||
144 | #endif /* __ASM_SH64_IRQ_H */ | ||
diff --git a/include/asm-sh64/keyboard.h b/include/asm-sh64/keyboard.h deleted file mode 100644 index 0b01c3beb2f8..000000000000 --- a/include/asm-sh64/keyboard.h +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | /* | ||
2 | * linux/include/asm-shmedia/keyboard.h | ||
3 | * | ||
4 | * Copied from i386 version: | ||
5 | * Created 3 Nov 1996 by Geert Uytterhoeven | ||
6 | */ | ||
7 | |||
8 | /* | ||
9 | * This file contains the i386 architecture specific keyboard definitions | ||
10 | */ | ||
11 | |||
12 | #ifndef __ASM_SH64_KEYBOARD_H | ||
13 | #define __ASM_SH64_KEYBOARD_H | ||
14 | |||
15 | #ifdef __KERNEL__ | ||
16 | |||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/ioport.h> | ||
19 | #include <asm/io.h> | ||
20 | |||
21 | #ifdef CONFIG_SH_CAYMAN | ||
22 | #define KEYBOARD_IRQ (START_EXT_IRQS + 2) /* SMSC SuperIO IRQ 1 */ | ||
23 | #endif | ||
24 | #define DISABLE_KBD_DURING_INTERRUPTS 0 | ||
25 | |||
26 | extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode); | ||
27 | extern int pckbd_getkeycode(unsigned int scancode); | ||
28 | extern int pckbd_translate(unsigned char scancode, unsigned char *keycode, | ||
29 | char raw_mode); | ||
30 | extern char pckbd_unexpected_up(unsigned char keycode); | ||
31 | extern void pckbd_leds(unsigned char leds); | ||
32 | extern void pckbd_init_hw(void); | ||
33 | |||
34 | #define kbd_setkeycode pckbd_setkeycode | ||
35 | #define kbd_getkeycode pckbd_getkeycode | ||
36 | #define kbd_translate pckbd_translate | ||
37 | #define kbd_unexpected_up pckbd_unexpected_up | ||
38 | #define kbd_leds pckbd_leds | ||
39 | #define kbd_init_hw pckbd_init_hw | ||
40 | |||
41 | /* resource allocation */ | ||
42 | #define kbd_request_region() | ||
43 | #define kbd_request_irq(handler) request_irq(KEYBOARD_IRQ, handler, 0, \ | ||
44 | "keyboard", NULL) | ||
45 | |||
46 | /* How to access the keyboard macros on this platform. */ | ||
47 | #define kbd_read_input() inb(KBD_DATA_REG) | ||
48 | #define kbd_read_status() inb(KBD_STATUS_REG) | ||
49 | #define kbd_write_output(val) outb(val, KBD_DATA_REG) | ||
50 | #define kbd_write_command(val) outb(val, KBD_CNTL_REG) | ||
51 | |||
52 | /* Some stoneage hardware needs delays after some operations. */ | ||
53 | #define kbd_pause() do { } while(0) | ||
54 | |||
55 | /* | ||
56 | * Machine specific bits for the PS/2 driver | ||
57 | */ | ||
58 | |||
59 | #ifdef CONFIG_SH_CAYMAN | ||
60 | #define AUX_IRQ (START_EXT_IRQS + 6) /* SMSC SuperIO IRQ12 */ | ||
61 | #endif | ||
62 | |||
63 | #define aux_request_irq(hand, dev_id) \ | ||
64 | request_irq(AUX_IRQ, hand, IRQF_SHARED, "PS2 Mouse", dev_id) | ||
65 | |||
66 | #define aux_free_irq(dev_id) free_irq(AUX_IRQ, dev_id) | ||
67 | |||
68 | #endif /* __KERNEL__ */ | ||
69 | #endif /* __ASM_SH64_KEYBOARD_H */ | ||
70 | |||
diff --git a/include/asm-sh64/pci.h b/include/asm-sh64/pci.h deleted file mode 100644 index 18055dbbb4b5..000000000000 --- a/include/asm-sh64/pci.h +++ /dev/null | |||
@@ -1,102 +0,0 @@ | |||
1 | #ifndef __ASM_SH64_PCI_H | ||
2 | #define __ASM_SH64_PCI_H | ||
3 | |||
4 | #ifdef __KERNEL__ | ||
5 | |||
6 | #include <linux/dma-mapping.h> | ||
7 | |||
8 | /* Can be used to override the logic in pci_scan_bus for skipping | ||
9 | already-configured bus numbers - to be used for buggy BIOSes | ||
10 | or architectures with incomplete PCI setup by the loader */ | ||
11 | |||
12 | #define pcibios_assign_all_busses() 1 | ||
13 | |||
14 | /* | ||
15 | * These are currently the correct values for the STM overdrive board | ||
16 | * We need some way of setting this on a board specific way, it will | ||
17 | * not be the same on other boards I think | ||
18 | */ | ||
19 | #if defined(CONFIG_CPU_SUBTYPE_SH5_101) || defined(CONFIG_CPU_SUBTYPE_SH5_103) | ||
20 | #define PCIBIOS_MIN_IO 0x2000 | ||
21 | #define PCIBIOS_MIN_MEM 0x40000000 | ||
22 | #endif | ||
23 | |||
24 | extern void pcibios_set_master(struct pci_dev *dev); | ||
25 | |||
26 | /* | ||
27 | * Set penalize isa irq function | ||
28 | */ | ||
29 | static inline void pcibios_penalize_isa_irq(int irq, int active) | ||
30 | { | ||
31 | /* We don't do dynamic PCI IRQ allocation */ | ||
32 | } | ||
33 | |||
34 | /* Dynamic DMA mapping stuff. | ||
35 | * SuperH has everything mapped statically like x86. | ||
36 | */ | ||
37 | |||
38 | /* The PCI address space does equal the physical memory | ||
39 | * address space. The networking and block device layers use | ||
40 | * this boolean for bounce buffer decisions. | ||
41 | */ | ||
42 | #define PCI_DMA_BUS_IS_PHYS (1) | ||
43 | |||
44 | #include <linux/types.h> | ||
45 | #include <linux/slab.h> | ||
46 | #include <asm/scatterlist.h> | ||
47 | #include <linux/string.h> | ||
48 | #include <asm/io.h> | ||
49 | |||
50 | /* pci_unmap_{single,page} being a nop depends upon the | ||
51 | * configuration. | ||
52 | */ | ||
53 | #ifdef CONFIG_SH_PCIDMA_NONCOHERENT | ||
54 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \ | ||
55 | dma_addr_t ADDR_NAME; | ||
56 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \ | ||
57 | __u32 LEN_NAME; | ||
58 | #define pci_unmap_addr(PTR, ADDR_NAME) \ | ||
59 | ((PTR)->ADDR_NAME) | ||
60 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) \ | ||
61 | (((PTR)->ADDR_NAME) = (VAL)) | ||
62 | #define pci_unmap_len(PTR, LEN_NAME) \ | ||
63 | ((PTR)->LEN_NAME) | ||
64 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) \ | ||
65 | (((PTR)->LEN_NAME) = (VAL)) | ||
66 | #else | ||
67 | #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) | ||
68 | #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) | ||
69 | #define pci_unmap_addr(PTR, ADDR_NAME) (0) | ||
70 | #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0) | ||
71 | #define pci_unmap_len(PTR, LEN_NAME) (0) | ||
72 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) | ||
73 | #endif | ||
74 | |||
75 | #ifdef CONFIG_PCI | ||
76 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | ||
77 | enum pci_dma_burst_strategy *strat, | ||
78 | unsigned long *strategy_parameter) | ||
79 | { | ||
80 | *strat = PCI_DMA_BURST_INFINITY; | ||
81 | *strategy_parameter = ~0UL; | ||
82 | } | ||
83 | #endif | ||
84 | |||
85 | /* Board-specific fixup routines. */ | ||
86 | extern void pcibios_fixup(void); | ||
87 | extern void pcibios_fixup_irqs(void); | ||
88 | |||
89 | #ifdef CONFIG_PCI_AUTO | ||
90 | extern int pciauto_assign_resources(int busno, struct pci_channel *hose); | ||
91 | #endif | ||
92 | |||
93 | #endif /* __KERNEL__ */ | ||
94 | |||
95 | /* generic pci stuff */ | ||
96 | #include <asm-generic/pci.h> | ||
97 | |||
98 | /* generic DMA-mapping stuff */ | ||
99 | #include <asm-generic/pci-dma-compat.h> | ||
100 | |||
101 | #endif /* __ASM_SH64_PCI_H */ | ||
102 | |||
diff --git a/include/asm-sh64/platform.h b/include/asm-sh64/platform.h deleted file mode 100644 index bd0d9c405a80..000000000000 --- a/include/asm-sh64/platform.h +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | #ifndef __ASM_SH64_PLATFORM_H | ||
2 | #define __ASM_SH64_PLATFORM_H | ||
3 | |||
4 | /* | ||
5 | * This file is subject to the terms and conditions of the GNU General Public | ||
6 | * License. See the file "COPYING" in the main directory of this archive | ||
7 | * for more details. | ||
8 | * | ||
9 | * include/asm-sh64/platform.h | ||
10 | * | ||
11 | * Copyright (C) 2000, 2001 Paolo Alberelli | ||
12 | * | ||
13 | * benedict.gaster@superh.com: 3rd May 2002 | ||
14 | * Added support for ramdisk, removing statically linked romfs at the same time. | ||
15 | */ | ||
16 | |||
17 | #include <linux/ioport.h> | ||
18 | #include <asm/irq.h> | ||
19 | |||
20 | |||
21 | /* | ||
22 | * Platform definition structure. | ||
23 | */ | ||
24 | struct sh64_platform { | ||
25 | unsigned int readonly_rootfs; | ||
26 | unsigned int ramdisk_flags; | ||
27 | unsigned int initial_root_dev; | ||
28 | unsigned int loader_type; | ||
29 | unsigned int initrd_start; | ||
30 | unsigned int initrd_size; | ||
31 | unsigned int fpu_flags; | ||
32 | unsigned int io_res_count; | ||
33 | unsigned int kram_res_count; | ||
34 | unsigned int xram_res_count; | ||
35 | unsigned int rom_res_count; | ||
36 | struct resource *io_res_p; | ||
37 | struct resource *kram_res_p; | ||
38 | struct resource *xram_res_p; | ||
39 | struct resource *rom_res_p; | ||
40 | }; | ||
41 | |||
42 | extern struct sh64_platform platform_parms; | ||
43 | |||
44 | extern unsigned long long memory_start, memory_end; | ||
45 | |||
46 | extern unsigned long long fpu_in_use; | ||
47 | |||
48 | extern int platform_int_priority[NR_INTC_IRQS]; | ||
49 | |||
50 | #define FPU_FLAGS (platform_parms.fpu_flags) | ||
51 | #define STANDARD_IO_RESOURCES (platform_parms.io_res_count) | ||
52 | #define STANDARD_KRAM_RESOURCES (platform_parms.kram_res_count) | ||
53 | #define STANDARD_XRAM_RESOURCES (platform_parms.xram_res_count) | ||
54 | #define STANDARD_ROM_RESOURCES (platform_parms.rom_res_count) | ||
55 | |||
56 | /* | ||
57 | * Kernel Memory description, Respectively: | ||
58 | * code = last but one memory descriptor | ||
59 | * data = last memory descriptor | ||
60 | */ | ||
61 | #define code_resource (platform_parms.kram_res_p[STANDARD_KRAM_RESOURCES - 2]) | ||
62 | #define data_resource (platform_parms.kram_res_p[STANDARD_KRAM_RESOURCES - 1]) | ||
63 | |||
64 | #endif /* __ASM_SH64_PLATFORM_H */ | ||
diff --git a/include/asm-sh64/thread_info.h b/include/asm-sh64/thread_info.h deleted file mode 100644 index f6d5117c53af..000000000000 --- a/include/asm-sh64/thread_info.h +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | #ifndef __ASM_SH64_THREAD_INFO_H | ||
2 | #define __ASM_SH64_THREAD_INFO_H | ||
3 | |||
4 | /* | ||
5 | * SuperH 5 version | ||
6 | * Copyright (C) 2003 Paul Mundt | ||
7 | */ | ||
8 | |||
9 | #ifdef __KERNEL__ | ||
10 | |||
11 | #ifndef __ASSEMBLY__ | ||
12 | #include <asm/registers.h> | ||
13 | |||
14 | /* | ||
15 | * low level task data that entry.S needs immediate access to | ||
16 | * - this struct should fit entirely inside of one cache line | ||
17 | * - this struct shares the supervisor stack pages | ||
18 | * - if the contents of this structure are changed, the assembly constants must also be changed | ||
19 | */ | ||
20 | struct thread_info { | ||
21 | struct task_struct *task; /* main task structure */ | ||
22 | struct exec_domain *exec_domain; /* execution domain */ | ||
23 | unsigned long flags; /* low level flags */ | ||
24 | /* Put the 4 32-bit fields together to make asm offsetting easier. */ | ||
25 | int preempt_count; /* 0 => preemptable, <0 => BUG */ | ||
26 | __u16 cpu; | ||
27 | |||
28 | mm_segment_t addr_limit; | ||
29 | struct restart_block restart_block; | ||
30 | |||
31 | __u8 supervisor_stack[0]; | ||
32 | }; | ||
33 | |||
34 | /* | ||
35 | * macros/functions for gaining access to the thread information structure | ||
36 | */ | ||
37 | #define INIT_THREAD_INFO(tsk) \ | ||
38 | { \ | ||
39 | .task = &tsk, \ | ||
40 | .exec_domain = &default_exec_domain, \ | ||
41 | .flags = 0, \ | ||
42 | .cpu = 0, \ | ||
43 | .preempt_count = 1, \ | ||
44 | .addr_limit = KERNEL_DS, \ | ||
45 | .restart_block = { \ | ||
46 | .fn = do_no_restart_syscall, \ | ||
47 | }, \ | ||
48 | } | ||
49 | |||
50 | #define init_thread_info (init_thread_union.thread_info) | ||
51 | #define init_stack (init_thread_union.stack) | ||
52 | |||
53 | /* how to get the thread information struct from C */ | ||
54 | static inline struct thread_info *current_thread_info(void) | ||
55 | { | ||
56 | struct thread_info *ti; | ||
57 | |||
58 | __asm__ __volatile__ ("getcon " __KCR0 ", %0\n\t" : "=r" (ti)); | ||
59 | |||
60 | return ti; | ||
61 | } | ||
62 | |||
63 | /* thread information allocation */ | ||
64 | |||
65 | |||
66 | |||
67 | #define alloc_thread_info(ti) ((struct thread_info *) __get_free_pages(GFP_KERNEL,1)) | ||
68 | #define free_thread_info(ti) free_pages((unsigned long) (ti), 1) | ||
69 | |||
70 | #endif /* __ASSEMBLY__ */ | ||
71 | |||
72 | #define THREAD_SIZE 8192 | ||
73 | |||
74 | #define PREEMPT_ACTIVE 0x10000000 | ||
75 | |||
76 | /* thread information flags */ | ||
77 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | ||
78 | #define TIF_SIGPENDING 2 /* signal pending */ | ||
79 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | ||
80 | #define TIF_MEMDIE 4 | ||
81 | #define TIF_RESTORE_SIGMASK 5 /* Restore signal mask in do_signal */ | ||
82 | |||
83 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) | ||
84 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) | ||
85 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) | ||
86 | #define _TIF_MEMDIE (1 << TIF_MEMDIE) | ||
87 | #define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK) | ||
88 | |||
89 | #endif /* __KERNEL__ */ | ||
90 | |||
91 | #endif /* __ASM_SH64_THREAD_INFO_H */ | ||