瀏覽代碼

fix spelling in linux-user sub directory

Cc: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Dong Xu Wang 13 年之前
父節點
當前提交
b4916d7b9d
共有 5 個文件被更改,包括 8 次插入8 次删除
  1. 1 1
      linux-user/elfload.c
  2. 1 1
      linux-user/flatload.c
  3. 2 2
      linux-user/main.c
  4. 1 1
      linux-user/signal.c
  5. 3 3
      linux-user/syscall_defs.h

+ 1 - 1
linux-user/elfload.c

@@ -2339,7 +2339,7 @@ static void fill_auxv_note(struct memelfnote *note, const TaskState *ts)
      * strictly necessary but we do it here for sake of completeness.
      * strictly necessary but we do it here for sake of completeness.
      */
      */
 
 
-    /* find out lenght of the vector, AT_NULL is terminator */
+    /* find out length of the vector, AT_NULL is terminator */
     i = len = 0;
     i = len = 0;
     do {
     do {
         get_user_ual(val, auxv);
         get_user_ual(val, auxv);

+ 1 - 1
linux-user/flatload.c

@@ -575,7 +575,7 @@ static int load_flat_file(struct linux_binprm * bprm,
      * help simplify all this mumbo jumbo
      * help simplify all this mumbo jumbo
      *
      *
      * We've got two different sections of relocation entries.
      * We've got two different sections of relocation entries.
-     * The first is the GOT which resides at the begining of the data segment
+     * The first is the GOT which resides at the beginning of the data segment
      * and is terminated with a -1.  This one can be relocated in place.
      * and is terminated with a -1.  This one can be relocated in place.
      * The second is the extra relocation entries tacked after the image's
      * The second is the extra relocation entries tacked after the image's
      * data segment. These require a little more processing as the entry is
      * data segment. These require a little more processing as the entry is

+ 2 - 2
linux-user/main.c

@@ -1638,7 +1638,7 @@ void cpu_loop(CPUPPCState *env)
             queue_signal(env, info.si_signo, &info);
             queue_signal(env, info.si_signo, &info);
             break;
             break;
         case POWERPC_EXCP_PIT:      /* Programmable interval timer IRQ       */
         case POWERPC_EXCP_PIT:      /* Programmable interval timer IRQ       */
-            cpu_abort(env, "Programable interval timer interrupt "
+            cpu_abort(env, "Programmable interval timer interrupt "
                       "while in user mode. Aborting\n");
                       "while in user mode. Aborting\n");
             break;
             break;
         case POWERPC_EXCP_IO:       /* IO error exception                    */
         case POWERPC_EXCP_IO:       /* IO error exception                    */
@@ -2434,7 +2434,7 @@ void cpu_loop (CPUState *env)
             if (env->iflags & D_FLAG) {
             if (env->iflags & D_FLAG) {
                 env->sregs[SR_ESR] |= 1 << 12;
                 env->sregs[SR_ESR] |= 1 << 12;
                 env->sregs[SR_PC] -= 4;
                 env->sregs[SR_PC] -= 4;
-                /* FIXME: if branch was immed, replay the imm aswell.  */
+                /* FIXME: if branch was immed, replay the imm as well.  */
             }
             }
 
 
             env->iflags &= ~(IMM_FLAG | D_FLAG);
             env->iflags &= ~(IMM_FLAG | D_FLAG);

+ 1 - 1
linux-user/signal.c

@@ -80,7 +80,7 @@ static uint8_t host_to_target_signal_table[_NSIG] = {
     [SIGSYS] = TARGET_SIGSYS,
     [SIGSYS] = TARGET_SIGSYS,
     /* next signals stay the same */
     /* next signals stay the same */
     /* Nasty hack: Reverse SIGRTMIN and SIGRTMAX to avoid overlap with
     /* Nasty hack: Reverse SIGRTMIN and SIGRTMAX to avoid overlap with
-       host libpthread signals.  This assumes noone actually uses SIGRTMAX :-/
+       host libpthread signals.  This assumes no one actually uses SIGRTMAX :-/
        To fix this properly we need to do manual signal delivery multiplexed
        To fix this properly we need to do manual signal delivery multiplexed
        over a single host signal.  */
        over a single host signal.  */
     [__SIGRTMIN] = __SIGRTMAX,
     [__SIGRTMIN] = __SIGRTMAX,

+ 3 - 3
linux-user/syscall_defs.h

@@ -1,7 +1,7 @@
 /* common syscall defines for all architectures */
 /* common syscall defines for all architectures */
 
 
 /* Note: although the syscall numbers change between architectures,
 /* Note: although the syscall numbers change between architectures,
-   most of them stay the same, so we handle it by puting ifdefs if
+   most of them stay the same, so we handle it by putting ifdefs if
    necessary */
    necessary */
 
 
 #include "syscall_nr.h"
 #include "syscall_nr.h"
@@ -669,7 +669,7 @@ typedef struct target_siginfo {
  * SIGBUS si_codes
  * SIGBUS si_codes
  */
  */
 #define TARGET_BUS_ADRALN       (1)	/* invalid address alignment */
 #define TARGET_BUS_ADRALN       (1)	/* invalid address alignment */
-#define TARGET_BUS_ADRERR       (2)	/* non-existant physical address */
+#define TARGET_BUS_ADRERR       (2)	/* non-existent physical address */
 #define TARGET_BUS_OBJERR       (3)	/* object specific hardware error */
 #define TARGET_BUS_OBJERR       (3)	/* object specific hardware error */
 
 
 /*
 /*
@@ -868,7 +868,7 @@ struct target_pollfd {
 #define TARGET_CDROM_GET_MCN		0x5311 /* Obtain the "Universal Product Code"
 #define TARGET_CDROM_GET_MCN		0x5311 /* Obtain the "Universal Product Code"
                                            if available (struct cdrom_mcn) */
                                            if available (struct cdrom_mcn) */
 #define TARGET_CDROM_GET_UPC		TARGET_CDROM_GET_MCN  /* This one is depricated,
 #define TARGET_CDROM_GET_UPC		TARGET_CDROM_GET_MCN  /* This one is depricated,
-                                          but here anyway for compatability */
+                                          but here anyway for compatibility */
 #define TARGET_CDROMRESET		0x5312 /* hard-reset the drive */
 #define TARGET_CDROMRESET		0x5312 /* hard-reset the drive */
 #define TARGET_CDROMVOLREAD		0x5313 /* Get the drive's volume setting
 #define TARGET_CDROMVOLREAD		0x5313 /* Get the drive's volume setting
                                           (struct cdrom_volctrl) */
                                           (struct cdrom_volctrl) */