svn commit: r278003 - in projects/clang360-import/sys: amd64/amd64 amd64/ia32 arm/arm fs/tmpfs i386/i386 mips/mips powerpc/powerpc sparc64/sparc64 sys

Dimitry Andric dim at FreeBSD.org
Sat Jan 31 22:07:42 UTC 2015


Author: dim
Date: Sat Jan 31 22:07:38 2015
New Revision: 278003
URL: https://svnweb.freebsd.org/changeset/base/278003

Log:
  Merge ^/head r277999 through r278002.

Modified:
  projects/clang360-import/sys/amd64/amd64/machdep.c
  projects/clang360-import/sys/amd64/ia32/ia32_signal.c
  projects/clang360-import/sys/arm/arm/machdep.c
  projects/clang360-import/sys/fs/tmpfs/tmpfs_subr.c
  projects/clang360-import/sys/i386/i386/machdep.c
  projects/clang360-import/sys/mips/mips/freebsd32_machdep.c
  projects/clang360-import/sys/mips/mips/pm_machdep.c
  projects/clang360-import/sys/powerpc/powerpc/exec_machdep.c
  projects/clang360-import/sys/sparc64/sparc64/machdep.c
  projects/clang360-import/sys/sys/ucontext.h
Directory Properties:
  projects/clang360-import/   (props changed)
  projects/clang360-import/sys/   (props changed)

