Rev 1078 | Rev 1168 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1078 | Rev 1121 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | #include <mm/as.h> |
40 | #include <mm/as.h> |
41 | #include <config.h> |
41 | #include <config.h> |
42 | #include <userspace.h> |
42 | #include <userspace.h> |
43 | #include <console/console.h> |
43 | #include <console/console.h> |
44 | #include <proc/uarg.h> |
44 | #include <proc/uarg.h> |
- | 45 | #include <syscall/syscall.h> |
|
45 | 46 | ||
46 | void arch_pre_mm_init(void) |
47 | void arch_pre_mm_init(void) |
47 | { |
48 | { |
48 | /* Set Interruption Vector Address (i.e. location of interruption vector table). */ |
49 | /* Set Interruption Vector Address (i.e. location of interruption vector table). */ |
49 | iva_write((__address) &ivt); |
50 | iva_write((__address) &ivt); |
Line 99... | Line 100... | ||
99 | 100 | ||
100 | while (1) { |
101 | while (1) { |
101 | ; |
102 | ; |
102 | } |
103 | } |
103 | } |
104 | } |
- | 105 | ||
- | 106 | /** Set thread-local-storage pointer. |
|
- | 107 | * |
|
- | 108 | * We use r13 (a.k.a. tp) for this purpose. |
|
- | 109 | */ |
|
- | 110 | __native sys_tls_set(__native addr) |
|
- | 111 | { |
|
- | 112 | return 0; |
|
- | 113 | } |