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
36 struct screen_info screen_info = {
37 0, 0,
38 0, 0,
39 0,
40 0,
41 80,
42 0,0,0,
43 25
44 };
45
46 unsigned long bios32_init(unsigned long memory_start, unsigned long memory_end)
47 {
48 return memory_start;
49 }
50
51 static unsigned long find_end_memory(void)
52 {
53 int i;
54 unsigned long high = 0;
55 struct memclust_struct * cluster;
56 struct memdesc_struct * memdesc;
57
58 memdesc = (struct memdesc_struct *) (INIT_HWRPB->mddt_offset + (unsigned long) INIT_HWRPB);
59 cluster = memdesc->cluster;
60 for (i = memdesc->numclusters ; i > 0; i--, cluster++) {
61 unsigned long tmp;
62 tmp = (cluster->start_pfn + cluster->numpages) << PAGE_SHIFT;
63 if (tmp > high)
64 high = tmp;
65 }
66
67 high = (high + PAGE_SIZE) & (PAGE_MASK*2);
68 return PAGE_OFFSET + high;
69 }
70
71 void setup_arch(char **cmdline_p,
72 unsigned long * memory_start_p, unsigned long * memory_end_p)
73 {
74 static char cmdline[] = "";
75 extern int _end;
76
77 aux_device_present = 0xaa;
78 *cmdline_p = cmdline;
79 *memory_start_p = (unsigned long) &_end;
80 *memory_end_p = find_end_memory();
81 }
82
83 asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int on)
84 {
85 return -EIO;
86 }