summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-02-24 16:49:25 +0000
committernetchild <netchild@FreeBSD.org>2007-02-24 16:49:25 +0000
commit888f5e57b2c6d3791876a764fe95272318c69e47 (patch)
tree48c08e4600fc74cf326bb70101d0be9c156a2c50 /sys/i386
parentd9c67547e5e693ad8da5b127031a0d06d9c61d7a (diff)
downloadFreeBSD-src-888f5e57b2c6d3791876a764fe95272318c69e47.zip
FreeBSD-src-888f5e57b2c6d3791876a764fe95272318c69e47.tar.gz
Partial MFp4 of 114977:
Whitespace commit: Fix grammar, spelling and punctuation. Submitted by: "Scot Hetzel" <swhetzel@gmail.com>
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/linux/imgact_linux.c2
-rw-r--r--sys/i386/linux/linux.h2
-rw-r--r--sys/i386/linux/linux_machdep.c38
3 files changed, 23 insertions, 19 deletions
diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c
index cfc28e9..268936d 100644
--- a/sys/i386/linux/imgact_linux.c
+++ b/sys/i386/linux/imgact_linux.c
@@ -124,7 +124,7 @@ exec_linux_imgact(struct image_params *imgp)
/*
* Check if file_offset page aligned,.
- * Currently we cannot handle misalinged file offsets,
+ * Currently we cannot handle misaligned file offsets,
* and so we read in the entire image (what a waste).
*/
if (file_offset & PAGE_MASK) {
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 012a1f0..fb89cf4 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -743,7 +743,7 @@ struct l_desc_struct {
/*
* 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
+ * these convert linux user space descriptor to machine one
*/
#define LDT_entry_a(info) \
((((info)->base_addr & LINUX_LOWERWORD) << 16) | ((info)->limit & LINUX_LOWERWORD))
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c
index 70f81f4..83aa0d3 100644
--- a/sys/i386/linux/linux_machdep.c
+++ b/sys/i386/linux/linux_machdep.c
@@ -413,8 +413,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args)
/*
* XXX: in linux sharing of fs info (chroot/cwd/umask)
* and open files is independant. in fbsd its in one
- * structure but in reality it doesnt make any problems
- * because both this flags are set at once usually.
+ * structure but in reality it doesn't cause any problems
+ * because both of these flags are usually set together.
*/
if (!(args->flags & (CLONE_FILES | CLONE_FS)))
ff |= RFFDG;
@@ -424,7 +424,7 @@ linux_clone(struct thread *td, struct linux_clone_args *args)
* kernel threads. Unfortunately despite the existence of the
* CLONE_THREAD flag, version of linuxthreads package used in
* most popular distros as of beginning of 2005 doesn't make
- * any use of it. Therefore, this detection relay fully on
+ * any use of it. Therefore, this detection relies on
* empirical observation that linuxthreads sets certain
* combination of flags, so that we can make more or less
* precise detection and notify the FreeBSD kernel that several
@@ -724,7 +724,7 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args)
* Our mmap with MAP_STACK takes addr as the maximum
* downsize limit on BOS, and as len the max size of
* the region. It them maps the top SGROWSIZ bytes,
- * and autgrows the region down, up to the limit
+ * and auto grows the region down, up to the limit
* in addr.
*
* If we don't use the MAP_STACK option, the effect
@@ -1108,18 +1108,21 @@ linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args
idx = info.entry_number;
/*
- * 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
- * descriptors.
+ * 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 descriptors.
*
- * Semantics of fbsd version: I think we can ignore that linux has 3 per-thread
- * descriptors and use just the 1st one. The tls_array[] is used only in
- * set/get-thread_area() syscalls and for loading the GDT descriptors. In fbsd
- * we use just one GDT descriptor for TLS so we will load just one.
- * XXX: this doesnt work when user-space process tries to use more then 1 TLS segment
- * comment in the linux sources says wine might do that.
+ * Semantics of fbsd version: I think we can ignore that linux has 3
+ * per-thread descriptors and use just the 1st one. The tls_array[]
+ * is used only in set/get-thread_area() syscalls and for loading the
+ * GDT descriptors. In fbsd we use just one GDT descriptor for TLS so
+ * we will load just one.
+ *
+ * XXX: this doesn't work when a user space process tries to use more
+ * than 1 TLS segment. Comment in the linux sources says wine might do
+ * this.
*/
/*
@@ -1132,8 +1135,9 @@ linux_set_thread_area(struct thread *td, struct linux_set_thread_area_args *args
/*
* 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
+ * FreeBSD uses GDT entry #3 for storing %gs so load that
+ *
+ * XXX: what if a user space program doesn't check this value and tries
* to use 6, 7 or 8?
*/
idx = info.entry_number = 3;
OpenPOWER on IntegriCloud