summaryrefslogtreecommitdiffstats
path: root/sys/i386/i386
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-02-07 08:47:15 +0000
committerkib <kib@FreeBSD.org>2015-02-07 08:47:15 +0000
commit9dc38ea5dcf15da6e80250c0018fce6495e579f3 (patch)
tree17a888d04faa59609a799c86f005532e1b81fc0f /sys/i386/i386
parent834093cd4831fa6a41e4935603d1a85783f0f359 (diff)
downloadFreeBSD-src-9dc38ea5dcf15da6e80250c0018fce6495e579f3.zip
FreeBSD-src-9dc38ea5dcf15da6e80250c0018fce6495e579f3.tar.gz
MFC r278001:
Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as const.
Diffstat (limited to 'sys/i386/i386')
-rw-r--r--sys/i386/i386/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 05ea4e0..bbedfe0 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -197,7 +197,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 *);
@@ -3839,7 +3839,7 @@ get_mcontext(struct thread *td, mcontext_t *mcp, int flags)
* 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;
@@ -3917,7 +3917,7 @@ get_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpusave,
}
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;
OpenPOWER on IntegriCloud