Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] uml: move headers to arch/um/include

The serial UML OS-abstraction layer patch (um/kernel dir).

This moves skas headers to arch/um/include.

Signed-off-by: Gennady Sharapov <Gennady.V.Sharapov@intel.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Gennady Sharapov and committed by
Linus Torvalds
4abfbf40 2c332a25

+115 -149
+1 -1
arch/um/Makefile
··· 32 32 um-modes-$(CONFIG_MODE_SKAS) += skas 33 33 34 34 MODE_INCLUDE += $(foreach mode,$(um-modes-y),\ 35 - -I$(srctree)/$(ARCH_DIR)/kernel/$(mode)/include) 35 + -I$(srctree)/$(ARCH_DIR)/include/$(mode)) 36 36 37 37 MAKEFILES-INCL += $(foreach mode,$(um-modes-y),\ 38 38 $(srctree)/$(ARCH_DIR)/Makefile-$(mode))
+2 -13
arch/um/include/mode_kern.h
··· 9 9 #include "linux/config.h" 10 10 11 11 #ifdef CONFIG_MODE_TT 12 - #include "mode_kern-tt.h" 12 + #include "mode_kern_tt.h" 13 13 #endif 14 14 15 15 #ifdef CONFIG_MODE_SKAS 16 - #include "mode_kern-skas.h" 16 + #include "mode_kern_skas.h" 17 17 #endif 18 18 19 19 #endif 20 - 21 - /* 22 - * Overrides for Emacs so that we follow Linus's tabbing style. 23 - * Emacs will notice this stuff at the end of the file and automatically 24 - * adjust the settings for this buffer only. This must remain at the end 25 - * of the file. 26 - * --------------------------------------------------------------------------- 27 - * Local variables: 28 - * c-file-style: "linux" 29 - * End: 30 - */
+24
arch/um/include/skas/mmu-skas.h
··· 1 + /* 2 + * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 + * Licensed under the GPL 4 + */ 5 + 6 + #ifndef __SKAS_MMU_H 7 + #define __SKAS_MMU_H 8 + 9 + #include "linux/config.h" 10 + #include "mm_id.h" 11 + #include "asm/ldt.h" 12 + 13 + struct mmu_context_skas { 14 + struct mm_id id; 15 + unsigned long last_page_table; 16 + #ifdef CONFIG_3_LEVEL_PGTABLES 17 + unsigned long last_pmd; 18 + #endif 19 + uml_ldt_t ldt; 20 + }; 21 + 22 + extern void switch_mm_skas(struct mm_id * mm_idp); 23 + 24 + #endif
+12
arch/um/include/tt/mmu-tt.h
··· 1 + /* 2 + * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 + * Licensed under the GPL 4 + */ 5 + 6 + #ifndef __TT_MMU_H 7 + #define __TT_MMU_H 8 + 9 + struct mmu_context_tt { 10 + }; 11 + 12 + #endif
+23
arch/um/include/tt/mode-tt.h
··· 1 + /* 2 + * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 + * Licensed under the GPL 4 + */ 5 + 6 + #ifndef __MODE_TT_H__ 7 + #define __MODE_TT_H__ 8 + 9 + #include "sysdep/ptrace.h" 10 + 11 + enum { OP_NONE, OP_EXEC, OP_FORK, OP_TRACE_ON, OP_REBOOT, OP_HALT, OP_CB }; 12 + 13 + extern int tracing_pid; 14 + 15 + extern int tracer(int (*init_proc)(void *), void *sp); 16 + extern void sig_handler_common_tt(int sig, void *sc); 17 + extern void syscall_handler_tt(int sig, union uml_pt_regs *regs); 18 + extern void reboot_tt(void); 19 + extern void halt_tt(void); 20 + extern int is_tracer_winch(int pid, int fd, void *data); 21 + extern void kill_off_processes_tt(void); 22 + 23 + #endif
+41
arch/um/include/tt/mode_kern_tt.h
··· 1 + /* 2 + * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 + * Licensed under the GPL 4 + */ 5 + 6 + #ifndef __TT_MODE_KERN_H__ 7 + #define __TT_MODE_KERN_H__ 8 + 9 + #include "linux/sched.h" 10 + #include "asm/page.h" 11 + #include "asm/ptrace.h" 12 + #include "asm/uaccess.h" 13 + 14 + extern void switch_to_tt(void *prev, void *next); 15 + extern void flush_thread_tt(void); 16 + extern void start_thread_tt(struct pt_regs *regs, unsigned long eip, 17 + unsigned long esp); 18 + extern int copy_thread_tt(int nr, unsigned long clone_flags, unsigned long sp, 19 + unsigned long stack_top, struct task_struct *p, 20 + struct pt_regs *regs); 21 + extern void release_thread_tt(struct task_struct *task); 22 + extern void initial_thread_cb_tt(void (*proc)(void *), void *arg); 23 + extern void init_idle_tt(void); 24 + extern void flush_tlb_kernel_range_tt(unsigned long start, unsigned long end); 25 + extern void flush_tlb_kernel_vm_tt(void); 26 + extern void __flush_tlb_one_tt(unsigned long addr); 27 + extern void flush_tlb_range_tt(struct vm_area_struct *vma, 28 + unsigned long start, unsigned long end); 29 + extern void flush_tlb_mm_tt(struct mm_struct *mm); 30 + extern void force_flush_all_tt(void); 31 + extern long execute_syscall_tt(void *r); 32 + extern void before_mem_tt(unsigned long brk_start); 33 + extern unsigned long set_task_sizes_tt(int arg, unsigned long *host_size_out, 34 + unsigned long *task_size_out); 35 + extern int start_uml_tt(void); 36 + extern int external_pid_tt(struct task_struct *task); 37 + extern int thread_pid_tt(struct task_struct *task); 38 + 39 + #define kmem_end_tt (host_task_size - ABOVE_KMEM) 40 + 41 + #endif
arch/um/kernel/skas/include/mm_id.h arch/um/include/skas/mm_id.h
-35
arch/um/kernel/skas/include/mmu-skas.h
··· 1 - /* 2 - * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 - * Licensed under the GPL 4 - */ 5 - 6 - #ifndef __SKAS_MMU_H 7 - #define __SKAS_MMU_H 8 - 9 - #include "linux/config.h" 10 - #include "mm_id.h" 11 - #include "asm/ldt.h" 12 - 13 - struct mmu_context_skas { 14 - struct mm_id id; 15 - unsigned long last_page_table; 16 - #ifdef CONFIG_3_LEVEL_PGTABLES 17 - unsigned long last_pmd; 18 - #endif 19 - uml_ldt_t ldt; 20 - }; 21 - 22 - extern void switch_mm_skas(struct mm_id * mm_idp); 23 - 24 - #endif 25 - 26 - /* 27 - * Overrides for Emacs so that we follow Linus's tabbing style. 28 - * Emacs will notice this stuff at the end of the file and automatically 29 - * adjust the settings for this buffer only. This must remain at the end 30 - * of the file. 31 - * --------------------------------------------------------------------------- 32 - * Local variables: 33 - * c-file-style: "linux" 34 - * End: 35 - */
-11
arch/um/kernel/skas/include/mode-skas.h arch/um/include/skas/mode-skas.h
··· 20 20 extern int is_skas_winch(int pid, int fd, void *data); 21 21 22 22 #endif 23 - 24 - /* 25 - * Overrides for Emacs so that we follow Linus's tabbing style. 26 - * Emacs will notice this stuff at the end of the file and automatically 27 - * adjust the settings for this buffer only. This must remain at the end 28 - * of the file. 29 - * --------------------------------------------------------------------------- 30 - * Local variables: 31 - * c-file-style: "linux" 32 - * End: 33 - */
-11
arch/um/kernel/skas/include/mode_kern-skas.h arch/um/include/skas/mode_kern_skas.h
··· 39 39 #define kmem_end_skas (host_task_size - 1024 * 1024) 40 40 41 41 #endif 42 - 43 - /* 44 - * Overrides for Emacs so that we follow Linus's tabbing style. 45 - * Emacs will notice this stuff at the end of the file and automatically 46 - * adjust the settings for this buffer only. This must remain at the end 47 - * of the file. 48 - * --------------------------------------------------------------------------- 49 - * Local variables: 50 - * c-file-style: "linux" 51 - * End: 52 - */
+3 -14
arch/um/kernel/skas/include/proc_mm.h arch/um/include/skas/proc_mm.h
··· 1 - /* 1 + /* 2 2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 3 * Licensed under the GPL 4 4 */ ··· 22 22 23 23 struct mm_munmap { 24 24 unsigned long addr; 25 - unsigned long len; 25 + unsigned long len; 26 26 }; 27 27 28 28 struct mm_mprotect { 29 29 unsigned long addr; 30 30 unsigned long len; 31 - unsigned int prot; 31 + unsigned int prot; 32 32 }; 33 33 34 34 struct proc_mm_op { ··· 42 42 }; 43 43 44 44 #endif 45 - 46 - /* 47 - * Overrides for Emacs so that we follow Linus's tabbing style. 48 - * Emacs will notice this stuff at the end of the file and automatically 49 - * adjust the settings for this buffer only. This must remain at the end 50 - * of the file. 51 - * --------------------------------------------------------------------------- 52 - * Local variables: 53 - * c-file-style: "linux" 54 - * End: 55 - */
+7 -7
arch/um/kernel/skas/include/skas.h arch/um/include/skas/skas.h
··· 1 - /* 1 + /* 2 2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 3 * Licensed under the GPL 4 4 */ ··· 16 16 extern void switch_threads(void *me, void *next); 17 17 extern void thread_wait(void *sw, void *fb); 18 18 extern void new_thread(void *stack, void **switch_buf_ptr, void **fork_buf_ptr, 19 - void (*handler)(int)); 20 - extern int start_idle_thread(void *stack, void *switch_buf_ptr, 19 + void (*handler)(int)); 20 + extern int start_idle_thread(void *stack, void *switch_buf_ptr, 21 21 void **fork_buf_ptr); 22 22 extern int user_thread(unsigned long stack, int flags); 23 23 extern void userspace(union uml_pt_regs *regs); ··· 40 40 extern long execute_syscall_skas(void *r); 41 41 extern unsigned long current_stub_stack(void); 42 42 extern long run_syscall_stub(struct mm_id * mm_idp, 43 - int syscall, unsigned long *args, long expected, 44 - void **addr, int done); 43 + int syscall, unsigned long *args, long expected, 44 + void **addr, int done); 45 45 extern long syscall_stub_data(struct mm_id * mm_idp, 46 - unsigned long *data, int data_count, 47 - void **addr, void **stub_addr); 46 + unsigned long *data, int data_count, 47 + void **addr, void **stub_addr); 48 48 49 49 #endif
arch/um/kernel/skas/include/stub-data.h arch/um/include/skas/stub-data.h
-11
arch/um/kernel/skas/include/uaccess-skas.h arch/um/include/skas/uaccess-skas.h
··· 19 19 extern int strnlen_user_skas(const void __user *str, int len); 20 20 21 21 #endif 22 - 23 - /* 24 - * Overrides for Emacs so that we follow Linus's tabbing style. 25 - * Emacs will notice this stuff at the end of the file and automatically 26 - * adjust the settings for this buffer only. This must remain at the end 27 - * of the file. 28 - * --------------------------------------------------------------------------- 29 - * Local variables: 30 - * c-file-style: "linux" 31 - * End: 32 - */
+1 -1
arch/um/kernel/tt/include/debug.h arch/um/include/tt/debug.h
··· 1 - /* 1 + /* 2 2 * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) and 3 3 * Lars Brinkhoff. 4 4 * Licensed under the GPL
-23
arch/um/kernel/tt/include/mmu-tt.h
··· 1 - /* 2 - * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 - * Licensed under the GPL 4 - */ 5 - 6 - #ifndef __TT_MMU_H 7 - #define __TT_MMU_H 8 - 9 - struct mmu_context_tt { 10 - }; 11 - 12 - #endif 13 - 14 - /* 15 - * Overrides for Emacs so that we follow Linus's tabbing style. 16 - * Emacs will notice this stuff at the end of the file and automatically 17 - * adjust the settings for this buffer only. This must remain at the end 18 - * of the file. 19 - * --------------------------------------------------------------------------- 20 - * Local variables: 21 - * c-file-style: "linux" 22 - * End: 23 - */
+1 -11
arch/um/kernel/tt/include/tt.h arch/um/include/tt/tt.h
··· 1 - /* 1 + /* 2 2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) 3 3 * Licensed under the GPL 4 4 */ ··· 34 34 35 35 #endif 36 36 37 - /* 38 - * Overrides for Emacs so that we follow Linus's tabbing style. 39 - * Emacs will notice this stuff at the end of the file and automatically 40 - * adjust the settings for this buffer only. This must remain at the end 41 - * of the file. 42 - * --------------------------------------------------------------------------- 43 - * Local variables: 44 - * c-file-style: "linux" 45 - * End: 46 - */
-11
arch/um/kernel/tt/include/uaccess-tt.h arch/um/include/tt/uaccess-tt.h
··· 46 46 extern int strnlen_user_tt(const void __user *str, int len); 47 47 48 48 #endif 49 - 50 - /* 51 - * Overrides for Emacs so that we follow Linus's tabbing style. 52 - * Emacs will notice this stuff at the end of the file and automatically 53 - * adjust the settings for this buffer only. This must remain at the end 54 - * of the file. 55 - * --------------------------------------------------------------------------- 56 - * Local variables: 57 - * c-file-style: "linux" 58 - * End: 59 - */