Changeset 7aaed09 in mainline for kernel/arch
- Timestamp:
- 2011-12-18T14:02:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c868e2d
- Parents:
- 3b71e84d (diff), 1761268 (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:
-
- 2 added
- 18 edited
- 2 moved
-
abs32le/src/abs32le.c (modified) (1 diff)
-
amd64/Makefile.inc (modified) (2 diffs)
-
amd64/include/arch.h (modified) (1 diff)
-
amd64/include/boot/boot.h (modified) (1 diff)
-
amd64/src/amd64.c (modified) (4 diffs)
-
amd64/src/boot/memmap.c (modified) (1 diff)
-
amd64/src/boot/multiboot.S (moved) (moved from kernel/arch/amd64/src/boot/boot.S ) (6 diffs)
-
amd64/src/boot/multiboot2.S (added)
-
ia32/Makefile.inc (modified) (1 diff)
-
ia32/include/arch.h (modified) (1 diff)
-
ia32/include/boot/boot.h (modified) (1 diff)
-
ia32/src/boot/memmap.c (modified) (1 diff)
-
ia32/src/boot/multiboot.S (moved) (moved from kernel/arch/ia32/src/boot/boot.S ) (8 diffs)
-
ia32/src/boot/multiboot2.S (added)
-
ia32/src/boot/vesa_prot.inc (modified) (3 diffs)
-
ia32/src/boot/vesa_real.inc (modified) (4 diffs)
-
ia32/src/ia32.c (modified) (4 diffs)
-
ia64/include/asm.h (modified) (1 diff)
-
ia64/src/ia64.c (modified) (3 diffs)
-
ia64/src/start.S (modified) (2 diffs)
-
mips32/src/mips32.c (modified) (2 diffs)
-
mips64/src/mips64.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/src/abs32le.c
r3b71e84d r7aaed09 86 86 } 87 87 88 sysarg_t sys_tls_set( sysarg_t addr)88 sysarg_t sys_tls_set(uintptr_t addr) 89 89 { 90 90 return EOK; -
kernel/arch/amd64/Makefile.inc
r3b71e84d r7aaed09 72 72 ARCH_SOURCES = \ 73 73 arch/$(KARCH)/src/fpu_context.c \ 74 arch/$(KARCH)/src/boot/boot.S \ 74 arch/$(KARCH)/src/boot/multiboot.S \ 75 arch/$(KARCH)/src/boot/multiboot2.S \ 75 76 arch/$(KARCH)/src/boot/memmap.c \ 76 77 arch/$(KARCH)/src/debug/stacktrace.c \ … … 79 80 arch/$(KARCH)/src/context.S \ 80 81 arch/$(KARCH)/src/ddi/ddi.c \ 81 arch/$(KARCH)/src/drivers/vesa.c \82 82 arch/$(KARCH)/src/drivers/i8254.c \ 83 83 arch/$(KARCH)/src/drivers/i8259.c \ -
kernel/arch/amd64/include/arch.h
r3b71e84d r7aaed09 38 38 #include <genarch/multiboot/multiboot.h> 39 39 40 extern void arch_pre_main(uint32_t, const multiboot_info_t*);40 extern void arch_pre_main(uint32_t, void *); 41 41 42 42 #endif -
kernel/arch/amd64/include/boot/boot.h
r3b71e84d r7aaed09 40 40 #define BOOT_STACK_SIZE 0x000400 41 41 42 #define MULTIBOOT_HEADER_MAGIC 0x1BADB00243 #define MULTIBOOT_HEADER_FLAGS 0x0001000344 45 42 #ifndef __ASM__ 46 43 -
kernel/arch/amd64/src/amd64.c
r3b71e84d r7aaed09 34 34 35 35 #include <arch.h> 36 37 36 #include <typedefs.h> 38 39 #include <config.h> 40 41 #include <proc/thread.h> 42 #include <genarch/multiboot/multiboot.h> 43 #include <genarch/drivers/legacy/ia32/io.h> 44 #include <genarch/drivers/ega/ega.h> 45 #include <arch/drivers/vesa.h> 46 #include <genarch/drivers/i8042/i8042.h> 47 #include <genarch/kbrd/kbrd.h> 37 #include <errno.h> 38 #include <memstr.h> 39 #include <interrupt.h> 40 #include <console/console.h> 41 #include <syscall/syscall.h> 42 #include <sysinfo/sysinfo.h> 43 #include <arch/bios/bios.h> 44 #include <arch/boot/boot.h> 45 #include <arch/debugger.h> 48 46 #include <arch/drivers/i8254.h> 49 47 #include <arch/drivers/i8259.h> 50 #include <arch/boot/boot.h> 48 #include <arch/syscall.h> 49 #include <genarch/acpi/acpi.h> 50 #include <genarch/drivers/ega/ega.h> 51 #include <genarch/drivers/i8042/i8042.h> 52 #include <genarch/drivers/legacy/ia32/io.h> 53 #include <genarch/fb/bfb.h> 54 #include <genarch/kbrd/kbrd.h> 55 #include <genarch/multiboot/multiboot.h> 56 #include <genarch/multiboot/multiboot2.h> 51 57 52 58 #ifdef CONFIG_SMP 53 59 #include <arch/smp/apic.h> 54 60 #endif 55 56 #include <arch/bios/bios.h>57 #include <arch/cpu.h>58 #include <print.h>59 #include <arch/cpuid.h>60 #include <genarch/acpi/acpi.h>61 #include <panic.h>62 #include <interrupt.h>63 #include <arch/syscall.h>64 #include <arch/debugger.h>65 #include <syscall/syscall.h>66 #include <console/console.h>67 #include <ddi/irq.h>68 #include <sysinfo/sysinfo.h>69 #include <memstr.h>70 61 71 62 /** Disable I/O on non-privileged levels … … 101 92 /** Perform amd64-specific initialization before main_bsp() is called. 102 93 * 103 * @param signature Should contain the multiboot signature. 104 * @param mi Pointer to the multiboot information structure. 105 */ 106 void arch_pre_main(uint32_t signature, const multiboot_info_t *mi) 94 * @param signature Multiboot signature. 95 * @param info Multiboot information structure. 96 * 97 */ 98 void arch_pre_main(uint32_t signature, void *info) 107 99 { 108 100 /* Parse multiboot information obtained from the bootloader. */ 109 multiboot_info_parse(signature, mi); 101 multiboot_info_parse(signature, (multiboot_info_t *) info); 102 multiboot2_info_parse(signature, (multiboot2_info_t *) info); 110 103 111 104 #ifdef CONFIG_SMP … … 153 146 154 147 #if (defined(CONFIG_FB) || defined(CONFIG_EGA)) 155 bool vesa= false;148 bool bfb = false; 156 149 #endif 157 150 158 151 #ifdef CONFIG_FB 159 vesa = vesa_init();152 bfb = bfb_init(); 160 153 #endif 161 154 162 155 #ifdef CONFIG_EGA 163 if (! vesa) {156 if (!bfb) { 164 157 outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM); 165 158 if (egadev) … … 261 254 * we need not to go to CPL0 to read it. 262 255 */ 263 sysarg_t sys_tls_set( sysarg_t addr)256 sysarg_t sys_tls_set(uintptr_t addr) 264 257 { 265 258 THREAD->arch.tls = addr; 266 259 write_msr(AMD_MSR_FS, addr); 267 260 268 return 0;261 return EOK; 269 262 } 270 263 -
kernel/arch/amd64/src/boot/memmap.c
r3b71e84d r7aaed09 35 35 #include <arch/boot/memmap.h> 36 36 37 uint8_t e820counter = 0 xffU;37 uint8_t e820counter = 0; 38 38 e820memmap_t e820table[MEMMAP_E820_MAX_RECORDS]; 39 39 -
kernel/arch/amd64/src/boot/multiboot.S
r3b71e84d r7aaed09 30 30 31 31 #include <arch/boot/boot.h> 32 #include <arch/boot/memmap.h>33 32 #include <arch/mm/page.h> 34 33 #include <arch/mm/ptl.h> 35 34 #include <arch/pm.h> 35 #include <genarch/multiboot/multiboot.h> 36 #include <arch/cpuid.h> 36 37 #include <arch/cpu.h> 37 #include <arch/cpuid.h>38 38 39 39 #define START_STACK (BOOT_OFFSET - BOOT_STACK_SIZE) … … 101 101 multiboot_meeting_point: 102 102 103 /* Save GRUB arguments */ 104 movl %eax, grub_eax 105 movl %ebx, grub_ebx 103 /* 104 * Protected 32-bit. We want to reuse the code-seg descriptor, 105 * the Default operand size must not be 1 when entering long mode. 106 */ 107 108 /* Save multiboot arguments */ 109 movl %eax, multiboot_eax 110 movl %ebx, multiboot_ebx 106 111 107 112 pm_status $status_prot … … 149 154 150 155 #include "vesa_prot.inc" 151 152 /*153 * Protected 32-bit. We want to reuse the code-seg descriptor,154 * the Default operand size must not be 1 when entering long mode.155 */156 156 157 157 pm2_status $status_prot2 … … 422 422 long_status $status_long 423 423 424 /* Call arch_pre_main( grub_eax, grub_ebx) */424 /* Call arch_pre_main(multiboot_eax, multiboot_ebx) */ 425 425 xorq %rdi, %rdi 426 movl grub_eax, %edi426 movl multiboot_eax, %edi 427 427 xorq %rsi, %rsi 428 movl grub_ebx, %esi428 movl multiboot_ebx, %esi 429 429 430 430 movabsq $arch_pre_main, %rax … … 645 645 .section K_DATA_START, "aw", @progbits 646 646 647 .global bootstrap_gdtr 647 648 bootstrap_gdtr: 648 649 .word GDT_SELECTOR(GDT_ITEMS) 649 650 .long KA2PA(gdt) 650 651 651 grub_eax: 652 .global multiboot_eax 653 multiboot_eax: 652 654 .long 0 653 655 654 grub_ebx: 656 .global multiboot_ebx 657 multiboot_ebx: 655 658 .long 0 656 659 … … 670 673 status_vesa_copy: 671 674 .asciz "[vesa_copy] " 672 status_ grub_cmdline:673 .asciz "[ grub_cmdline] "675 status_multiboot_cmdline: 676 .asciz "[multiboot_cmdline] " 674 677 status_vesa_real: 675 678 .asciz "[vesa_real] " -
kernel/arch/ia32/Makefile.inc
r3b71e84d r7aaed09 107 107 arch/$(KARCH)/src/drivers/i8254.c \ 108 108 arch/$(KARCH)/src/drivers/i8259.c \ 109 arch/$(KARCH)/src/ drivers/vesa.c\110 arch/$(KARCH)/src/boot/ boot.S \109 arch/$(KARCH)/src/boot/multiboot.S \ 110 arch/$(KARCH)/src/boot/multiboot2.S \ 111 111 arch/$(KARCH)/src/boot/memmap.c \ 112 112 arch/$(KARCH)/src/fpu_context.c \ -
kernel/arch/ia32/include/arch.h
r3b71e84d r7aaed09 36 36 #define KERN_ia32_ARCH_H_ 37 37 38 #include < genarch/multiboot/multiboot.h>38 #include <typedefs.h> 39 39 40 extern void arch_pre_main(uint32_t, const multiboot_info_t*);40 extern void arch_pre_main(uint32_t, void *); 41 41 42 42 #endif -
kernel/arch/ia32/include/boot/boot.h
r3b71e84d r7aaed09 40 40 #define BOOT_STACK_SIZE 0x0400 41 41 42 #define MULTIBOOT_HEADER_MAGIC 0x1BADB00243 #define MULTIBOOT_HEADER_FLAGS 0x0001000344 45 #define MULTIBOOT_LOADER_MAGIC 0x2BADB00246 47 42 #ifndef __ASM__ 48 43 -
kernel/arch/ia32/src/boot/memmap.c
r3b71e84d r7aaed09 35 35 #include <arch/boot/memmap.h> 36 36 37 uint8_t e820counter = 0 xffU;37 uint8_t e820counter = 0; 38 38 e820memmap_t e820table[MEMMAP_E820_MAX_RECORDS]; 39 39 -
kernel/arch/ia32/src/boot/multiboot.S
r3b71e84d r7aaed09 30 30 31 31 #include <arch/boot/boot.h> 32 #include <arch/boot/memmap.h>33 32 #include <arch/mm/page.h> 34 33 #include <arch/pm.h> 34 #include <genarch/multiboot/multiboot.h> 35 35 #include <arch/cpuid.h> 36 36 … … 92 92 multiboot_meeting_point: 93 93 94 /* Save GRUBarguments */95 movl %eax, grub_eax96 movl %ebx, grub_ebx94 /* Save multiboot arguments */ 95 movl %eax, multiboot_eax 96 movl %ebx, multiboot_ebx 97 97 98 98 pm_status $status_prot … … 135 135 pm2_status $status_prot3 136 136 137 /* Call arch_pre_main( grub_eax, grub_ebx) */138 pushl grub_ebx139 pushl grub_eax137 /* Call arch_pre_main(multiboot_eax, multiboot_ebx) */ 138 pushl multiboot_ebx 139 pushl multiboot_eax 140 140 call arch_pre_main 141 141 … … 196 196 * 197 197 */ 198 .global map_kernel_non_pse 198 199 map_kernel_non_pse: 199 200 /* Paging features */ … … 299 300 find_mem_for_pt: 300 301 /* Check if multiboot info is present */ 301 cmpl $MULTIBOOT_LOADER_MAGIC, grub_eax302 cmpl $MULTIBOOT_LOADER_MAGIC, multiboot_eax 302 303 je check_multiboot_map 303 304 … … 307 308 308 309 /* Copy address of the multiboot info to ebx */ 309 movl grub_ebx, %ebx310 movl multiboot_ebx, %ebx 310 311 311 312 /* Check if memory map flag is present */ … … 701 702 .space 4096, 0 702 703 704 .global bootstrap_gdtr 703 705 bootstrap_gdtr: 704 706 .word GDT_SELECTOR(GDT_ITEMS) 705 707 .long KA2PA(gdt) 706 708 707 grub_eax: 709 .global multiboot_eax 710 multiboot_eax: 708 711 .long 0 709 grub_ebx: 712 713 .global multiboot_ebx 714 multiboot_ebx: 710 715 .long 0 711 716 … … 725 730 status_vesa_copy: 726 731 .asciz "[vesa_copy] " 727 status_ grub_cmdline:728 .asciz "[ grub_cmdline] "732 status_multiboot_cmdline: 733 .asciz "[multiboot_cmdline] " 729 734 status_vesa_real: 730 735 .asciz "[vesa_real] " -
kernel/arch/ia32/src/boot/vesa_prot.inc
r3b71e84d r7aaed09 1 1 #ifdef CONFIG_FB 2 2 3 #define MULTIBOOT_LOADER_MAGIC 0x2BADB0024 3 #define MBINFO_BIT_CMDLINE 2 5 4 #define MBINFO_OFFSET_CMDLINE 16 … … 14 13 rep movsb 15 14 16 /* Check for GRUBcommand line */15 /* Check for multiboot command line */ 17 16 18 pm_status $status_ grub_cmdline17 pm_status $status_multiboot_cmdline 19 18 20 mov grub_eax, %eax19 mov multiboot_eax, %eax 21 20 cmp $MULTIBOOT_LOADER_MAGIC, %eax 22 21 jne no_cmdline 23 22 24 mov grub_ebx, %ebx23 mov multiboot_ebx, %ebx 25 24 mov (%ebx), %eax 26 25 bt $MBINFO_BIT_CMDLINE, %eax … … 89 88 /* Returned back to protected mode */ 90 89 91 mov %ax, KA2PA(vesa_scanline) 90 movzx %ax, %ecx 91 mov %ecx, KA2PA(bfb_scanline) 92 92 93 shr $16, %eax 93 mov %ax, KA2PA( vesa_bpp)94 mov %ax, KA2PA(bfb_bpp) 94 95 95 mov %bx, KA2PA(vesa_height) 96 movzx %bx, %ecx 97 mov %ecx, KA2PA(bfb_height) 98 96 99 shr $16, %ebx 97 mov % bx, KA2PA(vesa_width)100 mov %ebx, KA2PA(bfb_width) 98 101 99 mov %dl, KA2PA(vesa_green_pos) 102 mov %dl, KA2PA(bfb_green_pos) 103 100 104 shr $8, %edx 101 mov %dl, KA2PA(vesa_green_mask) 105 mov %dl, KA2PA(bfb_green_size) 106 102 107 shr $8, %edx 103 mov %dl, KA2PA(vesa_red_pos) 108 mov %dl, KA2PA(bfb_red_pos) 109 104 110 shr $8, %edx 105 mov %dl, KA2PA( vesa_red_mask)111 mov %dl, KA2PA(bfb_red_size) 106 112 107 113 mov %esi, %edx 108 mov %dl, KA2PA(vesa_blue_pos) 114 mov %dl, KA2PA(bfb_blue_pos) 115 109 116 shr $8, %edx 110 mov %dl, KA2PA( vesa_blue_mask)117 mov %dl, KA2PA(bfb_blue_size) 111 118 112 mov %edi, KA2PA( vesa_ph_addr)119 mov %edi, KA2PA(bfb_addr) 113 120 #endif -
kernel/arch/ia32/src/boot/vesa_real.inc
r3b71e84d r7aaed09 304 304 /* 305 305 * Store mode parameters: 306 * eax = bpp[ 8] scanline[16]306 * eax = bpp[16] scanline[16] 307 307 * ebx = width[16] height[16] 308 308 * edx = red_mask[8] red_pos[8] green_mask[8] green_pos[8] … … 328 328 shl $8, %edx 329 329 mov VESA_MODE_RED_POS_OFFSET(%di), %dl 330 330 331 shl $8, %edx 331 332 mov VESA_MODE_GREEN_MASK_OFFSET(%di), %dl … … 369 370 mov $0x0003, %ax 370 371 int $0x10 371 mov $0xffffffff, %edi 372 xor %ax, %ax 372 373 xor %eax, %eax 374 xor %ebx, %ebx 375 xor %edx, %edx 376 xor %edi, %edi 377 373 378 jz vesa_leave_real /* force relative jump */ 374 379 … … 386 391 387 392 default_mode: 388 .ascii STRING(CONFIG_ VESA_MODE)393 .ascii STRING(CONFIG_BFB_MODE) 389 394 .ascii "-" 390 .asciz STRING(CONFIG_ VESA_BPP)395 .asciz STRING(CONFIG_BFB_BPP) 391 396 .fill 24 392 397 -
kernel/arch/ia32/src/ia32.c
r3b71e84d r7aaed09 36 36 37 37 #include <arch.h> 38 39 38 #include <typedefs.h> 40 41 #include < arch/pm.h>42 43 #include < genarch/multiboot/multiboot.h>44 #include < genarch/drivers/legacy/ia32/io.h>45 #include < genarch/drivers/ega/ega.h>46 #include <arch/ drivers/vesa.h>47 #include < genarch/drivers/i8042/i8042.h>48 #include < genarch/kbrd/kbrd.h>39 #include <errno.h> 40 #include <memstr.h> 41 #include <interrupt.h> 42 #include <console/console.h> 43 #include <syscall/syscall.h> 44 #include <sysinfo/sysinfo.h> 45 #include <arch/bios/bios.h> 46 #include <arch/boot/boot.h> 47 #include <arch/debugger.h> 49 48 #include <arch/drivers/i8254.h> 50 49 #include <arch/drivers/i8259.h> 51 52 #include <arch/context.h>53 54 #include <config.h>55 56 #include <arch/interrupt.h>57 #include <arch/asm.h>58 50 #include <genarch/acpi/acpi.h> 59 60 #include <arch/bios/bios.h> 61 62 #include <interrupt.h> 63 #include <ddi/irq.h> 64 #include <arch/debugger.h> 65 #include <proc/thread.h> 66 #include <syscall/syscall.h> 67 #include <console/console.h> 68 #include <sysinfo/sysinfo.h> 69 #include <arch/boot/boot.h> 70 #include <memstr.h> 51 #include <genarch/drivers/ega/ega.h> 52 #include <genarch/drivers/i8042/i8042.h> 53 #include <genarch/drivers/legacy/ia32/io.h> 54 #include <genarch/fb/bfb.h> 55 #include <genarch/kbrd/kbrd.h> 56 #include <genarch/multiboot/multiboot.h> 57 #include <genarch/multiboot/multiboot2.h> 71 58 72 59 #ifdef CONFIG_SMP … … 76 63 /** Perform ia32-specific initialization before main_bsp() is called. 77 64 * 78 * @param signature Should contain the multiboot signature. 79 * @param mi Pointer to the multiboot information structure. 80 */ 81 void arch_pre_main(uint32_t signature, const multiboot_info_t *mi) 65 * @param signature Multiboot signature. 66 * @param info Multiboot information structure. 67 * 68 */ 69 void arch_pre_main(uint32_t signature, void *info) 82 70 { 83 71 /* Parse multiboot information obtained from the bootloader. */ 84 multiboot_info_parse(signature, mi); 72 multiboot_info_parse(signature, (multiboot_info_t *) info); 73 multiboot2_info_parse(signature, (multiboot2_info_t *) info); 85 74 86 75 #ifdef CONFIG_SMP … … 114 103 115 104 #if (defined(CONFIG_FB) || defined(CONFIG_EGA)) 116 bool vesa= false;105 bool bfb = false; 117 106 #endif 118 107 119 108 #ifdef CONFIG_FB 120 vesa = vesa_init();109 bfb = bfb_init(); 121 110 #endif 122 111 123 112 #ifdef CONFIG_EGA 124 if (! vesa) {113 if (!bfb) { 125 114 outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM); 126 115 if (egadev) … … 216 205 * selector, and the descriptor->base is the correct address. 217 206 */ 218 sysarg_t sys_tls_set( sysarg_t addr)207 sysarg_t sys_tls_set(uintptr_t addr) 219 208 { 220 209 THREAD->arch.tls = addr; 221 210 set_tls_desc(addr); 222 211 223 return 0;212 return EOK; 224 213 } 225 214 -
kernel/arch/ia64/include/asm.h
r3b71e84d r7aaed09 38 38 #include <config.h> 39 39 #include <typedefs.h> 40 #include <typedefs.h>41 40 #include <arch/register.h> 42 41 #include <trace.h> -
kernel/arch/ia64/src/ia64.c
r3b71e84d r7aaed09 34 34 35 35 #include <arch.h> 36 #include <arch/drivers/ski.h>37 #include <arch/drivers/it.h>38 #include <arch/interrupt.h>39 #include <arch/barrier.h>40 #include <arch/asm.h>41 #include <arch/register.h>42 36 #include <typedefs.h> 43 #include <arch/context.h> 44 #include <arch/stack.h> 45 #include <arch/mm/page.h> 37 #include <errno.h> 46 38 #include <interrupt.h> 47 #include <mm/as.h>48 #include <config.h>49 39 #include <macros.h> 40 #include <str.h> 50 41 #include <userspace.h> 51 42 #include <console/console.h> 52 #include <abi/proc/uarg.h>53 43 #include <syscall/syscall.h> 54 #include <ddi/irq.h> 55 #include <arch/bootinfo.h> 44 #include <sysinfo/sysinfo.h> 45 #include <arch/drivers/it.h> 46 #include <arch/drivers/kbd.h> 47 #include <genarch/drivers/ega/ega.h> 48 #include <genarch/drivers/i8042/i8042.h> 49 #include <genarch/drivers/ns16550/ns16550.h> 56 50 #include <genarch/drivers/legacy/ia32/io.h> 57 #include <genarch/drivers/ega/ega.h>58 51 #include <genarch/kbrd/kbrd.h> 59 52 #include <genarch/srln/srln.h> 60 #include <genarch/drivers/i8042/i8042.h>61 #include <genarch/drivers/ns16550/ns16550.h>62 #include <arch/drivers/kbd.h>63 #include <smp/smp.h>64 #include <smp/ipi.h>65 #include <arch/atomic.h>66 #include <panic.h>67 #include <print.h>68 #include <sysinfo/sysinfo.h>69 #include <str.h>70 53 71 54 /* NS16550 as a COM 1 */ … … 262 245 * We use r13 (a.k.a. tp) for this purpose. 263 246 */ 264 sysarg_t sys_tls_set( sysarg_t addr)265 { 266 return 0;247 sysarg_t sys_tls_set(uintptr_t addr) 248 { 249 return EOK; 267 250 } 268 251 … … 270 253 { 271 254 pio_write_8((ioport8_t *)0x64, 0xfe); 272 while (1) 273 ; 255 while (1); 274 256 } 275 257 -
kernel/arch/ia64/src/start.S
r3b71e84d r7aaed09 174 174 mov ar.bspstore = r8 175 175 loadrs 176 176 177 177 # 178 178 # Initialize memory stack to some sane value and allocate a scratch area … … 196 196 srlz.i 197 197 srlz.d ;; 198 198 199 199 br.call.sptk.many b0 = arch_pre_main 200 200 0: -
kernel/arch/mips32/src/mips32.c
r3b71e84d r7aaed09 34 34 35 35 #include <arch.h> 36 #include <arch/cp0.h> 37 #include <arch/exception.h> 38 #include <arch/debug.h> 39 #include <mm/as.h> 36 #include <typedefs.h> 37 #include <errno.h> 38 #include <interrupt.h> 39 #include <macros.h> 40 #include <str.h> 41 #include <memstr.h> 40 42 #include <userspace.h> 41 #include <memstr.h>42 #include <proc/thread.h>43 #include <abi/proc/uarg.h>44 #include <print.h>45 43 #include <console/console.h> 46 44 #include <syscall/syscall.h> 47 45 #include <sysinfo/sysinfo.h> 48 #include <arch/interrupt.h> 49 #include <interrupt.h> 50 #include <console/chardev.h> 51 #include <arch/barrier.h> 46 #include <arch/debug.h> 52 47 #include <arch/debugger.h> 48 #include <arch/drivers/msim.h> 53 49 #include <genarch/fb/fb.h> 54 #include <abi/fb/visuals.h>55 50 #include <genarch/drivers/dsrln/dsrlnin.h> 56 51 #include <genarch/drivers/dsrln/dsrlnout.h> 57 52 #include <genarch/srln/srln.h> 58 #include <macros.h>59 #include <config.h>60 #include <str.h>61 #include <arch/drivers/msim.h>62 #include <arch/asm/regname.h>63 53 64 54 /* Size of the code jumping to the exception handler code … … 248 238 * possible to have it separately in the future. 249 239 */ 250 sysarg_t sys_tls_set( sysarg_t addr)251 { 252 return 0;240 sysarg_t sys_tls_set(uintptr_t addr) 241 { 242 return EOK; 253 243 } 254 244 -
kernel/arch/mips64/src/mips64.c
r3b71e84d r7aaed09 34 34 35 35 #include <arch.h> 36 #include <arch/cp0.h> 37 #include <arch/exception.h> 38 #include <arch/debug.h> 39 #include <mm/as.h> 36 #include <typedefs.h> 37 #include <errno.h> 38 #include <interrupt.h> 39 #include <macros.h> 40 #include <str.h> 41 #include <memstr.h> 40 42 #include <userspace.h> 41 #include <memstr.h>42 #include <proc/thread.h>43 #include <abi/proc/uarg.h>44 #include <print.h>45 43 #include <console/console.h> 46 44 #include <syscall/syscall.h> 47 45 #include <sysinfo/sysinfo.h> 48 #include <arch/interrupt.h> 49 #include <interrupt.h> 50 #include <console/chardev.h> 51 #include <arch/barrier.h> 46 #include <arch/debug.h> 52 47 #include <arch/debugger.h> 48 #include <arch/drivers/msim.h> 53 49 #include <genarch/fb/fb.h> 54 #include <abi/fb/visuals.h>55 50 #include <genarch/drivers/dsrln/dsrlnin.h> 56 51 #include <genarch/drivers/dsrln/dsrlnout.h> 57 52 #include <genarch/srln/srln.h> 58 #include <macros.h>59 #include <config.h>60 #include <str.h>61 #include <arch/drivers/msim.h>62 #include <arch/asm/regname.h>63 53 64 54 /* Size of the code jumping to the exception handler code … … 226 216 * possible to have it separately in the future. 227 217 */ 228 sysarg_t sys_tls_set( sysarg_t addr)229 { 230 return 0;218 sysarg_t sys_tls_set(uintptr_t addr) 219 { 220 return EOK; 231 221 } 232 222
Note:
See TracChangeset
for help on using the changeset viewer.
