This source file includes following definitions.
- bios32_init
- find_end_memory
- setup_arch
- sys_ioperm
1
2
3
4
5
6
7
8
9
10
11 #include <linux/errno.h>
12 #include <linux/sched.h>
13 #include <linux/kernel.h>
14 #include <linux/mm.h>
15 #include <linux/stddef.h>
16 #include <linux/unistd.h>
17 #include <linux/ptrace.h>
18 #include <linux/malloc.h>
19 #include <linux/ldt.h>
20 #include <linux/user.h>
21 #include <linux/a.out.h>
22 #include <linux/tty.h>
23
24 #include <asm/segment.h>
25 #include <asm/system.h>
26 #include <asm/hwrpb.h>
27 #include <asm/io.h>
28
29 unsigned char aux_device_present;
30
31
32
33
34
35 unsigned char floppy_track_buffer[256];
36
37
38
39
40
41
42 struct screen_info screen_info = {
43 0, 0,
44 0, 0,
45 0,
46 0,
47 80,
48 0,0,0,
49 25
50 };
51
52 unsigned long bios32_init(unsigned long memory_start, unsigned long memory_end)
53 {
54 return memory_start;
55 }
56
57 static unsigned long find_end_memory(void)
58 {
59 int i;
60 unsigned long high = 0;
61 struct memclust_struct * cluster;
62 struct memdesc_struct * memdesc;
63
64 memdesc = (struct memdesc_struct *) (INIT_HWRPB->mddt_offset + (unsigned long) INIT_HWRPB);
65 cluster = memdesc->cluster;
66 for (i = memdesc->numclusters ; i > 0; i--, cluster++) {
67 unsigned long tmp;
68 tmp = (cluster->start_pfn + cluster->numpages) << PAGE_SHIFT;
69 if (tmp > high)
70 high = tmp;
71 }
72
73 high = (high + PAGE_SIZE) & (PAGE_MASK*2);
74 return PAGE_OFFSET + high;
75 }
76
77 void setup_arch(char **cmdline_p,
78 unsigned long * memory_start_p, unsigned long * memory_end_p)
79 {
80 static char cmdline[] = "";
81 extern int _end;
82
83 aux_device_present = 0xaa;
84 *cmdline_p = cmdline;
85 *memory_start_p = (unsigned long) &_end;
86 *memory_end_p = find_end_memory();
87 }
88
89 asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int on)
90 {
91 return -EIO;
92 }