Correct some more places where TO_PTR() should be used.

These were missed in r326228.

MFC after:	2 weeks
This commit is contained in:
Ed Schouten 2017-11-26 14:53:56 +00:00
parent ee13ffbe03
commit 2d19a20d5d
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ cloudabi32_thread_setregs(struct thread *td,
frame->tf_r1 = attr->argument;
/* Set up TLS. */
return (cpu_set_user_tls(td, (void *)tcb));
return (cpu_set_user_tls(td, TO_PTR(tcb)));
}
static struct sysentvec cloudabi32_elf_sysvec = {

View File

@ -157,7 +157,7 @@ cloudabi64_thread_setregs(struct thread *td,
frame->tf_x[1] = attr->argument;
/* Set up TLS. */
return (cpu_set_user_tls(td, (void *)tcb));
return (cpu_set_user_tls(td, TO_PTR(tcb)));
}
static struct sysentvec cloudabi64_elf_sysvec = {