diff options
author | netchild <netchild@FreeBSD.org> | 2006-08-16 18:54:51 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2006-08-16 18:54:51 +0000 |
commit | 39fd1c6d476c48c3facf010bff19549a4c804bb6 (patch) | |
tree | 9b98826a447368cd130db3286d51a49bdc063241 /sys | |
parent | 99c9166015cb50a6814489ec28d2988e688d4879 (diff) | |
download | FreeBSD-src-39fd1c6d476c48c3facf010bff19549a4c804bb6.zip FreeBSD-src-39fd1c6d476c48c3facf010bff19549a4c804bb6.tar.gz |
Style fixes to comments.
Sponsored by: Google SoC 2006
Submitted by: rdivacky
Noticed by: jhb, ssouhlal
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/linux32/linux.h | 3 | ||||
-rw-r--r-- | sys/amd64/linux32/linux32_machdep.c | 12 | ||||
-rw-r--r-- | sys/compat/linux/linux_emul.c | 14 | ||||
-rw-r--r-- | sys/compat/linux/linux_emul.h | 3 | ||||
-rw-r--r-- | sys/i386/linux/linux.h | 3 | ||||
-rw-r--r-- | sys/i386/linux/linux_machdep.c | 24 |
6 files changed, 39 insertions, 20 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 138871f..3cc3f5b 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -766,7 +766,8 @@ struct l_desc_struct { #define LINUX_LOWERWORD 0x0000ffff -/* macros which does the same thing as those in linux include/asm-um/ldt-i386.h +/* + * macros which does the same thing as those in linux include/asm-um/ldt-i386.h * these convert linux user-space descriptor to machine one */ #define LDT_entry_a(info) \ diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index dd795a4..01945e0 100644 --- a/sys/amd64/linux32/linux32_machdep.c +++ b/sys/amd64/linux32/linux32_machdep.c @@ -512,7 +512,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args) p2->p_sigparent = exit_signal; PROC_UNLOCK(p2); td2 = FIRST_THREAD_IN_PROC(p2); - /* in a case of stack = NULL we are supposed to COW calling process stack + /* + * in a case of stack = NULL we are supposed to COW calling process stack * this is what normal fork() does so we just keep the tf_rsp arg intact */ if (args->stack) @@ -628,7 +629,8 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) if (linux_args->flags & LINUX_MAP_GROWSDOWN) { bsd_args.flags |= MAP_STACK; - /* The linux MAP_GROWSDOWN option does not limit auto + /* + * The linux MAP_GROWSDOWN option does not limit auto * growth of the region. Linux mmap with this option * takes as addr the inital BOS, and as len, the initial * region size. It can then grow down from addr without @@ -655,7 +657,8 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) if ((caddr_t)PTRIN(bsd_args.addr) > p->p_vmspace->vm_maxsaddr) { - /* Some linux apps will attempt to mmap + /* + * Some linux apps will attempt to mmap * thread stacks near the top of their * address space. If their TOS is greater * than vm_maxsaddr, vm_map_growstack() @@ -683,7 +686,8 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) else bsd_args.len = STACK_SIZE - GUARD_SIZE; - /* This gives us a new BOS. If we're using VM_STACK, then + /* + * This gives us a new BOS. If we're using VM_STACK, then * mmap will just map the top SGROWSIZ bytes, and let * the stack grow down to the limit at BOS. If we're * not using VM_STACK we map the full stack, since we diff --git a/sys/compat/linux/linux_emul.c b/sys/compat/linux/linux_emul.c index f3398b9..9d14215 100644 --- a/sys/compat/linux/linux_emul.c +++ b/sys/compat/linux/linux_emul.c @@ -110,7 +110,8 @@ linux_proc_init(struct thread *td, pid_t child, int flags) em->child_clear_tid = NULL; em->child_set_tid = NULL; - /* allocate the shared struct only in clone()/fork cases + /* + * allocate the shared struct only in clone()/fork cases * in the case of clone() td = calling proc and child = pid of * the newly created proc */ @@ -190,9 +191,10 @@ linux_proc_exit(void *arg __unused, struct proc *p) cup.uaddr2 = NULL; cup.val3 = 0; error = linux_sys_futex(FIRST_THREAD_IN_PROC(p), &cup); - /* this cannot happen at the moment and if this happens + /* + * this cannot happen at the moment and if this happens * it probably mean there is a userspace bug - */ + */ if (error) printf(LMSG("futex stuff in proc_exit failed.\n")); } @@ -201,7 +203,8 @@ linux_proc_exit(void *arg __unused, struct proc *p) FREE(em, M_LINUX); } -/* This is used in a case of transition from FreeBSD binary execing to linux binary +/* + * This is used in a case of transition from FreeBSD binary execing to linux binary * in this case we create linux emuldata proc entry with the pid of the currently running * process. */ @@ -256,7 +259,8 @@ retry: em = em_find(p, EMUL_UNLOCKED); if (em == NULL) { - /* We might have been called before proc_init for this process so + /* + * We might have been called before proc_init for this process so * tsleep and be woken up by it. We use p->p_emuldata for this */ diff --git a/sys/compat/linux/linux_emul.h b/sys/compat/linux/linux_emul.h index 2eafb83..1cae3db 100644 --- a/sys/compat/linux/linux_emul.h +++ b/sys/compat/linux/linux_emul.h @@ -38,7 +38,8 @@ struct linux_emuldata_shared { LIST_HEAD(, linux_emuldata) threads; /* head of list of linux threads */ }; -/* modeled after similar structure in NetBSD +/* + * modeled after similar structure in NetBSD * this will be extended as we need more functionality */ struct linux_emuldata { diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 4bbf303..8defa6a 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -729,7 +729,8 @@ struct l_desc_struct { #define LINUX_LOWERWORD 0x0000ffff -/* macros which does the same thing as those in linux include/asm-um/ldt-i386.h +/* + * macros which does the same thing as those in linux include/asm-um/ldt-i386.h * these convert linux user-space descriptor to machine one */ #define LDT_entry_a(info) \ diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 1b73e7e..d49f425 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -440,7 +440,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args) p2->p_sigparent = exit_signal; PROC_UNLOCK(p2); td2 = FIRST_THREAD_IN_PROC(p2); - /* in a case of stack = NULL we are supposed to COW calling process stack + /* + * in a case of stack = NULL we are supposed to COW calling process stack * this is what normal fork() does so we just keep the tf_esp arg intact */ if (args->stack) @@ -458,7 +459,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args) idx = info.entry_number; - /* looks like we're getting the idx we returned + /* + * looks like we're getting the idx we returned * in the set_thread_area() syscall */ if (idx != 6 && idx != 3) @@ -606,7 +608,8 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) if (linux_args->flags & LINUX_MAP_GROWSDOWN) { bsd_args.flags |= MAP_STACK; - /* The linux MAP_GROWSDOWN option does not limit auto + /* + * The linux MAP_GROWSDOWN option does not limit auto * growth of the region. Linux mmap with this option * takes as addr the inital BOS, and as len, the initial * region size. It can then grow down from addr without @@ -631,7 +634,8 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) bsd_args.addr = linux_args->addr + linux_args->len; if (bsd_args.addr > p->p_vmspace->vm_maxsaddr) { - /* Some linux apps will attempt to mmap + /* + * Some linux apps will attempt to mmap * thread stacks near the top of their * address space. If their TOS is greater * than vm_maxsaddr, vm_map_growstack() @@ -658,7 +662,8 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) else bsd_args.len = STACK_SIZE - GUARD_SIZE; - /* This gives us a new BOS. If we're using VM_STACK, then + /* + * This gives us a new BOS. If we're using VM_STACK, then * mmap will just map the top SGROWSIZ bytes, and let * the stack grow down to the limit at BOS. If we're * not using VM_STACK we map the full stack, since we @@ -994,7 +999,8 @@ linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args #endif idx = info.entry_number; - /* Semantics of linux version: every thread in the system has array + /* + * Semantics of linux version: every thread in the system has array * of 3 tls descriptors. 1st is GLIBC TLS, 2nd is WINE, 3rd unknown. This * syscall loads one of the selected tls decriptors with a value * and also loads GDT descriptors 6, 7 and 8 with the content of the per-thread @@ -1008,14 +1014,16 @@ linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args * comment in the linux sources says wine might do that. */ - /* we support just GLIBC TLS now + /* + * we support just GLIBC TLS now * we should let 3 proceed as well because we use this segment so * if code does two subsequent calls it should succeed */ if (idx != 6 && idx != -1 && idx != 3) return (EINVAL); - /* we have to copy out the GDT entry we use + /* + * we have to copy out the GDT entry we use * FreeBSD uses GDT entry #3 for storing %gs so load that * XXX: what if userspace program doesnt check this value and tries * to use 6, 7 or 8? |