1
2
3
4
5
6
7
8
9
10 #include <linux/autoconf.h>
11 #include <linux/kernel.h>
12 #include <linux/fs.h>
13 #include <linux/blkdev.h>
14 #include <linux/sched.h>
15 #include <linux/mm.h>
16 #include <linux/malloc.h>
17 #include <linux/ptrace.h>
18 #include <linux/sys.h>
19 #include <linux/utsname.h>
20 #include <linux/interrupt.h>
21 #include <linux/ioport.h>
22 #include <linux/timer.h>
23 #include <linux/binfmts.h>
24 #include <linux/personality.h>
25 #include <linux/module.h>
26 #include <linux/termios.h>
27 #include <linux/tqueue.h>
28 #include <linux/serial.h>
29 #ifdef CONFIG_INET
30 #include <linux/netdevice.h>
31 #endif
32
33 #include <asm/irq.h>
34
35 extern void *sys_call_table;
36
37
38 #define X(name) { (void *) &name, "_" #name }
39
40 #ifdef CONFIG_FTAPE
41 extern char * ftape_big_buffer;
42 extern void (*do_floppy)(void);
43 #endif
44
45 extern int request_dma(unsigned int dmanr, char * deviceID);
46 extern void free_dma(unsigned int dmanr);
47
48 extern int do_execve(char * filename, char ** argv, char ** envp,
49 struct pt_regs * regs);
50 extern int do_signal(unsigned long oldmask, struct pt_regs * regs);
51
52 extern void (* iABI_hook)(struct pt_regs * regs);
53
54 struct symbol_table symbol_table = { 0, 0, 0,
55 {
56
57 X(rename_module_symbol),
58
59
60 X(EISA_bus),
61 X(wp_works_ok),
62
63
64 X(verify_area),
65 X(do_mmap),
66 X(do_munmap),
67 X(zeromap_page_range),
68 X(unmap_page_range),
69 X(insert_vm_struct),
70 X(merge_segments),
71
72
73 X(__get_free_pages),
74 X(free_pages),
75 X(kmalloc),
76 X(kfree_s),
77 X(vmalloc),
78 X(vfree),
79
80
81 X(getname),
82 X(putname),
83 X(__iget),
84 X(iput),
85 X(namei),
86 X(lnamei),
87 X(open_namei),
88
89
90 X(register_chrdev),
91 X(unregister_chrdev),
92 X(register_blkdev),
93 X(unregister_blkdev),
94
95
96 X(block_read),
97 X(block_write),
98 X(block_fsync),
99 X(wait_for_request),
100 X(blksize_size),
101 X(blk_dev),
102
103
104 X(register_serial),
105 X(unregister_serial),
106
107
108 X(register_filesystem),
109 X(unregister_filesystem),
110
111
112 X(register_binfmt),
113 X(unregister_binfmt),
114
115
116 X(lookup_exec_domain),
117 X(register_exec_domain),
118 X(unregister_exec_domain),
119
120
121 X(request_irq),
122 X(free_irq),
123 X(enable_irq),
124 X(disable_irq),
125 X(bh_active),
126 X(bh_mask),
127 X(add_timer),
128 X(del_timer),
129
130
131 X(request_dma),
132 X(free_dma),
133
134
135 X(wake_up),
136 X(wake_up_interruptible),
137 X(sleep_on),
138 X(interruptible_sleep_on),
139 X(schedule),
140 X(current),
141 X(jiffies),
142 X(xtime),
143
144
145 X(panic),
146 X(printk),
147 X(sprintf),
148 X(vsprintf),
149 X(system_utsname),
150 X(sys_call_table),
151
152
153 X(do_signal),
154 X(send_sig),
155
156
157 X(change_ldt),
158 X(copy_strings),
159 X(create_tables),
160 X(do_execve),
161 X(flush_old_exec),
162 X(open_inode),
163 X(read_exec),
164
165
166 X(si_meminfo),
167
168 #ifdef CONFIG_FTAPE
169
170 X(ftape_big_buffer),
171 X(do_floppy),
172 #endif
173 #ifdef CONFIG_INET
174
175 X(register_netdev),
176 X(unregister_netdev),
177 X(ether_setup),
178 X(alloc_skb),
179 X(kfree_skb),
180 X(dev_kfree_skb),
181 X(snarf_region),
182 X(netif_rx),
183 X(dev_rint),
184 X(dev_tint),
185 X(irq2dev_map),
186 #endif
187
188
189
190
191
192 { NULL, NULL }
193 },
194 { { NULL, NULL } }
195 };
196
197
198
199