Modified: projects/clang360-import/sys/amd64/amd64/machdep.c
==============================================================================
--- projects/clang360-import/sys/amd64/amd64/machdep.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/amd64/amd64/machdep.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -157,7 +157,7 @@ extern u_int64_t hammer_time(u_int64_t, 
 static void cpu_startup(void *);
 static void get_fpcontext(struct thread *td, mcontext_t *mcp,
     char *xfpusave, size_t xfpusave_len);
-static int  set_fpcontext(struct thread *td, const mcontext_t *mcp,
+static int  set_fpcontext(struct thread *td, mcontext_t *mcp,
     char *xfpustate, size_t xfpustate_len);
 SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
 
@@ -2480,7 +2480,7 @@ get_mcontext(struct thread *td, mcontext
  * touch the cs selector.
  */
 int
-set_mcontext(struct thread *td, const mcontext_t *mcp)
+set_mcontext(struct thread *td, mcontext_t *mcp)
 {
 	struct pcb *pcb;
 	struct trapframe *tp;
@@ -2567,7 +2567,7 @@ get_fpcontext(struct thread *td, mcontex
 }
 
 static int
-set_fpcontext(struct thread *td, const mcontext_t *mcp, char *xfpustate,
+set_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpustate,
     size_t xfpustate_len)
 {
 	struct savefpu *fpstate;

Modified: projects/clang360-import/sys/amd64/ia32/ia32_signal.c
==============================================================================
--- projects/clang360-import/sys/amd64/ia32/ia32_signal.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/amd64/ia32/ia32_signal.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -118,7 +118,7 @@ ia32_get_fpcontext(struct thread *td, st
 }
 
 static int
-ia32_set_fpcontext(struct thread *td, const struct ia32_mcontext *mcp,
+ia32_set_fpcontext(struct thread *td, struct ia32_mcontext *mcp,
     char *xfpustate, size_t xfpustate_len)
 {
 	int error;
@@ -197,7 +197,7 @@ ia32_get_mcontext(struct thread *td, str
  * touch the cs selector.
  */
 static int
-ia32_set_mcontext(struct thread *td, const struct ia32_mcontext *mcp)
+ia32_set_mcontext(struct thread *td, struct ia32_mcontext *mcp)
 {
 	struct trapframe *tp;
 	char *xfpustate;

Modified: projects/clang360-import/sys/arm/arm/machdep.c
==============================================================================
--- projects/clang360-import/sys/arm/arm/machdep.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/arm/arm/machdep.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -700,7 +700,7 @@ get_mcontext(struct thread *td, mcontext
  * touch the cs selector.
  */
 int
-set_mcontext(struct thread *td, const mcontext_t *mcp)
+set_mcontext(struct thread *td, mcontext_t *mcp)
 {
 	struct trapframe *tf = td->td_frame;
 	const __greg_t *gr = mcp->__gregs;

Modified: projects/clang360-import/sys/fs/tmpfs/tmpfs_subr.c
==============================================================================
--- projects/clang360-import/sys/fs/tmpfs/tmpfs_subr.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/fs/tmpfs/tmpfs_subr.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -991,6 +991,7 @@ tmpfs_dir_attach(struct vnode *vp, struc
 	dnode->tn_size += sizeof(struct tmpfs_dirent);
 	dnode->tn_status |= TMPFS_NODE_ACCESSED | TMPFS_NODE_CHANGED | \
 	    TMPFS_NODE_MODIFIED;
+	tmpfs_update(vp);
 }
 
 /*
@@ -1036,6 +1037,7 @@ tmpfs_dir_detach(struct vnode *vp, struc
 	dnode->tn_size -= sizeof(struct tmpfs_dirent);
 	dnode->tn_status |= TMPFS_NODE_ACCESSED | TMPFS_NODE_CHANGED | \
 	    TMPFS_NODE_MODIFIED;
+	tmpfs_update(vp);
 }
 
 void

Modified: projects/clang360-import/sys/i386/i386/machdep.c
==============================================================================
--- projects/clang360-import/sys/i386/i386/machdep.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/i386/i386/machdep.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -195,7 +195,7 @@ static void cpu_startup(void *);
 static void fpstate_drop(struct thread *td);
 static void get_fpcontext(struct thread *td, mcontext_t *mcp,
     char *xfpusave, size_t xfpusave_len);
-static int  set_fpcontext(struct thread *td, const mcontext_t *mcp,
+static int  set_fpcontext(struct thread *td, mcontext_t *mcp,
     char *xfpustate, size_t xfpustate_len);
 #ifdef CPU_ENABLE_SSE
 static void set_fpregs_xmm(struct save87 *, struct savexmm *);
@@ -3856,7 +3856,7 @@ get_mcontext(struct thread *td, mcontext
  * touch the cs selector.
  */
 int
-set_mcontext(struct thread *td, const mcontext_t *mcp)
+set_mcontext(struct thread *td, mcontext_t *mcp)
 {
 	struct trapframe *tp;
 	char *xfpustate;
@@ -3934,7 +3934,7 @@ get_fpcontext(struct thread *td, mcontex
 }
 
 static int
-set_fpcontext(struct thread *td, const mcontext_t *mcp, char *xfpustate,
+set_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpustate,
     size_t xfpustate_len)
 {
 	union savefpu *fpstate;

Modified: projects/clang360-import/sys/mips/mips/freebsd32_machdep.c
==============================================================================
--- projects/clang360-import/sys/mips/mips/freebsd32_machdep.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/mips/mips/freebsd32_machdep.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -68,7 +68,7 @@
 
 static void freebsd32_exec_setregs(struct thread *, struct image_params *, u_long);
 static int get_mcontext32(struct thread *, mcontext32_t *, int);
-static int set_mcontext32(struct thread *, const mcontext32_t *);
+static int set_mcontext32(struct thread *, mcontext32_t *);
 static void freebsd32_sendsig(sig_t, ksiginfo_t *, sigset_t *);
 
 extern const char *freebsd32_syscallnames[];
@@ -227,7 +227,7 @@ get_mcontext32(struct thread *td, mconte
 }
 
 static int
-set_mcontext32(struct thread *td, const mcontext32_t *mcp)
+set_mcontext32(struct thread *td, mcontext32_t *mcp)
 {
 	mcontext_t mcp64;
 	unsigned i;

Modified: projects/clang360-import/sys/mips/mips/pm_machdep.c
==============================================================================
--- projects/clang360-import/sys/mips/mips/pm_machdep.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/mips/mips/pm_machdep.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -375,7 +375,7 @@ get_mcontext(struct thread *td, mcontext
 }
 
 int
-set_mcontext(struct thread *td, const mcontext_t *mcp)
+set_mcontext(struct thread *td, mcontext_t *mcp)
 {
 	struct trapframe *tp;
 

Modified: projects/clang360-import/sys/powerpc/powerpc/exec_machdep.c
==============================================================================
--- projects/clang360-import/sys/powerpc/powerpc/exec_machdep.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/powerpc/powerpc/exec_machdep.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -442,7 +442,7 @@ get_mcontext(struct thread *td, mcontext
 }
 
 int
-set_mcontext(struct thread *td, const mcontext_t *mcp)
+set_mcontext(struct thread *td, mcontext_t *mcp)
 {
 	struct pcb *pcb;
 	struct trapframe *tf;
@@ -739,7 +739,7 @@ get_mcontext32(struct thread *td, mconte
 }
 
 static int
-set_mcontext32(struct thread *td, const mcontext32_t *mcp)
+set_mcontext32(struct thread *td, mcontext32_t *mcp)
 {
 	mcontext_t mcp64;
 	int i, error;

Modified: projects/clang360-import/sys/sparc64/sparc64/machdep.c
==============================================================================
--- projects/clang360-import/sys/sparc64/sparc64/machdep.c	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/sparc64/sparc64/machdep.c	Sat Jan 31 22:07:38 2015	(r278003)
@@ -811,7 +811,7 @@ get_mcontext(struct thread *td, mcontext
 }
 
 int
-set_mcontext(struct thread *td, const mcontext_t *mc)
+set_mcontext(struct thread *td, mcontext_t *mc)
 {
 	struct trapframe *tf;
 	struct pcb *pcb;

Modified: projects/clang360-import/sys/sys/ucontext.h
==============================================================================
--- projects/clang360-import/sys/sys/ucontext.h	Sat Jan 31 21:57:38 2015	(r278002)
+++ projects/clang360-import/sys/sys/ucontext.h	Sat Jan 31 22:07:38 2015	(r278003)
@@ -99,7 +99,7 @@ struct thread;
 
 /* Machine-dependent functions: */
 int	get_mcontext(struct thread *, mcontext_t *, int);
-int	set_mcontext(struct thread *, const mcontext_t *);
+int	set_mcontext(struct thread *, mcontext_t *);
 
 #endif /* !_KERNEL */
 


More information about the svn-src-projects mailing list