Changeset d8db519 in mainline
- Timestamp:
- 2011-12-16T21:07:39Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 01e39cbe
- Parents:
- c1e104fc
- Location:
- kernel
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/src/abs32le.c
rc1e104fc rd8db519 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/src/amd64.c
rc1e104fc rd8db519 34 34 35 35 #include <arch.h> 36 37 36 #include <typedefs.h> 38 39 #include <config.h> 40 41 #include <proc/thread.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> 46 #include <arch/drivers/i8254.h> 47 #include <arch/drivers/i8259.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> 42 55 #include <genarch/multiboot/multiboot.h> 43 56 #include <genarch/multiboot/multiboot2.h> 44 #include <genarch/drivers/legacy/ia32/io.h>45 #include <genarch/drivers/ega/ega.h>46 #include <genarch/fb/bfb.h>47 #include <genarch/drivers/i8042/i8042.h>48 #include <genarch/kbrd/kbrd.h>49 #include <arch/drivers/i8254.h>50 #include <arch/drivers/i8259.h>51 #include <arch/boot/boot.h>52 57 53 58 #ifdef CONFIG_SMP 54 59 #include <arch/smp/apic.h> 55 60 #endif 56 57 #include <arch/bios/bios.h>58 #include <arch/cpu.h>59 #include <print.h>60 #include <arch/cpuid.h>61 #include <genarch/acpi/acpi.h>62 #include <panic.h>63 #include <interrupt.h>64 #include <arch/syscall.h>65 #include <arch/debugger.h>66 #include <syscall/syscall.h>67 #include <console/console.h>68 #include <ddi/irq.h>69 #include <sysinfo/sysinfo.h>70 #include <memstr.h>71 61 72 62 /** Disable I/O on non-privileged levels … … 264 254 * we need not to go to CPL0 to read it. 265 255 */ 266 sysarg_t sys_tls_set( sysarg_t addr)256 sysarg_t sys_tls_set(uintptr_t addr) 267 257 { 268 258 THREAD->arch.tls = addr; 269 259 write_msr(AMD_MSR_FS, addr); 270 260 271 return 0;261 return EOK; 272 262 } 273 263 -
kernel/arch/ia32/src/ia32.c
rc1e104fc rd8db519 36 36 37 37 #include <arch.h> 38 39 38 #include <typedefs.h> 40 41 #include <arch/pm.h> 42 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> 48 #include <arch/drivers/i8254.h> 49 #include <arch/drivers/i8259.h> 50 #include <genarch/acpi/acpi.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> 43 56 #include <genarch/multiboot/multiboot.h> 44 57 #include <genarch/multiboot/multiboot2.h> 45 #include <genarch/drivers/legacy/ia32/io.h>46 #include <genarch/drivers/ega/ega.h>47 #include <genarch/fb/bfb.h>48 #include <genarch/drivers/i8042/i8042.h>49 #include <genarch/kbrd/kbrd.h>50 #include <arch/drivers/i8254.h>51 #include <arch/drivers/i8259.h>52 53 #include <arch/context.h>54 55 #include <config.h>56 57 #include <arch/interrupt.h>58 #include <arch/asm.h>59 #include <genarch/acpi/acpi.h>60 61 #include <arch/bios/bios.h>62 63 #include <interrupt.h>64 #include <ddi/irq.h>65 #include <arch/debugger.h>66 #include <proc/thread.h>67 #include <syscall/syscall.h>68 #include <console/console.h>69 #include <sysinfo/sysinfo.h>70 #include <arch/boot/boot.h>71 #include <memstr.h>72 58 73 59 #ifdef CONFIG_SMP … … 219 205 * selector, and the descriptor->base is the correct address. 220 206 */ 221 sysarg_t sys_tls_set( sysarg_t addr)207 sysarg_t sys_tls_set(uintptr_t addr) 222 208 { 223 209 THREAD->arch.tls = addr; 224 210 set_tls_desc(addr); 225 211 226 return 0;212 return EOK; 227 213 } 228 214 -
kernel/arch/ia64/include/asm.h
rc1e104fc rd8db519 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
rc1e104fc rd8db519 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/mips32/src/mips32.c
rc1e104fc rd8db519 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
rc1e104fc rd8db519 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 -
kernel/generic/include/synch/smc.h
rc1e104fc rd8db519 36 36 #define KERN_SMC_H_ 37 37 38 extern sysarg_t sys_smc_coherence(uintptr_t va, size_t size);38 extern sysarg_t sys_smc_coherence(uintptr_t, size_t); 39 39 40 40 #endif -
kernel/generic/include/syscall/syscall.h
rc1e104fc rd8db519 45 45 extern sysarg_t syscall_handler(sysarg_t, sysarg_t, sysarg_t, sysarg_t, 46 46 sysarg_t, sysarg_t, sysarg_t); 47 extern sysarg_t sys_tls_set( sysarg_t);47 extern sysarg_t sys_tls_set(uintptr_t); 48 48 49 49 #endif
Note:
See TracChangeset
for help on using the changeset viewer.