This source file includes following definitions.
- bios32_init
- sparc_console_print
- 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/io.h>
27 #include <asm/openprom.h>
28
29 extern void get_idprom(void);
30 extern void probe_devices(void);
31
32
33
34
35 struct screen_info screen_info = {
36 0, 0,
37 { 0, 0, },
38 0,
39 0,
40 80,
41 0,0,0,
42 25
43 };
44
45
46
47
48
49 unsigned long bios32_init(unsigned long memory_start, unsigned long memory_end)
50 {
51 return memory_start;
52 }
53
54
55
56
57
58 void sparc_console_print(const char * p)
59 {
60 unsigned char c;
61
62 while ((c = *(p++)) != 0)
63 {
64 if (c == '\n') romvec->pv_putchar('\r');
65 (*(romvec->pv_putchar))(c);
66 }
67
68 return;
69
70 }
71
72
73
74
75
76
77
78 extern void register_console(void (*proc)(const char *));
79
80 void setup_arch(char **cmdline_p,
81 unsigned long * memory_start_p, unsigned long * memory_end_p)
82 {
83 extern int _end;
84
85 register_console(sparc_console_print);
86
87 printk("Sparc PROM-Console registered...\n");
88
89 printk("calling get_idprom...\n");
90 get_idprom();
91
92 printk("calling probe_devices...\n");
93 probe_devices();
94
95 swpipl(13);
96
97 *memory_start_p = (((unsigned long) &end));
98 }
99
100 asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int on)
101 {
102 return -EIO;
103 }