- Timestamp:
- 2012-02-14T22:06:15Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a31aad1
- Parents:
- 199112e4 (diff), e10d41a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- kernel/arch
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/src/abs32le.c
r199112e4 rcfb79747 49 49 #include <syscall/syscall.h> 50 50 #include <console/console.h> 51 #include <sysinfo/sysinfo.h>52 51 #include <memstr.h> 53 52 -
kernel/arch/amd64/include/interrupt.h
r199112e4 rcfb79747 55 55 #define IRQ_PIC_SPUR 7 56 56 #define IRQ_MOUSE 12 57 #define IRQ_NE2000 958 57 59 58 /* This one must have four least significant bits set to ones */ -
kernel/arch/amd64/src/amd64.c
r199112e4 rcfb79747 214 214 } 215 215 } 216 217 /*218 * This is the necessary evil until the userspace driver is entirely219 * self-sufficient.220 */221 sysinfo_set_item_val("i8042", NULL, true);222 sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD);223 sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE);224 sysinfo_set_item_val("i8042.address.physical", NULL,225 (uintptr_t) I8042_BASE);226 sysinfo_set_item_val("i8042.address.kernel", NULL,227 (uintptr_t) I8042_BASE);228 216 #endif 229 217 230 218 if (irqs_info != NULL) 231 219 sysinfo_set_item_val(irqs_info, NULL, true); 232 233 sysinfo_set_item_val("netif.ne2000.inr", NULL, IRQ_NE2000);234 220 } 235 221 -
kernel/arch/arm32/src/arm32.c
r199112e4 rcfb79747 38 38 #include <genarch/fb/fb.h> 39 39 #include <abi/fb/visuals.h> 40 #include <sysinfo/sysinfo.h>41 40 #include <console/console.h> 42 41 #include <ddi/irq.h> -
kernel/arch/ia32/include/interrupt.h
r199112e4 rcfb79747 55 55 #define IRQ_PIC_SPUR 7 56 56 #define IRQ_MOUSE 12 57 #define IRQ_NE2000 558 57 59 58 /* This one must have four least significant bits set to ones */ -
kernel/arch/ia32/src/ia32.c
r199112e4 rcfb79747 168 168 } 169 169 } 170 171 /*172 * This is the necessary evil until the userspace driver is entirely173 * self-sufficient.174 */175 sysinfo_set_item_val("i8042", NULL, true);176 sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD);177 sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE);178 sysinfo_set_item_val("i8042.address.physical", NULL,179 (uintptr_t) I8042_BASE);180 sysinfo_set_item_val("i8042.address.kernel", NULL,181 (uintptr_t) I8042_BASE);182 170 #endif 183 171 184 172 if (irqs_info != NULL) 185 173 sysinfo_set_item_val(irqs_info, NULL, true); 186 187 sysinfo_set_item_val("netif.ne2000.inr", NULL, IRQ_NE2000);188 174 } 189 175 -
kernel/arch/ia32/src/mm/frame.c
r199112e4 rcfb79747 46 46 #include <print.h> 47 47 48 #define PHYSMEM_LIMIT32 UINT64_C(0x100000000) 49 48 50 size_t hardcoded_unmapped_ktext_size = 0; 49 51 size_t hardcoded_unmapped_kdata_size = 0; … … 56 58 uint64_t base64 = e820table[i].base_address; 57 59 uint64_t size64 = e820table[i].size; 58 60 59 61 #ifdef KARCH_ia32 60 62 /* 61 63 * Restrict the e820 table entries to 32-bits. 62 64 */ 63 if (base64 >= 0x100000000ULL)65 if (base64 >= PHYSMEM_LIMIT32) 64 66 continue; 65 if (base64 + size64 > 0x100000000ULL) 66 size64 -= base64 + size64 - 0x100000000ULL; 67 68 if (base64 + size64 > PHYSMEM_LIMIT32) 69 size64 = PHYSMEM_LIMIT32 - base64; 67 70 #endif 68 71 69 72 uintptr_t base = (uintptr_t) base64; 70 73 size_t size = (size_t) size64; -
kernel/arch/ia64/include/interrupt.h
r199112e4 rcfb79747 61 61 #define IRQ_KBD (0x01 + LEGACY_INTERRUPT_BASE) 62 62 #define IRQ_MOUSE (0x0c + LEGACY_INTERRUPT_BASE) 63 #define IRQ_NE2000 (0x09 + LEGACY_INTERRUPT_BASE)64 63 65 64 /** General Exception codes. */ -
kernel/arch/ia64/src/ia64.c
r199112e4 rcfb79747 127 127 } 128 128 129 void arch_post_cpu_init(void){ 129 void arch_post_cpu_init(void) 130 { 130 131 } 131 132 … … 192 193 193 194 #ifdef CONFIG_I8042 194 i8042_instance_t *i8042_instance = i8042_init((i8042_t *) I8042_BASE, IRQ_KBD); 195 i8042_instance_t *i8042_instance = i8042_init((i8042_t *) I8042_BASE, 196 IRQ_KBD); 195 197 if (i8042_instance) { 196 198 kbrd_instance_t *kbrd_instance = kbrd_init(); … … 201 203 } 202 204 } 203 204 sysinfo_set_item_val("i8042", NULL, true); 205 sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD); 206 sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE); 207 sysinfo_set_item_val("i8042.address.physical", NULL, 208 (uintptr_t) I8042_BASE); 209 sysinfo_set_item_val("i8042.address.kernel", NULL, 210 (uintptr_t) I8042_BASE); 211 #endif 212 213 sysinfo_set_item_val("netif.ne2000.inr", NULL, IRQ_NE2000); 214 205 #endif 206 215 207 sysinfo_set_item_val("ia64_iospace", NULL, true); 216 208 sysinfo_set_item_val("ia64_iospace.address", NULL, true);
Note:
See TracChangeset
for help on using the changeset viewer.