Correct some more places where TO_PTR() should be used.
These were missed in r326228. MFC after: 2 weeks
This commit is contained in:
parent
ee13ffbe03
commit
2d19a20d5d
@ -165,7 +165,7 @@ cloudabi32_thread_setregs(struct thread *td,
|
|||||||
frame->tf_r1 = attr->argument;
|
frame->tf_r1 = attr->argument;
|
||||||
|
|
||||||
/* Set up TLS. */
|
/* 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 = {
|
static struct sysentvec cloudabi32_elf_sysvec = {
|
||||||
|
@ -157,7 +157,7 @@ cloudabi64_thread_setregs(struct thread *td,
|
|||||||
frame->tf_x[1] = attr->argument;
|
frame->tf_x[1] = attr->argument;
|
||||||
|
|
||||||
/* Set up TLS. */
|
/* 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 = {
|
static struct sysentvec cloudabi64_elf_sysvec = {
|
||||||
|
Loading…
Reference in New Issue
Block a user