[SLOF] [PATCH 4/4] Fix remaining typos in various folders

Thomas Huth thuth at redhat.com
Mon Mar 6 23:49:27 AEDT 2023


Found with the "codespell" utility

Signed-off-by: Thomas Huth <thuth at redhat.com>
---
 README                                   | 4 ++--
 include/libelf.h                         | 2 +-
 other-licence/x86emu/x86emu_changes.diff | 4 ++--
 other-licence/x86emu/x86emu_download.sh  | 2 +-
 romfs/tools/crclib.c                     | 4 ++--
 rtas/reloc.S                             | 2 +-
 rtas/rtas_call.c                         | 2 +-
 rtas/rtas_entry.S                        | 5 ++---
 slof/fs/base.fs                          | 2 +-
 tools/create_reloc_table.sh              | 2 +-
 tools/sloffs.c                           | 2 +-
 11 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/README b/README
index 4cee1b3..01942ae 100644
--- a/README
+++ b/README
@@ -99,7 +99,7 @@ The SLOF source code is structured into the following directories:
 - llfw : The Low-Level Firmware - this part is platform-specific firmware
          that is responsible to boot the system from the reset vector to a
          state where it is possible to run the Open Firmware Forth engine
-         (i.e. it sets up the necessary CPU registers, intializes the memory,
+         (i.e. it sets up the necessary CPU registers, initializes the memory,
          does some board-specific hardware configuration, etc.)
 
 - slof : The code for the Open Firmware environment, including the Forth
@@ -232,7 +232,7 @@ To add primitives:
     * 2x 256 MB, slots 3/4
     * 2x 256 MB, slots 1/2
 
- On a JS20 SLOF wil always report 0.5 GB even if there is much more memory
+ On a JS20 SLOF will always report 0.5 GB even if there is much more memory
  available.
 
  On a JS21 all memory configurations should work.
diff --git a/include/libelf.h b/include/libelf.h
index 29a4d04..5be3a32 100644
--- a/include/libelf.h
+++ b/include/libelf.h
@@ -56,7 +56,7 @@ struct ehdr {
 #define SHT_SHLIB	10	/* Reserved */
 #define SHT_DYNSYM	11	/* Dynamic loader symbol table */
 
-/* Section attributs (sh_flags) */
+/* Section attributes (sh_flags) */
 #define SHF_WRITE	0x1
 #define SHF_ALLOC	0x2
 #define SHF_EXECINSTR	0x4
diff --git a/other-licence/x86emu/x86emu_changes.diff b/other-licence/x86emu/x86emu_changes.diff
index 52b971a..c4aa363 100644
--- a/other-licence/x86emu/x86emu_changes.diff
+++ b/other-licence/x86emu/x86emu_changes.diff
@@ -816,8 +816,8 @@ diff -u -u -r1.1 -r1.4
  #define SYSMODE_PREFIX_REPNE    0x00000100
  #define SYSMODE_PREFIX_DATA     0x00000200
  #define SYSMODE_PREFIX_ADDR     0x00000400
-+//phueper: for REP(E|NE) Instructions, we need to decide wether it should be using
-+//the 32bit ECX register as or the 16bit CX register as count register
++// for REP(E|NE) Instructions, we need to decide whether it should be using
++// the 32bit ECX register or the 16bit CX register as count register
 +#define SYSMODE_32BIT_REP       0x00000800
  #define SYSMODE_INTR_PENDING    0x10000000
  #define SYSMODE_EXTRN_INTR      0x20000000
diff --git a/other-licence/x86emu/x86emu_download.sh b/other-licence/x86emu/x86emu_download.sh
index d4feff9..0044738 100755
--- a/other-licence/x86emu/x86emu_download.sh
+++ b/other-licence/x86emu/x86emu_download.sh
@@ -18,7 +18,7 @@ SVN=`which svn`
 PATCH=`which patch`
 DIFF_FILE=./x86emu_changes.diff
 
-# check wether svn, patch, ... is available...
+# check whether svn, patch, ... is available...
 
 if [ ! -x $SVN ]; then
 	echo "subversion executable not found!"
diff --git a/romfs/tools/crclib.c b/romfs/tools/crclib.c
index b8a66e3..7584a65 100644
--- a/romfs/tools/crclib.c
+++ b/romfs/tools/crclib.c
@@ -17,7 +17,7 @@
 uint64_t ui64Generator1;
 
 /**
- * calculate standart ethernet 32 bit CRC
+ * calculate standard ethernet 32 bit CRC
  * generator polynome is 0x104C11DB7
  * this algorithm can be used for encoding and decoding
  */
@@ -205,7 +205,7 @@ calCRCword(unsigned char *cPtr, uint32_t ui32NoWords, uint64_t AccumCRC)
 	createCRCParameter(&ui64Mask, &uiRegisterLength);
 
 	if ((ui32NoWords % 2) != 0) {
-		/* if Data string does not end at word boundery add one byte */
+		/* if Data string does not end at word boundary add one byte */
 		ui32NoWords++;
 		cPtr[ui32NoWords] = 0;
 	}
diff --git a/rtas/reloc.S b/rtas/reloc.S
index 1b5b59a..8e2e936 100644
--- a/rtas/reloc.S
+++ b/rtas/reloc.S
@@ -19,7 +19,7 @@ Function:
 		r4:   Configuration	
 	Output:		
 		r3:   Entry point for rtas calls	
-Decription: Called by OpenFirmware to instantiate rtas, needs to copy
+Description: Called by OpenFirmware to instantiate rtas, needs to copy
 	itself to destination, also do a relocations.
 	
 */
diff --git a/rtas/rtas_call.c b/rtas/rtas_call.c
index 8c7532c..61671d4 100644
--- a/rtas/rtas_call.c
+++ b/rtas/rtas_call.c
@@ -38,7 +38,7 @@ Function: rtas_call
 		rtas_args: pointer to RTAS arguments structure
 	Output:
 		
-Decription: Handle RTAS call. This C function is called
+Description: Handle RTAS call. This C function is called
 		from the asm function rtas_entry.
 */
 
diff --git a/rtas/rtas_entry.S b/rtas/rtas_entry.S
index 424137b..50411dc 100644
--- a/rtas/rtas_entry.S
+++ b/rtas/rtas_entry.S
@@ -20,9 +20,8 @@ Function:
 		r4:   base address
 	Output:		
 
-Decription: Main entry point, called from OS. Second parameter is not
-	used.	
-	
+Description:
+	Main entry point, called from OS. Second parameter is not used.
 */
 	.globl rtas_entry
 rtas_entry:	
diff --git a/slof/fs/base.fs b/slof/fs/base.fs
index d7f4e37..13a8aa2 100644
--- a/slof/fs/base.fs
+++ b/slof/fs/base.fs
@@ -488,7 +488,7 @@ constant <colon>
 ;
 
 \ peek/poke minimal implementation, just to support FCode drivers
-\ Any implmentation with full error detection will be platform specific
+\ Any implementation with full error detection will be platform specific
 : cpeek ( addr -- false | byte true ) c@ true ;
 : cpoke ( byte addr -- success? ) c! true ;
 : wpeek ( addr -- false | word true ) w@ true ;
diff --git a/tools/create_reloc_table.sh b/tools/create_reloc_table.sh
index d4790dd..77dfb87 100755
--- a/tools/create_reloc_table.sh
+++ b/tools/create_reloc_table.sh
@@ -37,7 +37,7 @@ while [ $# -gt 0 ] ; do
 done
 
 if [ -z $LDSFILE ]; then
-	echo "Please specifiy an lds file with the --lds option"
+	echo "Please specify an lds file with the --lds option"
 	exit 42
 fi
 
diff --git a/tools/sloffs.c b/tools/sloffs.c
index 264b0ea..f4a5fb8 100644
--- a/tools/sloffs.c
+++ b/tools/sloffs.c
@@ -248,7 +248,7 @@ update_modification_time(struct stH *header)
 	date = cpu_to_be64(strtoll(dastr, NULL, 16));
 
 	/* this does not match the definition from
-	 * struct stH, but we immitate the bug from
+	 * struct stH, but we imitate the bug from
 	 * flash image creation in create_crc.c.
 	 * The date is in mdate and time in padding2. */
 	memcpy(&(header->mdate), &date, 8);
-- 
2.31.1



More information about the SLOF mailing list