diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
| commit | a8931ef380c92d121ae74ecfb03b2d63f72eea6f (patch) | |
| tree | 980fb6b019e11e6cb1ece55b7faff184721a8053 /arch/um/include | |
| parent | 90574d0a4d4b73308ae54a2a57a4f3f1fa98e984 (diff) | |
| parent | e5a5816f7875207cb0a0a7032e39a4686c5e10a4 (diff) | |
| download | olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.tar.xz olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.zip  | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/um/include')
| -rw-r--r-- | arch/um/include/as-layout.h | 14 | ||||
| -rw-r--r-- | arch/um/include/line.h | 6 | ||||
| -rw-r--r-- | arch/um/include/os.h | 3 | ||||
| -rw-r--r-- | arch/um/include/process.h | 20 | ||||
| -rw-r--r-- | arch/um/include/skas_ptrace.h | 13 | ||||
| -rw-r--r-- | arch/um/include/sysdep-i386/ptrace_user.h | 30 | ||||
| -rw-r--r-- | arch/um/include/sysdep-i386/sigcontext.h | 2 | ||||
| -rw-r--r-- | arch/um/include/sysdep-x86_64/ptrace_user.h | 17 | ||||
| -rw-r--r-- | arch/um/include/um_malloc.h | 9 | 
9 files changed, 28 insertions, 86 deletions
diff --git a/arch/um/include/as-layout.h b/arch/um/include/as-layout.h index cac542d8ff7..58e852dfb0c 100644 --- a/arch/um/include/as-layout.h +++ b/arch/um/include/as-layout.h @@ -23,16 +23,16 @@   */  #ifdef __ASSEMBLY__ -#define _AC(X, Y)	(Y) +#define _UML_AC(X, Y)	(Y)  #else -#define __AC(X, Y)	(X (Y)) -#define _AC(X, Y)	__AC(X, Y) +#define __UML_AC(X, Y)	(X(Y)) +#define _UML_AC(X, Y)	__UML_AC(X, Y)  #endif -#define STUB_START _AC(, 0x100000) -#define STUB_CODE _AC((unsigned long), STUB_START) -#define STUB_DATA _AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE) -#define STUB_END _AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE) +#define STUB_START _UML_AC(, 0x100000) +#define STUB_CODE _UML_AC((unsigned long), STUB_START) +#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE) +#define STUB_END _UML_AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE)  #ifndef __ASSEMBLY__ diff --git a/arch/um/include/line.h b/arch/um/include/line.h index 1223f2c844b..311a0d3d93a 100644 --- a/arch/um/include/line.h +++ b/arch/um/include/line.h @@ -58,11 +58,11 @@ struct line {  };  #define LINE_INIT(str, d) \ -	{ .count_lock =	SPIN_LOCK_UNLOCKED, \ +	{ .count_lock =	__SPIN_LOCK_UNLOCKED((str).count_lock), \  	  .init_str =	str,	\  	  .init_pri =	INIT_STATIC, \  	  .valid =	1, \ -	  .lock =	SPIN_LOCK_UNLOCKED, \ +	  .lock =	__SPIN_LOCK_UNLOCKED((str).lock), \  	  .driver =	d }  extern void line_close(struct tty_struct *tty, struct file * filp); @@ -71,7 +71,7 @@ extern int line_setup(struct line *lines, unsigned int sizeof_lines,  		      char *init, char **error_out);  extern int line_write(struct tty_struct *tty, const unsigned char *buf,  		      int len); -extern void line_put_char(struct tty_struct *tty, unsigned char ch); +extern int line_put_char(struct tty_struct *tty, unsigned char ch);  extern void line_set_termios(struct tty_struct *tty, struct ktermios * old);  extern int line_chars_in_buffer(struct tty_struct *tty);  extern void line_flush_buffer(struct tty_struct *tty); diff --git a/arch/um/include/os.h b/arch/um/include/os.h index 32c799e3a49..db5be46e3e1 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h @@ -290,6 +290,7 @@ extern void os_set_ioignore(void);  extern int add_sigio_fd(int fd);  extern int ignore_sigio_fd(int fd);  extern void maybe_sigio_broken(int fd, int read); +extern void sigio_broken(int fd, int read);  /* sys-x86_64/prctl.c */  extern int os_arch_prctl(int pid, int code, unsigned long *addr); @@ -298,6 +299,6 @@ extern int os_arch_prctl(int pid, int code, unsigned long *addr);  extern int get_pty(void);  /* sys-$ARCH/task_size.c */ -extern unsigned long os_get_task_size(void); +extern unsigned long os_get_top_address(void);  #endif diff --git a/arch/um/include/process.h b/arch/um/include/process.h index 5af9157ff54..bb873a51262 100644 --- a/arch/um/include/process.h +++ b/arch/um/include/process.h @@ -1,5 +1,5 @@  /*  - * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) + * Copyright (C) 2000 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)   * Licensed under the GPL   */ @@ -8,18 +8,10 @@  #include <signal.h> -extern void sig_handler(int sig, struct sigcontext sc); -extern void alarm_handler(int sig, struct sigcontext sc); +/* Copied from linux/compiler-gcc.h since we can't include it directly */ +#define barrier() __asm__ __volatile__("": : :"memory") -#endif +extern void sig_handler(int sig, struct sigcontext *sc); +extern void alarm_handler(int sig, struct sigcontext *sc); -/* - * Overrides for Emacs so that we follow Linus's tabbing style. - * Emacs will notice this stuff at the end of the file and automatically - * adjust the settings for this buffer only.  This must remain at the end - * of the file. - * --------------------------------------------------------------------------- - * Local variables: - * c-file-style: "linux" - * End: - */ +#endif diff --git a/arch/um/include/skas_ptrace.h b/arch/um/include/skas_ptrace.h index cd2327d09c8..3d31bbacd01 100644 --- a/arch/um/include/skas_ptrace.h +++ b/arch/um/include/skas_ptrace.h @@ -1,5 +1,5 @@  /*  - * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) + * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)   * Licensed under the GPL   */ @@ -12,14 +12,3 @@  #include "sysdep/skas_ptrace.h"  #endif - -/* - * Overrides for Emacs so that we follow Linus's tabbing style. - * Emacs will notice this stuff at the end of the file and automatically - * adjust the settings for this buffer only.  This must remain at the end - * of the file. - * --------------------------------------------------------------------------- - * Local variables: - * c-file-style: "linux" - * End: - */ diff --git a/arch/um/include/sysdep-i386/ptrace_user.h b/arch/um/include/sysdep-i386/ptrace_user.h index 75650723c38..ef56247e414 100644 --- a/arch/um/include/sysdep-i386/ptrace_user.h +++ b/arch/um/include/sysdep-i386/ptrace_user.h @@ -41,38 +41,10 @@  #define PT_SP_OFFSET PT_OFFSET(UESP)  #define PT_SP(regs) ((regs)[UESP]) -#define FP_SIZE ((HOST_XFP_SIZE > HOST_FP_SIZE) ? HOST_XFP_SIZE : HOST_FP_SIZE) +#define FP_SIZE ((HOST_FPX_SIZE > HOST_FP_SIZE) ? HOST_FPX_SIZE : HOST_FP_SIZE)  #ifndef FRAME_SIZE  #define FRAME_SIZE (17)  #endif -#define FRAME_SIZE_OFFSET (FRAME_SIZE * sizeof(unsigned long)) - -#define FP_FRAME_SIZE (27) -#define FPX_FRAME_SIZE (128) - -#ifdef PTRACE_GETREGS -#define UM_HAVE_GETREGS -#endif - -#ifdef PTRACE_SETREGS -#define UM_HAVE_SETREGS -#endif - -#ifdef PTRACE_GETFPREGS -#define UM_HAVE_GETFPREGS -#endif - -#ifdef PTRACE_SETFPREGS -#define UM_HAVE_SETFPREGS -#endif - -#ifdef PTRACE_GETFPXREGS -#define UM_HAVE_GETFPXREGS -#endif - -#ifdef PTRACE_SETFPXREGS -#define UM_HAVE_SETFPXREGS -#endif  #endif diff --git a/arch/um/include/sysdep-i386/sigcontext.h b/arch/um/include/sysdep-i386/sigcontext.h index 67e77122aa4..f583c87111a 100644 --- a/arch/um/include/sysdep-i386/sigcontext.h +++ b/arch/um/include/sysdep-i386/sigcontext.h @@ -10,7 +10,7 @@  #define IP_RESTART_SYSCALL(ip) ((ip) -= 2) -#define GET_FAULTINFO_FROM_SC(fi,sc) \ +#define GET_FAULTINFO_FROM_SC(fi, sc) \  	{ \  		(fi).cr2 = SC_CR2(sc); \  		(fi).error_code = SC_ERR(sc); \ diff --git a/arch/um/include/sysdep-x86_64/ptrace_user.h b/arch/um/include/sysdep-x86_64/ptrace_user.h index 45c0bd881cb..4dbccdb58f4 100644 --- a/arch/um/include/sysdep-x86_64/ptrace_user.h +++ b/arch/um/include/sysdep-x86_64/ptrace_user.h @@ -48,7 +48,8 @@  #define PT_ORIG_RAX_OFFSET (ORIG_RAX)  #define PT_ORIG_RAX(regs) ((regs)[PT_INDEX(ORIG_RAX)]) -/* x86_64 FC3 doesn't define this in /usr/include/linux/ptrace.h even though +/* + * x86_64 FC3 doesn't define this in /usr/include/linux/ptrace.h even though   * it's defined in the kernel's include/linux/ptrace.h. Additionally, use the   * 2.4 name and value for 2.4 host compatibility.   */ @@ -56,7 +57,8 @@  #define PTRACE_OLDSETOPTIONS 21  #endif -/* These are before the system call, so the system call number is RAX +/* + * These are before the system call, so the system call number is RAX   * rather than ORIG_RAX, and arg4 is R10 rather than RCX   */  #define REGS_SYSCALL_NR PT_INDEX(RAX) @@ -73,14 +75,3 @@  #define FP_SIZE (HOST_FP_SIZE)  #endif - -/* - * Overrides for Emacs so that we follow Linus's tabbing style. - * Emacs will notice this stuff at the end of the file and automatically - * adjust the settings for this buffer only.  This must remain at the end - * of the file. - * --------------------------------------------------------------------------- - * Local variables: - * c-file-style: "linux" - * End: - */ diff --git a/arch/um/include/um_malloc.h b/arch/um/include/um_malloc.h index 0ad17cb83d9..c554d706d10 100644 --- a/arch/um/include/um_malloc.h +++ b/arch/um/include/um_malloc.h @@ -8,15 +8,12 @@  #include "kern_constants.h" -extern void *__kmalloc(int size, int flags); -static inline void *kmalloc(int size, int flags) -{ -	return __kmalloc(size, flags); -} - +extern void *uml_kmalloc(int size, int flags);  extern void kfree(const void *ptr);  extern void *vmalloc(unsigned long size);  extern void vfree(void *ptr);  #endif /* __UM_MALLOC_H__ */ + +  |