summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-30 00:26:38 +0000
committerpfg <pfg@FreeBSD.org>2016-04-30 00:26:38 +0000
commit3a9fc3c9d551a96758e6a8f5ef579640c8faee84 (patch)
tree43c11f9671a081b7623d4359fca6d559b4dc78fd
parent979921fbb70543a572272cdbcdeb037ddb836af4 (diff)
downloadFreeBSD-src-3a9fc3c9d551a96758e6a8f5ef579640c8faee84.zip
FreeBSD-src-3a9fc3c9d551a96758e6a8f5ef579640c8faee84.tar.gz
sys/boot: spelling fixes in comments.
No functional change.
-rw-r--r--sys/boot/arm/at91/bootiic/env_vars.c2
-rw-r--r--sys/boot/arm/at91/bootspi/env_vars.c2
-rw-r--r--sys/boot/arm/at91/libat91/at91rm9200.h6
-rw-r--r--sys/boot/arm/at91/libat91/mci_device.h10
-rw-r--r--sys/boot/efi/boot1/boot1.c4
-rw-r--r--sys/boot/efi/include/amd64/efibind.h2
-rw-r--r--sys/boot/efi/include/arm/efibind.h2
-rw-r--r--sys/boot/efi/include/arm64/efibind.h4
-rw-r--r--sys/boot/efi/include/efiuga.h2
-rw-r--r--sys/boot/efi/include/i386/efibind.h2
-rw-r--r--sys/boot/efi/loader/main.c2
-rw-r--r--sys/boot/fdt/fdt_loader_cmd.c6
-rw-r--r--sys/boot/i386/libfirewire/dconsole.c2
-rw-r--r--sys/boot/i386/libfirewire/fwohci.c4
-rw-r--r--sys/boot/i386/libi386/amd64_tramp.S2
-rw-r--r--sys/boot/i386/libi386/pxe.h6
-rw-r--r--sys/boot/i386/zfsboot/zfsboot.c2
-rw-r--r--sys/boot/ofw/common/main.c2
-rw-r--r--sys/boot/pc98/boot0.5/disk.s2
-rw-r--r--sys/boot/pc98/boot0.5/putssjis.s2
-rw-r--r--sys/boot/pc98/boot0.5/support.s2
-rw-r--r--sys/boot/uboot/fdt/uboot_fdt.c2
22 files changed, 35 insertions, 35 deletions
diff --git a/sys/boot/arm/at91/bootiic/env_vars.c b/sys/boot/arm/at91/bootiic/env_vars.c
index f402a43..ac0b4f9 100644
--- a/sys/boot/arm/at91/bootiic/env_vars.c
+++ b/sys/boot/arm/at91/bootiic/env_vars.c
@@ -41,7 +41,7 @@ static int currentOffset;
/*
* .KB_C_FN_DEFINITION_START
* int ReadCharFromEnvironment(char *)
- * This private function reads characters from the enviroment variables
+ * This private function reads characters from the environment variables
* to service the command prompt during auto-boot or just to setup the
* default environment. Returns positive value if valid character was
* set in the pointer. Returns negative value to signal input stream
diff --git a/sys/boot/arm/at91/bootspi/env_vars.c b/sys/boot/arm/at91/bootspi/env_vars.c
index 7ab250e..29b819b 100644
--- a/sys/boot/arm/at91/bootspi/env_vars.c
+++ b/sys/boot/arm/at91/bootspi/env_vars.c
@@ -41,7 +41,7 @@ static int currentOffset;
/*
* .KB_C_FN_DEFINITION_START
* int ReadCharFromEnvironment(char *)
- * This private function reads characters from the enviroment variables
+ * This private function reads characters from the environment variables
* to service the command prompt during auto-boot or just to setup the
* default environment. Returns positive value if valid character was
* set in the pointer. Returns negative value to signal input stream
diff --git a/sys/boot/arm/at91/libat91/at91rm9200.h b/sys/boot/arm/at91/libat91/at91rm9200.h
index 80d44c8..42dc969 100644
--- a/sys/boot/arm/at91/libat91/at91rm9200.h
+++ b/sys/boot/arm/at91/libat91/at91rm9200.h
@@ -474,7 +474,7 @@ typedef struct _AT91S_ST {
#define AT91C_ST_CRTV (0xFFFFFu << 0) // (ST) Current Real-time Value
// *****************************************************************************
-// SOFTWARE API DEFINITION FOR Power Management Controler
+// SOFTWARE API DEFINITION FOR Power Management Controller
// *****************************************************************************
typedef struct _AT91S_PMC {
AT91_REG PMC_SCER; // System Clock Enable Register
@@ -547,7 +547,7 @@ typedef struct _AT91S_PMC {
// -------- PMC_IMR : (PMC Offset: 0x6c) PMC Interrupt Mask Register --------
// *****************************************************************************
-// SOFTWARE API DEFINITION FOR Clock Generator Controler
+// SOFTWARE API DEFINITION FOR Clock Generator Controller
// *****************************************************************************
typedef struct _AT91S_CKGR {
AT91_REG CKGR_MOR; // Main Oscillator Register
@@ -590,7 +590,7 @@ typedef struct _AT91S_CKGR {
#define AT91C_CKGR_USB_PLL (0x1u << 29) // (CKGR) PLL Use
// *****************************************************************************
-// SOFTWARE API DEFINITION FOR Parallel Input Output Controler
+// SOFTWARE API DEFINITION FOR Parallel Input Output Controller
// *****************************************************************************
typedef struct _AT91S_PIO {
AT91_REG PIO_PER; // PIO Enable Register
diff --git a/sys/boot/arm/at91/libat91/mci_device.h b/sys/boot/arm/at91/libat91/mci_device.h
index c2b75ad..9f2f665 100644
--- a/sys/boot/arm/at91/libat91/mci_device.h
+++ b/sys/boot/arm/at91/libat91/mci_device.h
@@ -106,15 +106,15 @@ typedef struct _AT91S_MciDevice
///////////////////////////////////////////////////////////////////////////////
#define AT91C_CMD_SEND_OK 0 // Command ok
#define AT91C_CMD_SEND_ERROR -1 // Command failed
-#define AT91C_INIT_OK 2 // Init Successfull
+#define AT91C_INIT_OK 2 // Init Successful
#define AT91C_INIT_ERROR 3 // Init Failed
-#define AT91C_READ_OK 4 // Read Successfull
+#define AT91C_READ_OK 4 // Read Successful
#define AT91C_READ_ERROR 5 // Read Failed
-#define AT91C_WRITE_OK 6 // Write Successfull
+#define AT91C_WRITE_OK 6 // Write Successful
#define AT91C_WRITE_ERROR 7 // Write Failed
-#define AT91C_ERASE_OK 8 // Erase Successfull
+#define AT91C_ERASE_OK 8 // Erase Successful
#define AT91C_ERASE_ERROR 9 // Erase Failed
-#define AT91C_CARD_SELECTED_OK 10 // Card Selection Successfull
+#define AT91C_CARD_SELECTED_OK 10 // Card Selection Successful
#define AT91C_CARD_SELECTED_ERROR 11 // Card Selection Failed
#define AT91C_MCI_SR_ERROR (AT91C_MCI_UNRE | AT91C_MCI_OVRE | AT91C_MCI_DTOE | \
diff --git a/sys/boot/efi/boot1/boot1.c b/sys/boot/efi/boot1/boot1.c
index 1b84d41..7383387 100644
--- a/sys/boot/efi/boot1/boot1.c
+++ b/sys/boot/efi/boot1/boot1.c
@@ -103,8 +103,8 @@ nodes_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath)
/*
* device_paths_match returns TRUE if the imgpath isn't NULL and all nodes
- * in imgpath and devpath match up to their respect occurances of a media
- * node, FALSE otherwise.
+ * in imgpath and devpath match up to their respective occurrences of a
+ * media node, FALSE otherwise.
*/
static BOOLEAN
device_paths_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath)
diff --git a/sys/boot/efi/include/amd64/efibind.h b/sys/boot/efi/include/amd64/efibind.h
index d7a8dc0..8cfce5b 100644
--- a/sys/boot/efi/include/amd64/efibind.h
+++ b/sys/boot/efi/include/amd64/efibind.h
@@ -238,7 +238,7 @@ typedef uint64_t UINTN;
#else // EFI_NT_EMULATOR
//
-// When build similiar to FW, then link everything together as
+// When building similar to FW, link everything together as
// one big module.
//
diff --git a/sys/boot/efi/include/arm/efibind.h b/sys/boot/efi/include/arm/efibind.h
index 85537ad..177032a 100644
--- a/sys/boot/efi/include/arm/efibind.h
+++ b/sys/boot/efi/include/arm/efibind.h
@@ -34,7 +34,7 @@ Abstract:
//
-// Make sure we are useing the correct packing rules per EFI specification
+// Make sure we are using the correct packing rules per EFI specification
//
#ifndef __GNUC__
#pragma pack()
diff --git a/sys/boot/efi/include/arm64/efibind.h b/sys/boot/efi/include/arm64/efibind.h
index 142f162..4751e2e 100644
--- a/sys/boot/efi/include/arm64/efibind.h
+++ b/sys/boot/efi/include/arm64/efibind.h
@@ -176,7 +176,7 @@ typedef uint64_t UINTN;
#define VOLATILE volatile
//
-// BugBug: Need to find out if this is portable accross compliers.
+// BugBug: Need to find out if this is portable across compilers.
//
void __mfa (void);
#define MEMORY_FENCE() __mfa()
@@ -190,7 +190,7 @@ void __mfa (void);
#endif
//
-// When build similiar to FW, then link everything together as
+// When build similar to FW, then link everything together as
// one big module.
//
diff --git a/sys/boot/efi/include/efiuga.h b/sys/boot/efi/include/efiuga.h
index 6dfaf50..28c738e 100644
--- a/sys/boot/efi/include/efiuga.h
+++ b/sys/boot/efi/include/efiuga.h
@@ -139,7 +139,7 @@ typedef enum {
@retval EFI_SUCCESS - The Blt operation completed.
@retval EFI_INVALID_PARAMETER - BltOperation is not valid.
- @retval EFI_DEVICE_ERROR - A hardware error occured writting to the video buffer.
+ @retval EFI_DEVICE_ERROR - A hardware error occurred writting to the video buffer.
--*/
typedef
diff --git a/sys/boot/efi/include/i386/efibind.h b/sys/boot/efi/include/i386/efibind.h
index 6e5a716..0f1d4f1 100644
--- a/sys/boot/efi/include/i386/efibind.h
+++ b/sys/boot/efi/include/i386/efibind.h
@@ -234,7 +234,7 @@ typedef uint32_t UINTN;
#else // EFI_NT_EMULATOR
//
-// When build similiar to FW, then link everything together as
+// When build similar to FW, then link everything together as
// one big module.
//
diff --git a/sys/boot/efi/loader/main.c b/sys/boot/efi/loader/main.c
index 91b39b1..2efffce 100644
--- a/sys/boot/efi/loader/main.c
+++ b/sys/boot/efi/loader/main.c
@@ -74,7 +74,7 @@ static void efi_zfs_probe(void);
/*
* Need this because EFI uses UTF-16 unicode string constants, but we
- * use UTF-8. We can't use printf due to the possiblity of \0 and we
+ * use UTF-8. We can't use printf due to the possibility of \0 and we
* don't support support wide characters either.
*/
static void
diff --git a/sys/boot/fdt/fdt_loader_cmd.c b/sys/boot/fdt/fdt_loader_cmd.c
index 6983a59..1ad9a23 100644
--- a/sys/boot/fdt/fdt_loader_cmd.c
+++ b/sys/boot/fdt/fdt_loader_cmd.c
@@ -158,7 +158,7 @@ fdt_find_static_dtb()
}
/*
- * The most efficent way to find a symbol would be to calculate a
+ * The most efficient way to find a symbol would be to calculate a
* hash, find proper bucket and chain, and thus find a symbol.
* However, that would involve code duplication (e.g. for hash
* function). So we're using simpler and a bit slower way: we're
@@ -652,7 +652,7 @@ fdt_fixup_memory(struct fdt_mem_region *region, size_t num)
if (fdt_get_mem_rsv(fdtp, i, &rstart, &rsize))
break;
if (rsize) {
- /* Ensure endianess, and put cells into a buffer */
+ /* Ensure endianness, and put cells into a buffer */
if (addr_cells == 2)
*(uint64_t *)buf =
cpu_to_fdt64(rstart);
@@ -701,7 +701,7 @@ fdt_fixup_memory(struct fdt_mem_region *region, size_t num)
for (i = 0; i < num; i++) {
curmr = &region[i];
if (curmr->size != 0) {
- /* Ensure endianess, and put cells into a buffer */
+ /* Ensure endianness, and put cells into a buffer */
if (addr_cells == 2)
*(uint64_t *)buf =
cpu_to_fdt64(curmr->start);
diff --git a/sys/boot/i386/libfirewire/dconsole.c b/sys/boot/i386/libfirewire/dconsole.c
index 16645e2..1528faf 100644
--- a/sys/boot/i386/libfirewire/dconsole.c
+++ b/sys/boot/i386/libfirewire/dconsole.c
@@ -53,7 +53,7 @@ uint32_t dcons_paddr;
* that is mapped at the very early boot state.
* - We expect identiy map only for regions before KERNLOAD
* (i386:4MB amd64:1MB).
- * - It seems that heap in conventional memory(640KB) is not sufficent
+ * - It seems that heap in conventional memory(640KB) is not sufficient
* and we move it to high address as LOADER_SUPPORT_BZIP2.
* - BSS is placed in conventional memory.
*/
diff --git a/sys/boot/i386/libfirewire/fwohci.c b/sys/boot/i386/libfirewire/fwohci.c
index 326e44b..567abcf 100644
--- a/sys/boot/i386/libfirewire/fwohci.c
+++ b/sys/boot/i386/libfirewire/fwohci.c
@@ -217,7 +217,7 @@ fwohci_reset(struct fwohci_softc *sc, device_t dev)
/* Disable interrupts */
OWRITE(sc, FWOHCI_INTMASKCLR, ~0);
- /* FLUSH FIFO and reset Transmitter/Reciever */
+ /* FLUSH FIFO and reset Transmitter/Receiver */
OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_RESET);
if (firewire_debug)
device_printf(dev, "resetting OHCI...");
@@ -297,7 +297,7 @@ fwohci_init(struct fwohci_softc *sc, device_t dev)
return (ENXIO);
#if 0
-/* SID recieve buffer must align 2^11 */
+/* SID receive buffer must align 2^11 */
#define OHCI_SIDSIZE (1 << 11)
sc->sid_buf = fwdma_malloc(&sc->fc, OHCI_SIDSIZE, OHCI_SIDSIZE,
&sc->sid_dma, BUS_DMA_WAITOK);
diff --git a/sys/boot/i386/libi386/amd64_tramp.S b/sys/boot/i386/libi386/amd64_tramp.S
index fe0cf83..6359b90 100644
--- a/sys/boot/i386/libi386/amd64_tramp.S
+++ b/sys/boot/i386/libi386/amd64_tramp.S
@@ -96,7 +96,7 @@ amd64_tramp:
orl $CR0_PG, %eax
movl %eax, %cr0
- /* Now we're in compatability mode. set %cs for long mode */
+ /* Now we're in compatibility mode. set %cs for long mode */
movl $VTOP(gdtdesc), %eax
movl VTOP(entry_hi), %esi
movl VTOP(entry_lo), %edi
diff --git a/sys/boot/i386/libi386/pxe.h b/sys/boot/i386/libi386/pxe.h
index 651bdcd..9729562 100644
--- a/sys/boot/i386/libi386/pxe.h
+++ b/sys/boot/i386/libi386/pxe.h
@@ -226,7 +226,7 @@ typedef struct {
#define PXENV_UNDI_SET_STATION_ADDRESS 0x000A
typedef struct {
PXENV_STATUS_t Status;
- MAC_ADDR StationAddress; /* Temp MAC addres to use */
+ MAC_ADDR StationAddress; /* Temp MAC address to use */
} PACKED t_PXENV_UNDI_SET_STATION_ADDR;
#define PXENV_UNDI_SET_PACKET_FILTER 0x000B
@@ -330,7 +330,7 @@ typedef struct {
PXENV_STATUS_t Status;
uint16_t FuncFlag; /* PXENV_UNDI_ISR_OUT_xxx */
uint16_t BufferLength; /* Length of Frame */
- uint16_t FrameLength; /* Total length of reciever frame */
+ uint16_t FrameLength; /* Total length of receiver frame */
uint16_t FrameHeaderLength; /* Length of the media header in Frame */
SEGOFF16_t Frame; /* receive buffer */
uint8_t ProtType; /* Protocol type */
@@ -344,7 +344,7 @@ typedef struct {
# define PXENV_UNDI_ISR_OUT_NOT_OUTS 1
/*
- * one of these will bre returnd for PXEND_UNDI_ISR_IN_PROCESS
+ * one of these will bre returned for PXEND_UNDI_ISR_IN_PROCESS
* and PXENV_UNDI_ISR_IN_GET_NEXT
*/
# define PXENV_UNDI_ISR_OUT_DONE 0
diff --git a/sys/boot/i386/zfsboot/zfsboot.c b/sys/boot/i386/zfsboot/zfsboot.c
index 71d6cfa..928e41a 100644
--- a/sys/boot/i386/zfsboot/zfsboot.c
+++ b/sys/boot/i386/zfsboot/zfsboot.c
@@ -451,7 +451,7 @@ probe_drive(struct dsk *dsk)
}
/*
- * Probe all GPT partitions for the presense of ZFS pools. We
+ * Probe all GPT partitions for the presence of ZFS pools. We
* return the spa_t for the first we find (if requested). This
* will have the effect of booting from the first pool on the
* disk.
diff --git a/sys/boot/ofw/common/main.c b/sys/boot/ofw/common/main.c
index 0913f0c..b15df5f 100644
--- a/sys/boot/ofw/common/main.c
+++ b/sys/boot/ofw/common/main.c
@@ -98,7 +98,7 @@ main(int (*openfirm)(void *))
char **bargv;
/*
- * Initalise the Open Firmware routines by giving them the entry point.
+ * Initialise the Open Firmware routines by giving them the entry point.
*/
OF_init(openfirm);
diff --git a/sys/boot/pc98/boot0.5/disk.s b/sys/boot/pc98/boot0.5/disk.s
index 162dce9..6e80348 100644
--- a/sys/boot/pc98/boot0.5/disk.s
+++ b/sys/boot/pc98/boot0.5/disk.s
@@ -249,7 +249,7 @@ scsi_loop:
movb %ah, %bl
shlw %bx
shlw %bx
- addw $0x460, %bx # SCSI paramter block
+ addw $0x460, %bx # SCSI parameter block
call read_biosparam
orb %dl, %dl
jz no_scsi_unit
diff --git a/sys/boot/pc98/boot0.5/putssjis.s b/sys/boot/pc98/boot0.5/putssjis.s
index 4a75b97..221b9e6 100644
--- a/sys/boot/pc98/boot0.5/putssjis.s
+++ b/sys/boot/pc98/boot0.5/putssjis.s
@@ -33,7 +33,7 @@
#
# Display string with Shift-JIS support
- # %si: addres of string, %di: T-VRAM address, %cx: count
+ # %si: address of string, %di: T-VRAM address, %cx: count
#
# Absolute address of putssjis_entry must be 0x1243.
diff --git a/sys/boot/pc98/boot0.5/support.s b/sys/boot/pc98/boot0.5/support.s
index 65f5a9a..df1115b 100644
--- a/sys/boot/pc98/boot0.5/support.s
+++ b/sys/boot/pc98/boot0.5/support.s
@@ -55,7 +55,7 @@ read_biosparam:
ret
#
-# Write one byte to BIOS paramter block
+# Write one byte to BIOS parameter block
# %bx offset
# %dl value
#
diff --git a/sys/boot/uboot/fdt/uboot_fdt.c b/sys/boot/uboot/fdt/uboot_fdt.c
index 848d859..1865310 100644
--- a/sys/boot/uboot/fdt/uboot_fdt.c
+++ b/sys/boot/uboot/fdt/uboot_fdt.c
@@ -157,7 +157,7 @@ fdt_platform_fixups(void)
if (n != 0) {
/*
- * Find the lenght of the interface id by
+ * Find the length of the interface id by
* taking in to account the first 3 and
* last 4 characters.
*/
OpenPOWER on IntegriCloud