diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:46:57 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:46:57 +0200 |
commit | f63fff0be94f0c10bb7262dfc26074b847d0a98c (patch) | |
tree | f2ef9878d6c4b36b6993ddf152b8b9582fb4cb12 /sysdeps/mach/hurd/i386/pt-setup.c | |
parent | ef701f63fa3053a2d0560ac02390b3c8c912fa01 (diff) |
Fix coding style
Diffstat (limited to 'sysdeps/mach/hurd/i386/pt-setup.c')
-rw-r--r-- | sysdeps/mach/hurd/i386/pt-setup.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sysdeps/mach/hurd/i386/pt-setup.c b/sysdeps/mach/hurd/i386/pt-setup.c index 96ea95c..b498e50 100644 --- a/sysdeps/mach/hurd/i386/pt-setup.c +++ b/sysdeps/mach/hurd/i386/pt-setup.c @@ -38,7 +38,7 @@ Return the stack pointer for the new thread. */ static void * stack_setup (struct __pthread *thread, - void *(*start_routine)(void *), void *arg) + void *(*start_routine) (void *), void *arg) { error_t err; uintptr_t *bottom, *top; @@ -46,8 +46,8 @@ stack_setup (struct __pthread *thread, /* Calculate the top of the new stack. */ bottom = thread->stackaddr; top = (uintptr_t *) ((uintptr_t) bottom + thread->stacksize - + ((thread->guardsize + __vm_page_size-1) - / __vm_page_size) * __vm_page_size); + + ((thread->guardsize + __vm_page_size - 1) + / __vm_page_size) * __vm_page_size); if (start_routine) { @@ -72,8 +72,9 @@ stack_setup (struct __pthread *thread, int __pthread_setup (struct __pthread *thread, - void (*entry_point)(struct __pthread *, void *(*)(void *), void *), - void *(*start_routine)(void *), void *arg) + void (*entry_point) (struct __pthread *, void *(*)(void *), + void *), void *(*start_routine) (void *), + void *arg) { tcbhead_t *tcb; error_t err; @@ -95,9 +96,9 @@ __pthread_setup (struct __pthread *thread, else { err = __thread_set_pcsptp (thread->kernel_thread, - 1, thread->mcontext.pc, - 1, thread->mcontext.sp, - 1, thread->tcb); + 1, thread->mcontext.pc, + 1, thread->mcontext.sp, + 1, thread->tcb); assert_perror (err); tcb = thread->tcb; } |