Peter Stuge (peter(a)stuge.se) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1556
-gerrit
commit 84287e42b9dfb0b744f10cb1abff3a9f77b93884
Author: Peter Stuge <peter(a)stuge.se>
Date: Thu Oct 4 21:18:13 2012 +0200
SMBIOS: Allow overriding default Manufacturer and Product names
The vendor and part name from coreboot is normally stored in these
SMBIOS structure fields, but it can be useful to override them.
On Lenovo ThinkPads an override is e.g. needed to convince the Linux
thinkpad_acpi.c driver that it is actually running on a ThinkPad.
Change-Id: I0dfe38b9f6f99b3376f1547412ecc97c2f7aff2b
Signed-off-by: Peter Stuge <peter(a)stuge.se>
---
src/arch/x86/boot/smbios.c | 6 +++---
src/mainboard/Kconfig | 15 +++++++++++++++
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c
index 308336a..073c7c5 100644
--- a/src/arch/x86/boot/smbios.c
+++ b/src/arch/x86/boot/smbios.c
@@ -192,8 +192,8 @@ static int smbios_write_type1(unsigned long *current, int handle)
t->type = SMBIOS_SYSTEM_INFORMATION;
t->handle = handle;
t->length = len - 2;
- t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_VENDOR);
- t->product_name = smbios_add_string(t->eos, CONFIG_MAINBOARD_PART_NUMBER);
+ t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_SMBIOS_MANUFACTURER);
+ t->product_name = smbios_add_string(t->eos, CONFIG_MAINBOARD_SMBIOS_PRODUCT_NAME);
t->serial_number = smbios_add_string(t->eos, smbios_mainboard_serial_number());
t->version = smbios_add_string(t->eos, smbios_mainboard_version());
len = t->length + smbios_string_table_len(t->eos);
@@ -210,7 +210,7 @@ static int smbios_write_type3(unsigned long *current, int handle)
t->type = SMBIOS_SYSTEM_ENCLOSURE;
t->handle = handle;
t->length = len - 2;
- t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_VENDOR);
+ t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_SMBIOS_MANUFACTURER);
t->bootup_state = SMBIOS_STATE_SAFE;
t->power_supply_state = SMBIOS_STATE_SAFE;
t->thermal_state = SMBIOS_STATE_SAFE;
diff --git a/src/mainboard/Kconfig b/src/mainboard/Kconfig
index d6413c9..a8cf362 100644
--- a/src/mainboard/Kconfig
+++ b/src/mainboard/Kconfig
@@ -347,4 +347,19 @@ config MAINBOARD_VERSION
default "1.0"
help
Define the used version number which will be used by SMBIOS tables.
+
+config MAINBOARD_SMBIOS_MANUFACTURER
+ string "SMBIOS Manufacturer"
+ depends on GENERATE_SMBIOS_TABLES
+ default MAINBOARD_VENDOR
+ help
+ Override the default Manufacturer stored in SMBIOS structures.
+
+config MAINBOARD_SMBIOS_PRODUCT_NAME
+ string "SMBIOS Product name"
+ depends on GENERATE_SMBIOS_TABLES
+ default MAINBOARD_PART_NUMBER
+ help
+ Override the default Product name stored in SMBIOS structures.
+
endmenu
Martin Roth (martin.roth(a)se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3730
-gerrit
commit d1a7734e6d187aac59a17977a5c33ae82fe61b76
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Mon Jul 8 16:24:19 2013 -0600
device: Fix spelling
Change-Id: I53a40d114aa2da76398c5b97443d4096809dcf36
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/device/device.c | 14 +++++++-------
src/device/device_util.c | 4 ++--
src/device/dram/ddr3.c | 6 +++---
src/device/hypertransport.c | 10 +++++-----
src/device/oprom/include/x86emu/regs.h | 4 ++--
src/device/oprom/include/x86emu/x86emu.h | 8 ++++----
src/device/oprom/realmode/x86_interrupts.c | 4 ++--
src/device/oprom/x86emu/debug.h | 2 +-
src/device/oprom/x86emu/decode.c | 10 +++++-----
src/device/oprom/x86emu/ops.c | 16 ++++++++--------
src/device/oprom/x86emu/prim_ops.c | 14 +++++++-------
src/device/oprom/x86emu/sys.c | 4 ++--
src/device/oprom/x86emu/x86emui.h | 2 +-
src/device/oprom/yabel/biosemu.c | 4 ++--
src/device/oprom/yabel/biosemu.h | 6 +++---
src/device/oprom/yabel/compat/functions.c | 2 +-
src/device/oprom/yabel/device.c | 20 ++++++++++----------
src/device/oprom/yabel/interrupt.c | 4 ++--
src/device/oprom/yabel/io.c | 12 ++++++------
src/device/oprom/yabel/mem.c | 8 ++++----
src/device/oprom/yabel/pmm.c | 2 +-
src/device/oprom/yabel/pmm.h | 6 +++---
src/device/oprom/yabel/vbe.c | 4 ++--
23 files changed, 83 insertions(+), 83 deletions(-)
diff --git a/src/device/device.c b/src/device/device.c
index a971270..3837928 100644
--- a/src/device/device.c
+++ b/src/device/device.c
@@ -83,7 +83,7 @@ uint64_t uma_memory_size = 0;
/**
* Allocate a new device structure.
*
- * Allocte a new device structure and attach it to the device tree as a
+ * Allocate a new device structure and attach it to the device tree as a
* child of the parent bus.
*
* @param parent Parent bus the newly created device should be attached to.
@@ -415,7 +415,7 @@ static void compute_resources(struct bus *bus, struct resource *bridge,
* A PCI bridge resource does not need to be a power of two size, but
* it does have a minimum granularity. Round the size up to that
* minimum granularity so we know not to place something else at an
- * address postitively decoded by the bridge.
+ * address positively decoded by the bridge.
*/
bridge->size = round(base, bridge->gran) -
round(bridge->base, bridge->align);
@@ -730,7 +730,7 @@ device_t vga_pri = 0;
static void set_vga_bridge_bits(void)
{
/*
- * FIXME: Modify set_vga_bridge() so it is less PCI centric!
+ * FIXME: Modify set_vga_bridge() so it is less PCI-centric!
* This function knows too much about PCI stuff, it should be just
* an iterator/visitor.
*/
@@ -835,7 +835,7 @@ void assign_resources(struct bus *bus)
*
* The parent's resources should be enabled first to avoid having enabling
* order problem. This is done by calling the parent's enable_resources()
- * method before its childrens' enable_resources() methods.
+ * method before its children's enable_resources() methods.
*
* @param link The link whose devices' resources are to be enabled.
*/
@@ -959,7 +959,7 @@ void dev_enumerate(void)
*
* Starting at the root of the device tree, travel it recursively in two
* passes. In the first pass, we compute and allocate resources (ranges)
- * requried by each device. In the second pass, the resources ranges are
+ * required by each device. In the second pass, the resources ranges are
* relocated to their final position and stored to the hardware.
*
* I/O resources grow upward. MEM resources grow downward.
@@ -1025,7 +1025,7 @@ void dev_configure(void)
/*
* Now we need to adjust the resources. MEM resources need to start at
- * the highest address managable.
+ * the highest address manageable.
*/
for (child = root->link_list->children; child; child = child->sibling) {
if (child->path.type != DEVICE_PATH_DOMAIN)
@@ -1093,7 +1093,7 @@ void dev_enable(void)
* Initialize a specific device.
*
* The parent should be initialized first to avoid having an ordering problem.
- * This is done by calling the parent's init() method before its childrens'
+ * This is done by calling the parent's init() method before its children's
* init() methods.
*
* @param dev The device to be initialized.
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 180169d..d2c99e1 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -285,7 +285,7 @@ int path_eq(struct device_path *path1, struct device_path *path2)
equal = (path1->cpu_bus.id == path2->cpu_bus.id);
break;
default:
- printk(BIOS_ERR, "Uknown device type: %d\n", path1->type);
+ printk(BIOS_ERR, "Unknown device type: %d\n", path1->type);
break;
}
@@ -544,7 +544,7 @@ const char *resource_type(struct resource *resource)
/**
* Print the resource that was just stored.
*
- * @param dev The device the stored resorce lives on.
+ * @param dev The device the stored resource lives on.
* @param resource The resource that was just stored.
* @param comment TODO
*/
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c
index 6e3fc2a..d98de91 100644
--- a/src/device/dram/ddr3.c
+++ b/src/device/dram/ddr3.c
@@ -55,7 +55,7 @@ int dimm_is_registered(enum spd_dimm_type type)
* @ref dimm_attr structure. The SPD data must first be read in a contiguous
* array, and passed to this function.
*
- * @param dimm pointer to @ref dimm_attr stucture where the decoded data is to
+ * @param dimm pointer to @ref dimm_attr structure where the decoded data is to
* be stored
* @param spd array of raw data previously read from the SPD.
*
@@ -309,7 +309,7 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
if (spd[63] & 0x01) {
dimm->flags.pins_mirrored = 1;
- printram(" DIMM Rank1 Address bits mirrorred!!!\n");
+ printram(" DIMM Rank1 Address bits mirrored!!!\n");
}
return ret;
@@ -336,7 +336,7 @@ static void print_ns(const char *msg, u32 val)
* Print info about the DIMM. Useful to use when CONFIG_DEBUG_RAM_SETUP is
* selected, or for a purely informative output.
*
-* @param dimm pointer to already decoded @ref dimm_attr stucture
+* @param dimm pointer to already decoded @ref dimm_attr structure
*/
void dram_print_spd_ddr3(const dimm_attr * dimm)
{
diff --git a/src/device/hypertransport.c b/src/device/hypertransport.c
index 11ea9a5..d9ab486 100644
--- a/src/device/hypertransport.c
+++ b/src/device/hypertransport.c
@@ -106,7 +106,7 @@ static unsigned ht_read_freq_cap(device_t dev, unsigned pos)
#if CONFIG_K8_HT_FREQ_1G_SUPPORT
#if !CONFIG_K8_REV_F_SUPPORT
- /* Only e0 later suupport 1GHz HT. */
+ /* Only e0 later support 1GHz HT. */
if (is_cpu_pre_e0())
freq_cap &= ~(1 << HT_FREQ_1000Mhz);
#endif
@@ -176,7 +176,7 @@ static int ht_setup_link(struct ht_link *prev, device_t dev, unsigned pos)
upstream_width_cap =
pci_read_config8(prev->dev, prev->pos + prev->config_off);
- /* Calculate the highest useable frequency. */
+ /* Calculate the highest usable frequency. */
freq = log2(present_freq_cap & upstream_freq_cap);
/* Calculate the highest width. */
@@ -436,7 +436,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn,
device_t real_last_dev = NULL;
#endif
- /* Restore the hypertransport chain to it's unitialized state. */
+ /* Restore the hypertransport chain to it's uninitialized state. */
ht_collapse_early_enumeration(bus, offset_unitid);
/* See which static device nodes I have. */
@@ -571,7 +571,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn,
if (next_unitid > max_unitid)
max_unitid = next_unitid;
- /* Setup the hypetransport link. */
+ /* Setup the hypertransport link. */
bus->reset_needed |= ht_setup_link(&prev, dev, pos);
printk(BIOS_DEBUG, "%s [%04x/%04x] %s next_unitid: %04x\n",
@@ -658,7 +658,7 @@ end_of_chain:
* @param bus TODO
* @param min_devfn TODO
* @param max_devfn TODO
- * @param max The highest bus number assgined up to now.
+ * @param max The highest bus number assigned up to now.
* @return The maximum bus number found, after scanning all subordinate busses.
*/
static unsigned int hypertransport_scan_chain_x(struct bus *bus,
diff --git a/src/device/oprom/include/x86emu/regs.h b/src/device/oprom/include/x86emu/regs.h
index d738974..4bf1294 100644
--- a/src/device/oprom/include/x86emu/regs.h
+++ b/src/device/oprom/include/x86emu/regs.h
@@ -231,8 +231,8 @@ struct i386_segment_regs {
#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
+//phueper: for REP(E|NE) Instructions, we need to decide whether it should be
+//using the 32bit ECX register as 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/src/device/oprom/include/x86emu/x86emu.h b/src/device/oprom/include/x86emu/x86emu.h
index 3ceee49..b912bd2 100644
--- a/src/device/oprom/include/x86emu/x86emu.h
+++ b/src/device/oprom/include/x86emu/x86emu.h
@@ -59,11 +59,11 @@
/****************************************************************************
REMARKS:
-Data structure containing ponters to programmed I/O functions used by the
+Data structure containing pointers to programmed I/O functions used by the
emulator. This is used so that the user program can hook all programmed
I/O for the emulator to handled as necessary by the user program. By
default the emulator contains simple functions that do not do access the
-hardware in any way. To allow the emualtor access the hardware, you will
+hardware in any way. To allow the emulator access the hardware, you will
need to override the programmed I/O functions using the X86EMU_setupPioFuncs
function.
@@ -89,11 +89,11 @@ typedef struct {
/****************************************************************************
REMARKS:
-Data structure containing ponters to memory access functions used by the
+Data structure containing pointers to memory access functions used by the
emulator. This is used so that the user program can hook all memory
access functions as necessary for the emulator. By default the emulator
contains simple functions that only access the internal memory of the
-emulator. If you need specialised functions to handle access to different
+emulator. If you need specialized functions to handle access to different
types of memory (ie: hardware framebuffer accesses and BIOS memory access
etc), you will need to override this using the X86EMU_setupMemFuncs
function.
diff --git a/src/device/oprom/realmode/x86_interrupts.c b/src/device/oprom/realmode/x86_interrupts.c
index b3764f9..383c736 100644
--- a/src/device/oprom/realmode/x86_interrupts.c
+++ b/src/device/oprom/realmode/x86_interrupts.c
@@ -123,7 +123,7 @@ int int1a_handler(void)
unsigned short func = (unsigned short)X86_EAX;
int retval = 1;
unsigned short devid, vendorid, devfn;
- /* Use short to get rid of gabage in upper half of 32-bit register */
+ /* Use short to get rid of garbage in upper half of 32-bit register */
short devindex;
unsigned char bus;
struct device *dev;
@@ -137,7 +137,7 @@ int int1a_handler(void)
X86_EAX &= 0xffff0000; /* Clear AH / AL */
X86_EAX |= PCI_CONFIG_SPACE_TYPE1 | PCI_SPECIAL_CYCLE_TYPE1;
// last bus in the system. Hard code to 255 for now.
- // dev_enumerate() does not seem to tell us (publically)
+ // dev_enumerate() does not seem to tell us (publicly)
X86_ECX = 0xff;
X86_EDI = 0x00000000; /* protected mode entry */
retval = 1;
diff --git a/src/device/oprom/x86emu/debug.h b/src/device/oprom/x86emu/debug.h
index 1b2c3a3..6858f15 100644
--- a/src/device/oprom/x86emu/debug.h
+++ b/src/device/oprom/x86emu/debug.h
@@ -118,7 +118,7 @@
/*
* The following allow us to look at the bytes of an instruction. The
- * first INCR_INSTRN_LEN, is called everytime bytes are consumed in
+ * first INCR_INSTRN_LEN, is called every time bytes are consumed in
* the decoding process. The SAVE_IP_CS is called initially when the
* major opcode of the instruction is accessed.
*/
diff --git a/src/device/oprom/x86emu/decode.c b/src/device/oprom/x86emu/decode.c
index ed96dc6..3d3f77d 100644
--- a/src/device/oprom/x86emu/decode.c
+++ b/src/device/oprom/x86emu/decode.c
@@ -33,7 +33,7 @@
* Developer: Kendall Bennett
*
* Description: This file includes subroutines which are related to
-* instruction decoding and accessess of immediate data via IP. etc.
+* instruction decoding and accesses of immediate data via IP. etc.
*
****************************************************************************/
@@ -43,7 +43,7 @@
/****************************************************************************
REMARKS:
-Handles any pending asychronous interrupts.
+Handles any pending asynchronous interrupts.
****************************************************************************/
static void x86emu_intr_handle(void)
{
@@ -77,7 +77,7 @@ next instruction.
void x86emu_intr_raise(
u8 intrnum)
{
- printf("%s, raising exeception %x\n", __func__, intrnum);
+ printf("%s, raising exception %x\n", __func__, intrnum);
x86emu_dump_regs();
M.x86.intno = intrnum;
M.x86.intr |= INTR_SYNCH;
@@ -243,7 +243,7 @@ no segment override. Address modes such as -3[BP] or 10[BP+SI] all refer to
addresses relative to SS (ie: on the stack). So, at the minimum, all
decodings of addressing modes would have to set/clear a bit describing
whether the access is relative to DS or SS. That is the function of the
-cpu-state-varible M.x86.mode. There are several potential states:
+cpu-state-variable M.x86.mode. There are several potential states:
repe prefix seen (handled elsewhere)
repne prefix seen (ditto)
@@ -255,7 +255,7 @@ cpu-state-varible M.x86.mode. There are several potential states:
gs segment override
ss segment override
- ds/ss select (in absense of override)
+ ds/ss select (in absence of override)
Each of the above 7 items are handled with a bit in the mode field.
****************************************************************************/
diff --git a/src/device/oprom/x86emu/ops.c b/src/device/oprom/x86emu/ops.c
index 6917a08..c805b58 100644
--- a/src/device/oprom/x86emu/ops.c
+++ b/src/device/oprom/x86emu/ops.c
@@ -39,7 +39,7 @@
* to the 256 byte-"opcodes" found on the 8086. The table which
* dispatches this is found in the files optab.[ch].
*
-* Each opcode proc has a comment preceeding it which gives it's table
+* Each opcode proc has a comment preceding it which gives it's table
* address. Several opcodes are missing (undefined) in the table.
*
* Each proc includes information for decoding (DECODE_PRINTF and
@@ -2530,7 +2530,7 @@ static void x86emuOp_movs_byte(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -2577,7 +2577,7 @@ static void x86emuOp_movs_word(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -2773,7 +2773,7 @@ static void x86emuOp_stos_byte(u8 X86EMU_UNUSED(op1))
inc = 1;
TRACE_AND_STEP();
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
while (((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX) != 0) {
store_data_byte_abs(M.x86.R_ES, M.x86.R_DI, M.x86.R_AL);
@@ -2820,7 +2820,7 @@ static void x86emuOp_stos_word(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -2858,7 +2858,7 @@ static void x86emuOp_lods_byte(u8 X86EMU_UNUSED(op1))
else
inc = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
while (((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX) != 0) {
M.x86.R_AL = fetch_data_byte(M.x86.R_SI);
@@ -2905,7 +2905,7 @@ static void x86emuOp_lods_word(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -4075,7 +4075,7 @@ static void x86emuOp_xlat(u8 X86EMU_UNUSED(op1))
END_OF_INSTR();
}
-/* instuctions D8 .. DF are in i87_ops.c */
+/* Instructions D8 .. DF are in i87_ops.c */
/****************************************************************************
REMARKS:
diff --git a/src/device/oprom/x86emu/prim_ops.c b/src/device/oprom/x86emu/prim_ops.c
index 20e7597..e73f217 100644
--- a/src/device/oprom/x86emu/prim_ops.c
+++ b/src/device/oprom/x86emu/prim_ops.c
@@ -134,7 +134,7 @@ static u32 x86emu_parity_tab[8] =
/****************************************************************************
REMARKS:
-implements side efects for byte operations that don't overflow
+implements side effects for byte operations that don't overflow
****************************************************************************/
static void set_parity_flag(u32 res)
@@ -790,7 +790,7 @@ u8 rcl_byte(u8 d, u8 s)
/* OVERFLOW is set *IFF* cnt==1, then it is the
xor of CF and the most significant bit. Blecck. */
/* parenthesized this expression since it appears to
- be causing OF to be misset */
+ be causing OF to be missed */
CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 6) & 0x2)),
F_OF);
@@ -1800,7 +1800,7 @@ void test_byte(u8 d, u8 s)
CLEAR_FLAG(F_OF);
set_szp_flags_8((u8)res);
- /* AF == dont care */
+ /* AF == don't care */
CLEAR_FLAG(F_CF);
}
@@ -1816,7 +1816,7 @@ void test_word(u16 d, u16 s)
CLEAR_FLAG(F_OF);
set_szp_flags_16((u16)res);
- /* AF == dont care */
+ /* AF == don't care */
CLEAR_FLAG(F_CF);
}
@@ -1832,7 +1832,7 @@ void test_long(u32 d, u32 s)
CLEAR_FLAG(F_OF);
set_szp_flags_32(res);
- /* AF == dont care */
+ /* AF == don't care */
CLEAR_FLAG(F_CF);
}
@@ -2311,7 +2311,7 @@ void ins(int size)
inc = -size;
}
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* in until (E)CX is ZERO. */
u32 count = ((M.x86.mode & SYSMODE_32BIT_REP) ?
M.x86.R_ECX : M.x86.R_CX);
@@ -2353,7 +2353,7 @@ void outs(int size)
inc = -size;
}
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* out until (E)CX is ZERO. */
u32 count = ((M.x86.mode & SYSMODE_32BIT_REP) ?
M.x86.R_ECX : M.x86.R_CX);
diff --git a/src/device/oprom/x86emu/sys.c b/src/device/oprom/x86emu/sys.c
index b3b3cd7..9785a9d 100644
--- a/src/device/oprom/x86emu/sys.c
+++ b/src/device/oprom/x86emu/sys.c
@@ -35,7 +35,7 @@
* Description: This file includes subroutines which are related to
* programmed I/O and memory access. Included in this module
* are default functions with limited usefulness. For real
-* uses these functions will most likely be overriden by the
+* uses these functions will most likely be overridden by the
* user library.
*
****************************************************************************/
@@ -381,7 +381,7 @@ PARAMETERS:
int - New software interrupt to prepare for
REMARKS:
-This function is used to set up the emulator state to exceute a software
+This function is used to set up the emulator state to execute a software
interrupt. This can be used by the user application code to allow an
interrupt to be hooked, examined and then reflected back to the emulator
so that the code in the emulator will continue processing the software
diff --git a/src/device/oprom/x86emu/x86emui.h b/src/device/oprom/x86emu/x86emui.h
index e34a1ba..37339d5 100644
--- a/src/device/oprom/x86emu/x86emui.h
+++ b/src/device/oprom/x86emu/x86emui.h
@@ -33,7 +33,7 @@
* Developer: Kendall Bennett
*
* Description: Header file for system specific functions. These functions
-* are always compiled and linked in the OS depedent libraries,
+* are always compiled and linked in the OS dependent libraries,
* and never in a binary portable driver.
*
****************************************************************************/
diff --git a/src/device/oprom/yabel/biosemu.c b/src/device/oprom/yabel/biosemu.c
index f42d4e1..d27a5f1 100644
--- a/src/device/oprom/yabel/biosemu.c
+++ b/src/device/oprom/yabel/biosemu.c
@@ -219,7 +219,7 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long rom_ad
my_wrb(0x000ffe6e, 0xcf);
// setup BIOS Data Area (0000:04xx, or 0040:00xx)
- // we currently 0 this area, meaning "we dont have
+ // we currently 0 this area, meaning "we don't have
// any hardware" :-) no serial/parallel ports, floppys, ...
memset(biosmem + 0x400, 0x0, 0x100);
@@ -388,7 +388,7 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long rom_ad
*/
if ((pop_word() == 0xf4f4) && (M.x86.R_SS == STACK_SEGMENT)
&& (M.x86.R_SP == STACK_START_OFFSET)) {
- DEBUG_PRINTF("Stack is clean, initialization successfull!\n");
+ DEBUG_PRINTF("Stack is clean, initialization successful!\n");
} else {
printf("Stack unclean, initialization probably NOT COMPLETE!\n");
DEBUG_PRINTF("SS:SP = %04x:%04x, expected: %04x:%04x\n",
diff --git a/src/device/oprom/yabel/biosemu.h b/src/device/oprom/yabel/biosemu.h
index 4f5c4aa..69e1fc3 100644
--- a/src/device/oprom/yabel/biosemu.h
+++ b/src/device/oprom/yabel/biosemu.h
@@ -24,7 +24,7 @@
#define VBE_SEGMENT 0x3000
#define PMM_CONV_SEGMENT 0x4000 // 4000:xxxx is PMM conventional memory area, extended memory area
- // will be anything beyound MIN_REQUIRED_MEMORY_SIZE
+ // will be anything beyond MIN_REQUIRED_MEMORY_SIZE
#define PNP_DATA_SEGMENT 0x5000
#define OPTION_ROM_CODE_SEGMENT 0xc000
@@ -38,9 +38,9 @@
// Address, there will only be a call to this INT and a RETF
#define PNP_INT_NUM 0xFD
-/* array of funtion pointers to override generic interrupt handlers
+/* array of function pointers to override generic interrupt handlers
* a YABEL caller can add functions to this array before calling YABEL
- * if a interrupt occurs, YABEL checks wether a function is set in
+ * if a interrupt occurs, YABEL checks whether a function is set in
* this array and only runs the generic interrupt handler code, if
* the function pointer is NULL */
typedef int (* yabel_handleIntFunc)(void);
diff --git a/src/device/oprom/yabel/compat/functions.c b/src/device/oprom/yabel/compat/functions.c
index f693d7b..1b2d011 100644
--- a/src/device/oprom/yabel/compat/functions.c
+++ b/src/device/oprom/yabel/compat/functions.c
@@ -10,7 +10,7 @@
****************************************************************************/
/* this file contains functions provided by SLOF, that the current biosemu implementation needs
- * they should go away inthe future...
+ * they should go away in the future...
*/
#include <types.h>
diff --git a/src/device/oprom/yabel/device.c b/src/device/oprom/yabel/device.c
index b09f50e..2f41847 100644
--- a/src/device/oprom/yabel/device.c
+++ b/src/device/oprom/yabel/device.c
@@ -60,7 +60,7 @@ biosemu_dev_get_addr_info(void)
r->index;
translate_address_array[taa_index].address = r->base;
translate_address_array[taa_index].size = r->size;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
}
@@ -71,7 +71,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0x30;
translate_address_array[taa_index].address = bios_device.img_addr;
translate_address_array[taa_index].size = 0; /* TODO: do we need the size? */
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
/* legacy ranges if its a VGA card... */
@@ -84,7 +84,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = 0x3b0;
translate_address_array[taa_index].size = 0xc;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
/* I/O 0x3C0-0x3DF */
@@ -94,7 +94,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = 0x3c0;
translate_address_array[taa_index].size = 0x20;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
/* Mem 0xA0000-0xBFFFF */
@@ -104,7 +104,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = 0xa0000;
translate_address_array[taa_index].size = 0x20000;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
}
@@ -130,7 +130,7 @@ void translate_address_dev(u64 *, phandle_t);
u64 get_puid(phandle_t node);
-// scan all adresses assigned to the device ("assigned-addresses" and "reg")
+// scan all addresses assigned to the device ("assigned-addresses" and "reg")
// store in translate_address_array for faster translation using dev_translate_address
void
biosemu_dev_get_addr_info(void)
@@ -171,7 +171,7 @@ biosemu_dev_get_addr_info(void)
len = of_getprop(bios_device.phandle, "reg", buf, sizeof(buf));
for (i = 0; i < (len / sizeof(assigned_address_t)); i++) {
if ((buf[i].size == 0) || (buf[i].cfg_space_offset != 0)) {
- // we dont care for ranges with size 0 and
+ // we don't care for ranges with size 0 and
// BARs and Expansion ROM must be in assigned-addresses... so in reg
// we only look for those without config space offset set...
// i.e. the legacy ranges
@@ -211,7 +211,7 @@ biosemu_dev_get_addr_info(void)
// "special memory" is a hack to make some parts of memory fall through to real memory
// (ie. no translation). Necessary if option ROMs attempt DMA there, map registers or
-// do similarily crazy things.
+// do similarly crazy things.
void
biosemu_add_special_memory(u32 start, u32 size)
{
@@ -222,7 +222,7 @@ biosemu_add_special_memory(u32 start, u32 size)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = start;
translate_address_array[taa_index].size = size;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
}
@@ -443,7 +443,7 @@ biosemu_dev_translate_address(int type, unsigned long * addr)
int i = 0;
translate_address_t ta;
#if !CONFIG_PCI_OPTION_ROM_RUN_YABEL
- /* we dont need this hack for coreboot... we can access legacy areas */
+ /* we don't need this hack for coreboot... we can access legacy areas */
//check if it is an access to legacy VGA Mem... if it is, map the address
//to the vmem BAR and then translate it...
// (translation info provided by Ben Herrenschmidt)
diff --git a/src/device/oprom/yabel/interrupt.c b/src/device/oprom/yabel/interrupt.c
index e5b4a3c..cf430be 100644
--- a/src/device/oprom/yabel/interrupt.c
+++ b/src/device/oprom/yabel/interrupt.c
@@ -243,7 +243,7 @@ handleInt16(void)
// since we currently always read the char from the FW buffer,
// we misuse the ring buffer, we use it as pointer to a u64 that stores
// multi-byte keys (e.g. special keys in VT100 terminal)
- // and as long as a key is available (not 0) we dont read further keys
+ // and as long as a key is available (not 0) we don't read further keys
u64 *keycode = (u64 *) (M.mem_base + 0x41e);
s8 c;
// function number in AH
@@ -538,7 +538,7 @@ handleInterrupt(int intNum)
DEBUG_PRINTF_INTR("%s(%x)\n", __func__, intNum);
#endif
- /* check wether this interrupt has a function pointer set in yabel_intFuncArray and run that */
+ /* check whether this interrupt has a function pointer set in yabel_intFuncArray and run that */
if (yabel_intFuncArray[intNum]) {
DEBUG_PRINTF_INTR("%s(%x) intHandler overridden, calling it...\n", __func__, intNum);
int_handled = (*yabel_intFuncArray[intNum])();
diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c
index d1172dc..94f610d 100644
--- a/src/device/oprom/yabel/io.c
+++ b/src/device/oprom/yabel/io.c
@@ -188,7 +188,7 @@ my_inb(X86EMU_pioAddr addr)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -238,7 +238,7 @@ my_inw(X86EMU_pioAddr addr)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -283,7 +283,7 @@ my_inl(X86EMU_pioAddr addr)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -329,7 +329,7 @@ my_outb(X86EMU_pioAddr addr, u8 val)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__func__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -361,7 +361,7 @@ my_outw(X86EMU_pioAddr addr, u16 val)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__func__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -402,7 +402,7 @@ my_outl(X86EMU_pioAddr addr, u32 val)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__func__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
diff --git a/src/device/oprom/yabel/mem.c b/src/device/oprom/yabel/mem.c
index 4b4a552..a7d0289 100644
--- a/src/device/oprom/yabel/mem.c
+++ b/src/device/oprom/yabel/mem.c
@@ -177,7 +177,7 @@ static inline void DEBUG_CHECK_VMEM_WRITE(u32 _addr, u32 _val) {};
static void
update_time(u32 cur_val)
{
- //for convenience, we let the start of timebase be at midnight, we currently dont support
+ //for convenience, we let the start of timebase be at midnight, we currently don't support
//real daytime anyway...
u64 ticks_per_day = tb_freq * 60 * 24;
// at 18Hz a period is ~55ms, converted to ticks (tb_freq is ticks/second)
@@ -202,7 +202,7 @@ my_rdb(u32 addr)
u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr);
u8 rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n",
__func__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -234,7 +234,7 @@ my_rdw(u32 addr)
u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr);
u16 rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n",
__func__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -285,7 +285,7 @@ my_rdl(u32 addr)
u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr);
u32 rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%x): access to VGA Memory\n",
__func__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr);
diff --git a/src/device/oprom/yabel/pmm.c b/src/device/oprom/yabel/pmm.c
index 19d14d4..d6c528d 100644
--- a/src/device/oprom/yabel/pmm.c
+++ b/src/device/oprom/yabel/pmm.c
@@ -222,7 +222,7 @@ void pmm_handleInt()
DEBUG_PRINTF_PMM("%s: pmmDeallocate: PMM segment offset: %x\n",
__func__, buffer);
i = 0;
- /* rval = 0 means we deallocated the buffer, so set it to 1 in case we dont find it and
+ /* rval = 0 means we deallocated the buffer, so set it to 1 in case we don't find it and
* thus cannot deallocate
*/
rval = 1;
diff --git a/src/device/oprom/yabel/pmm.h b/src/device/oprom/yabel/pmm.h
index 3cc3c17..6416c11 100644
--- a/src/device/oprom/yabel/pmm.h
+++ b/src/device/oprom/yabel/pmm.h
@@ -24,9 +24,9 @@ typedef struct {
u8 checksum;
u32 entry_point_offset;
u8 reserved[5];
- /* Code is not part of the speced PMM struct, however, since I cannot
- * put the handling of PMM in the virtual memory (I dont want to hack it
- * together in x86 assembly ;-)) this code array is pointed to by
+ /* Code is not part of the specced PMM struct, however, since I cannot
+ * put the handling of PMM in the virtual memory (I don't want to hack
+ * it together in x86 assembly ;-)) this code array is pointed to by
* entry_point_offset, in code there is only a INT call and a RETF,
* thus every PMM call will issue a PMM INT (only defined in YABEL,
* see interrupt.c) and the INT Handler will do the actual PMM work.
diff --git a/src/device/oprom/yabel/vbe.c b/src/device/oprom/yabel/vbe.c
index 5952dae..8658b77 100644
--- a/src/device/oprom/yabel/vbe.c
+++ b/src/device/oprom/yabel/vbe.c
@@ -103,7 +103,7 @@ vbe_info(vbe_info_t * info)
// offset 4: 16bit le containing VbeVersion
info->version = in16le(vbe_info_buffer + 4);
- // offset 6: 32bit le containg segment:offset of OEM String in virtual Mem.
+ // offset 6: 32bit le containing segment:offset of OEM String in virtual Mem.
info->oem_string_ptr =
biosmem + ((in16le(vbe_info_buffer + 8) << 4) +
in16le(vbe_info_buffer + 6));
@@ -457,7 +457,7 @@ vbe_get_info(void)
// as input, it must contain a screen_info_input_t with the following content:
// byte[0:3] = "DDC\0" (zero-terminated signature header)
// byte[4:5] = reserved space for the return struct... just in case we ever change
- // the struct and dont have reserved enough memory (and let's hope the struct
+ // the struct and don't have reserved enough memory (and let's hope the struct
// never gets larger than 64KB)
// byte[6] = monitor port number for DDC requests ("only" one byte... so lets hope we never have more than 255 monitors...
// byte[7:8] = max. screen width (OF may want to limit this)
Martin Roth (martin.roth(a)se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3730
-gerrit
commit ddc7dd9f9182b9f9492d67a13198c5a51f8ebf3c
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Mon Jul 8 16:24:19 2013 -0600
device: Fix spelling
Change-Id: I53a40d114aa2da76398c5b97443d4096809dcf36
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/device/base | 74 ++++++++++++++++++++++++++++++
src/device/device.c | 14 +++---
src/device/device_util.c | 4 +-
src/device/dram/ddr3.c | 6 +--
src/device/hypertransport.c | 10 ++--
src/device/oprom/include/x86emu/regs.h | 4 +-
src/device/oprom/include/x86emu/x86emu.h | 8 ++--
src/device/oprom/realmode/x86_interrupts.c | 4 +-
src/device/oprom/x86emu/debug.h | 2 +-
src/device/oprom/x86emu/decode.c | 10 ++--
src/device/oprom/x86emu/ops.c | 16 +++----
src/device/oprom/x86emu/prim_ops.c | 14 +++---
src/device/oprom/x86emu/sys.c | 4 +-
src/device/oprom/x86emu/x86emui.h | 2 +-
src/device/oprom/yabel/biosemu.c | 4 +-
src/device/oprom/yabel/biosemu.h | 6 +--
src/device/oprom/yabel/compat/functions.c | 2 +-
src/device/oprom/yabel/device.c | 20 ++++----
src/device/oprom/yabel/interrupt.c | 4 +-
src/device/oprom/yabel/io.c | 12 ++---
src/device/oprom/yabel/mem.c | 8 ++--
src/device/oprom/yabel/pmm.c | 2 +-
src/device/oprom/yabel/pmm.h | 6 +--
src/device/oprom/yabel/vbe.c | 4 +-
24 files changed, 157 insertions(+), 83 deletions(-)
diff --git a/src/device/base b/src/device/base
new file mode 100644
index 0000000..b6ae4b9
--- /dev/null
+++ b/src/device/base
@@ -0,0 +1,74 @@
+pci_device.c: res->limit = 0xffffUL;
+pci_device.c: res->flags = IORESOURCE_IO | IORESOURCE_SUBTRACTIVE |
+pci_device.c: res->limit = 0xffffffffULL;
+pci_device.c: res->flags = IORESOURCE_MEM | IORESOURCE_SUBTRACTIVE |
+pci_device.c: for (res = dev->resource_list; res; res = res->next)
+device_util.c: prev->next = res->next;
+device_util.c: dev->resource_list = res->next;
+device_util.c: res->next = free_resources;
+device_util.c: next = res->next;
+device_util.c: if (!res->flags)
+device_util.c: for (res = dev->resource_list; res; res = res->next) {
+device_util.c: if (res->index == index)
+device_util.c: for (res = curdev->resource_list; res; res = res->next) {
+device_util.c: if ((res->flags & type_mask) != type)
+device_util.c: if (res->flags & IORESOURCE_SUBTRACTIVE) {
+device_util.c: == IOINDEX_SUBTRACTIVE_LINK(res->index))
+device_util.c: for (res = curdev->resource_list; res; res = res->next) {
+device_util.c: if ((res->flags & type_mask) != type)
+device_util.c: if (res->flags & IORESOURCE_SUBTRACTIVE)
+device_util.c: for (res = root->resource_list; res; res = res->next) {
+device_util.c: indent, dev_path(root), res->base, res->size,
+device_util.c: res->align, res->gran, res->limit, res->flags,
+device_util.c: res->index);
+device_util.c: for (res = dev->resource_list; res; res = res->next)
+pnp_device.c: for (res = dev->resource_list; res; res = res->next)
+device.c: for (res = dev->resource_list; res; res = res->next) {
+device.c: if (!(res->flags & IORESOURCE_FIXED))
+device.c: if (!res->size) {
+device.c: "size=0!\n", dev_path(dev), res->index);
+device.c: if ((res->flags & MEM_MASK) == PREF_TYPE)
+device.c: else if ((res->flags & MEM_MASK) == MEM_TYPE)
+device.c: else if ((res->flags & IO_MASK) == IO_TYPE)
+device.c: if (((res->base + res->size -1) < lim->base)
+device.c: || (res->base > lim->limit))
+device.c: if ((signed long long)(lim->limit - (res->base + res->size -1))
+device.c: > (signed long long)(res->base - lim->base))
+device.c: lim->base = res->base + res->size;
+device.c: lim->limit = res->base -1;
+device.c: for (res = dev->resource_list; res; res = res->next) {
+device.c: if ((res->flags & IORESOURCE_FIXED))
+device.c: dev_path(dev), res->index, res->limit);
+device.c: if ((res->flags & MEM_MASK) == PREF_TYPE &&
+device.c: (res->limit < limits.pref.limit))
+device.c: limits.pref.limit = res->limit;
+device.c: if ((res->flags & MEM_MASK) == MEM_TYPE &&
+device.c: (res->limit < limits.mem.limit))
+device.c: limits.mem.limit = res->limit;
+device.c: if ((res->flags & IO_MASK) == IO_TYPE &&
+device.c: (res->limit < limits.io.limit))
+device.c: limits.io.limit = res->limit;
+device.c: for (res = dev->resource_list; res; res = res->next) {
+device.c: if ((res->flags & IORESOURCE_FIXED))
+device.c: if ((res->flags & MEM_MASK) == PREF_TYPE)
+device.c: else if ((res->flags & MEM_MASK) == MEM_TYPE)
+device.c: else if ((res->flags & IO_MASK) == IO_TYPE)
+device.c: dev_path(dev), res->index, res->limit);
+device.c: if (lim->base > res->base)
+device.c: res->base = lim->base;
+device.c: if (res->limit > lim->limit)
+device.c: res->limit = lim->limit;
+device.c: for (res = child->resource_list; res; res = res->next) {
+device.c: if (res->flags & IORESOURCE_FIXED)
+device.c: if (res->flags & IORESOURCE_PREFETCH) {
+device.c: if (res->flags & IORESOURCE_MEM) {
+device.c: if (res->flags & IORESOURCE_IO) {
+device.c: for (res = child->resource_list; res; res = res->next) {
+device.c: if (!(res->flags & IORESOURCE_MEM) ||
+device.c: res->flags & IORESOURCE_FIXED)
+device.c: res->base = resource_max(res);
+device.c: for (res = child->resource_list; res; res = res->next) {
+device.c: if (res->flags & IORESOURCE_FIXED)
+device.c: if (res->flags & IORESOURCE_PREFETCH) {
+device.c: if (res->flags & IORESOURCE_MEM) {
+device.c: if (res->flags & IORESOURCE_IO) {
diff --git a/src/device/device.c b/src/device/device.c
index a971270..3837928 100644
--- a/src/device/device.c
+++ b/src/device/device.c
@@ -83,7 +83,7 @@ uint64_t uma_memory_size = 0;
/**
* Allocate a new device structure.
*
- * Allocte a new device structure and attach it to the device tree as a
+ * Allocate a new device structure and attach it to the device tree as a
* child of the parent bus.
*
* @param parent Parent bus the newly created device should be attached to.
@@ -415,7 +415,7 @@ static void compute_resources(struct bus *bus, struct resource *bridge,
* A PCI bridge resource does not need to be a power of two size, but
* it does have a minimum granularity. Round the size up to that
* minimum granularity so we know not to place something else at an
- * address postitively decoded by the bridge.
+ * address positively decoded by the bridge.
*/
bridge->size = round(base, bridge->gran) -
round(bridge->base, bridge->align);
@@ -730,7 +730,7 @@ device_t vga_pri = 0;
static void set_vga_bridge_bits(void)
{
/*
- * FIXME: Modify set_vga_bridge() so it is less PCI centric!
+ * FIXME: Modify set_vga_bridge() so it is less PCI-centric!
* This function knows too much about PCI stuff, it should be just
* an iterator/visitor.
*/
@@ -835,7 +835,7 @@ void assign_resources(struct bus *bus)
*
* The parent's resources should be enabled first to avoid having enabling
* order problem. This is done by calling the parent's enable_resources()
- * method before its childrens' enable_resources() methods.
+ * method before its children's enable_resources() methods.
*
* @param link The link whose devices' resources are to be enabled.
*/
@@ -959,7 +959,7 @@ void dev_enumerate(void)
*
* Starting at the root of the device tree, travel it recursively in two
* passes. In the first pass, we compute and allocate resources (ranges)
- * requried by each device. In the second pass, the resources ranges are
+ * required by each device. In the second pass, the resources ranges are
* relocated to their final position and stored to the hardware.
*
* I/O resources grow upward. MEM resources grow downward.
@@ -1025,7 +1025,7 @@ void dev_configure(void)
/*
* Now we need to adjust the resources. MEM resources need to start at
- * the highest address managable.
+ * the highest address manageable.
*/
for (child = root->link_list->children; child; child = child->sibling) {
if (child->path.type != DEVICE_PATH_DOMAIN)
@@ -1093,7 +1093,7 @@ void dev_enable(void)
* Initialize a specific device.
*
* The parent should be initialized first to avoid having an ordering problem.
- * This is done by calling the parent's init() method before its childrens'
+ * This is done by calling the parent's init() method before its children's
* init() methods.
*
* @param dev The device to be initialized.
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 180169d..d2c99e1 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -285,7 +285,7 @@ int path_eq(struct device_path *path1, struct device_path *path2)
equal = (path1->cpu_bus.id == path2->cpu_bus.id);
break;
default:
- printk(BIOS_ERR, "Uknown device type: %d\n", path1->type);
+ printk(BIOS_ERR, "Unknown device type: %d\n", path1->type);
break;
}
@@ -544,7 +544,7 @@ const char *resource_type(struct resource *resource)
/**
* Print the resource that was just stored.
*
- * @param dev The device the stored resorce lives on.
+ * @param dev The device the stored resource lives on.
* @param resource The resource that was just stored.
* @param comment TODO
*/
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c
index 6e3fc2a..d98de91 100644
--- a/src/device/dram/ddr3.c
+++ b/src/device/dram/ddr3.c
@@ -55,7 +55,7 @@ int dimm_is_registered(enum spd_dimm_type type)
* @ref dimm_attr structure. The SPD data must first be read in a contiguous
* array, and passed to this function.
*
- * @param dimm pointer to @ref dimm_attr stucture where the decoded data is to
+ * @param dimm pointer to @ref dimm_attr structure where the decoded data is to
* be stored
* @param spd array of raw data previously read from the SPD.
*
@@ -309,7 +309,7 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
if (spd[63] & 0x01) {
dimm->flags.pins_mirrored = 1;
- printram(" DIMM Rank1 Address bits mirrorred!!!\n");
+ printram(" DIMM Rank1 Address bits mirrored!!!\n");
}
return ret;
@@ -336,7 +336,7 @@ static void print_ns(const char *msg, u32 val)
* Print info about the DIMM. Useful to use when CONFIG_DEBUG_RAM_SETUP is
* selected, or for a purely informative output.
*
-* @param dimm pointer to already decoded @ref dimm_attr stucture
+* @param dimm pointer to already decoded @ref dimm_attr structure
*/
void dram_print_spd_ddr3(const dimm_attr * dimm)
{
diff --git a/src/device/hypertransport.c b/src/device/hypertransport.c
index 11ea9a5..d9ab486 100644
--- a/src/device/hypertransport.c
+++ b/src/device/hypertransport.c
@@ -106,7 +106,7 @@ static unsigned ht_read_freq_cap(device_t dev, unsigned pos)
#if CONFIG_K8_HT_FREQ_1G_SUPPORT
#if !CONFIG_K8_REV_F_SUPPORT
- /* Only e0 later suupport 1GHz HT. */
+ /* Only e0 later support 1GHz HT. */
if (is_cpu_pre_e0())
freq_cap &= ~(1 << HT_FREQ_1000Mhz);
#endif
@@ -176,7 +176,7 @@ static int ht_setup_link(struct ht_link *prev, device_t dev, unsigned pos)
upstream_width_cap =
pci_read_config8(prev->dev, prev->pos + prev->config_off);
- /* Calculate the highest useable frequency. */
+ /* Calculate the highest usable frequency. */
freq = log2(present_freq_cap & upstream_freq_cap);
/* Calculate the highest width. */
@@ -436,7 +436,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn,
device_t real_last_dev = NULL;
#endif
- /* Restore the hypertransport chain to it's unitialized state. */
+ /* Restore the hypertransport chain to it's uninitialized state. */
ht_collapse_early_enumeration(bus, offset_unitid);
/* See which static device nodes I have. */
@@ -571,7 +571,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn,
if (next_unitid > max_unitid)
max_unitid = next_unitid;
- /* Setup the hypetransport link. */
+ /* Setup the hypertransport link. */
bus->reset_needed |= ht_setup_link(&prev, dev, pos);
printk(BIOS_DEBUG, "%s [%04x/%04x] %s next_unitid: %04x\n",
@@ -658,7 +658,7 @@ end_of_chain:
* @param bus TODO
* @param min_devfn TODO
* @param max_devfn TODO
- * @param max The highest bus number assgined up to now.
+ * @param max The highest bus number assigned up to now.
* @return The maximum bus number found, after scanning all subordinate busses.
*/
static unsigned int hypertransport_scan_chain_x(struct bus *bus,
diff --git a/src/device/oprom/include/x86emu/regs.h b/src/device/oprom/include/x86emu/regs.h
index d738974..4bf1294 100644
--- a/src/device/oprom/include/x86emu/regs.h
+++ b/src/device/oprom/include/x86emu/regs.h
@@ -231,8 +231,8 @@ struct i386_segment_regs {
#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
+//phueper: for REP(E|NE) Instructions, we need to decide whether it should be
+//using the 32bit ECX register as 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/src/device/oprom/include/x86emu/x86emu.h b/src/device/oprom/include/x86emu/x86emu.h
index 3ceee49..b912bd2 100644
--- a/src/device/oprom/include/x86emu/x86emu.h
+++ b/src/device/oprom/include/x86emu/x86emu.h
@@ -59,11 +59,11 @@
/****************************************************************************
REMARKS:
-Data structure containing ponters to programmed I/O functions used by the
+Data structure containing pointers to programmed I/O functions used by the
emulator. This is used so that the user program can hook all programmed
I/O for the emulator to handled as necessary by the user program. By
default the emulator contains simple functions that do not do access the
-hardware in any way. To allow the emualtor access the hardware, you will
+hardware in any way. To allow the emulator access the hardware, you will
need to override the programmed I/O functions using the X86EMU_setupPioFuncs
function.
@@ -89,11 +89,11 @@ typedef struct {
/****************************************************************************
REMARKS:
-Data structure containing ponters to memory access functions used by the
+Data structure containing pointers to memory access functions used by the
emulator. This is used so that the user program can hook all memory
access functions as necessary for the emulator. By default the emulator
contains simple functions that only access the internal memory of the
-emulator. If you need specialised functions to handle access to different
+emulator. If you need specialized functions to handle access to different
types of memory (ie: hardware framebuffer accesses and BIOS memory access
etc), you will need to override this using the X86EMU_setupMemFuncs
function.
diff --git a/src/device/oprom/realmode/x86_interrupts.c b/src/device/oprom/realmode/x86_interrupts.c
index b3764f9..383c736 100644
--- a/src/device/oprom/realmode/x86_interrupts.c
+++ b/src/device/oprom/realmode/x86_interrupts.c
@@ -123,7 +123,7 @@ int int1a_handler(void)
unsigned short func = (unsigned short)X86_EAX;
int retval = 1;
unsigned short devid, vendorid, devfn;
- /* Use short to get rid of gabage in upper half of 32-bit register */
+ /* Use short to get rid of garbage in upper half of 32-bit register */
short devindex;
unsigned char bus;
struct device *dev;
@@ -137,7 +137,7 @@ int int1a_handler(void)
X86_EAX &= 0xffff0000; /* Clear AH / AL */
X86_EAX |= PCI_CONFIG_SPACE_TYPE1 | PCI_SPECIAL_CYCLE_TYPE1;
// last bus in the system. Hard code to 255 for now.
- // dev_enumerate() does not seem to tell us (publically)
+ // dev_enumerate() does not seem to tell us (publicly)
X86_ECX = 0xff;
X86_EDI = 0x00000000; /* protected mode entry */
retval = 1;
diff --git a/src/device/oprom/x86emu/debug.h b/src/device/oprom/x86emu/debug.h
index 1b2c3a3..6858f15 100644
--- a/src/device/oprom/x86emu/debug.h
+++ b/src/device/oprom/x86emu/debug.h
@@ -118,7 +118,7 @@
/*
* The following allow us to look at the bytes of an instruction. The
- * first INCR_INSTRN_LEN, is called everytime bytes are consumed in
+ * first INCR_INSTRN_LEN, is called every time bytes are consumed in
* the decoding process. The SAVE_IP_CS is called initially when the
* major opcode of the instruction is accessed.
*/
diff --git a/src/device/oprom/x86emu/decode.c b/src/device/oprom/x86emu/decode.c
index ed96dc6..3d3f77d 100644
--- a/src/device/oprom/x86emu/decode.c
+++ b/src/device/oprom/x86emu/decode.c
@@ -33,7 +33,7 @@
* Developer: Kendall Bennett
*
* Description: This file includes subroutines which are related to
-* instruction decoding and accessess of immediate data via IP. etc.
+* instruction decoding and accesses of immediate data via IP. etc.
*
****************************************************************************/
@@ -43,7 +43,7 @@
/****************************************************************************
REMARKS:
-Handles any pending asychronous interrupts.
+Handles any pending asynchronous interrupts.
****************************************************************************/
static void x86emu_intr_handle(void)
{
@@ -77,7 +77,7 @@ next instruction.
void x86emu_intr_raise(
u8 intrnum)
{
- printf("%s, raising exeception %x\n", __func__, intrnum);
+ printf("%s, raising exception %x\n", __func__, intrnum);
x86emu_dump_regs();
M.x86.intno = intrnum;
M.x86.intr |= INTR_SYNCH;
@@ -243,7 +243,7 @@ no segment override. Address modes such as -3[BP] or 10[BP+SI] all refer to
addresses relative to SS (ie: on the stack). So, at the minimum, all
decodings of addressing modes would have to set/clear a bit describing
whether the access is relative to DS or SS. That is the function of the
-cpu-state-varible M.x86.mode. There are several potential states:
+cpu-state-variable M.x86.mode. There are several potential states:
repe prefix seen (handled elsewhere)
repne prefix seen (ditto)
@@ -255,7 +255,7 @@ cpu-state-varible M.x86.mode. There are several potential states:
gs segment override
ss segment override
- ds/ss select (in absense of override)
+ ds/ss select (in absence of override)
Each of the above 7 items are handled with a bit in the mode field.
****************************************************************************/
diff --git a/src/device/oprom/x86emu/ops.c b/src/device/oprom/x86emu/ops.c
index 6917a08..c805b58 100644
--- a/src/device/oprom/x86emu/ops.c
+++ b/src/device/oprom/x86emu/ops.c
@@ -39,7 +39,7 @@
* to the 256 byte-"opcodes" found on the 8086. The table which
* dispatches this is found in the files optab.[ch].
*
-* Each opcode proc has a comment preceeding it which gives it's table
+* Each opcode proc has a comment preceding it which gives it's table
* address. Several opcodes are missing (undefined) in the table.
*
* Each proc includes information for decoding (DECODE_PRINTF and
@@ -2530,7 +2530,7 @@ static void x86emuOp_movs_byte(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -2577,7 +2577,7 @@ static void x86emuOp_movs_word(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -2773,7 +2773,7 @@ static void x86emuOp_stos_byte(u8 X86EMU_UNUSED(op1))
inc = 1;
TRACE_AND_STEP();
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
while (((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX) != 0) {
store_data_byte_abs(M.x86.R_ES, M.x86.R_DI, M.x86.R_AL);
@@ -2820,7 +2820,7 @@ static void x86emuOp_stos_word(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -2858,7 +2858,7 @@ static void x86emuOp_lods_byte(u8 X86EMU_UNUSED(op1))
else
inc = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
while (((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX) != 0) {
M.x86.R_AL = fetch_data_byte(M.x86.R_SI);
@@ -2905,7 +2905,7 @@ static void x86emuOp_lods_word(u8 X86EMU_UNUSED(op1))
TRACE_AND_STEP();
count = 1;
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* move them until (E)CX is ZERO. */
count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX;
M.x86.R_CX = 0;
@@ -4075,7 +4075,7 @@ static void x86emuOp_xlat(u8 X86EMU_UNUSED(op1))
END_OF_INSTR();
}
-/* instuctions D8 .. DF are in i87_ops.c */
+/* Instructions D8 .. DF are in i87_ops.c */
/****************************************************************************
REMARKS:
diff --git a/src/device/oprom/x86emu/prim_ops.c b/src/device/oprom/x86emu/prim_ops.c
index 20e7597..e73f217 100644
--- a/src/device/oprom/x86emu/prim_ops.c
+++ b/src/device/oprom/x86emu/prim_ops.c
@@ -134,7 +134,7 @@ static u32 x86emu_parity_tab[8] =
/****************************************************************************
REMARKS:
-implements side efects for byte operations that don't overflow
+implements side effects for byte operations that don't overflow
****************************************************************************/
static void set_parity_flag(u32 res)
@@ -790,7 +790,7 @@ u8 rcl_byte(u8 d, u8 s)
/* OVERFLOW is set *IFF* cnt==1, then it is the
xor of CF and the most significant bit. Blecck. */
/* parenthesized this expression since it appears to
- be causing OF to be misset */
+ be causing OF to be missed */
CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 6) & 0x2)),
F_OF);
@@ -1800,7 +1800,7 @@ void test_byte(u8 d, u8 s)
CLEAR_FLAG(F_OF);
set_szp_flags_8((u8)res);
- /* AF == dont care */
+ /* AF == don't care */
CLEAR_FLAG(F_CF);
}
@@ -1816,7 +1816,7 @@ void test_word(u16 d, u16 s)
CLEAR_FLAG(F_OF);
set_szp_flags_16((u16)res);
- /* AF == dont care */
+ /* AF == don't care */
CLEAR_FLAG(F_CF);
}
@@ -1832,7 +1832,7 @@ void test_long(u32 d, u32 s)
CLEAR_FLAG(F_OF);
set_szp_flags_32(res);
- /* AF == dont care */
+ /* AF == don't care */
CLEAR_FLAG(F_CF);
}
@@ -2311,7 +2311,7 @@ void ins(int size)
inc = -size;
}
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* in until (E)CX is ZERO. */
u32 count = ((M.x86.mode & SYSMODE_32BIT_REP) ?
M.x86.R_ECX : M.x86.R_CX);
@@ -2353,7 +2353,7 @@ void outs(int size)
inc = -size;
}
if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) {
- /* dont care whether REPE or REPNE */
+ /* don't care whether REPE or REPNE */
/* out until (E)CX is ZERO. */
u32 count = ((M.x86.mode & SYSMODE_32BIT_REP) ?
M.x86.R_ECX : M.x86.R_CX);
diff --git a/src/device/oprom/x86emu/sys.c b/src/device/oprom/x86emu/sys.c
index b3b3cd7..9785a9d 100644
--- a/src/device/oprom/x86emu/sys.c
+++ b/src/device/oprom/x86emu/sys.c
@@ -35,7 +35,7 @@
* Description: This file includes subroutines which are related to
* programmed I/O and memory access. Included in this module
* are default functions with limited usefulness. For real
-* uses these functions will most likely be overriden by the
+* uses these functions will most likely be overridden by the
* user library.
*
****************************************************************************/
@@ -381,7 +381,7 @@ PARAMETERS:
int - New software interrupt to prepare for
REMARKS:
-This function is used to set up the emulator state to exceute a software
+This function is used to set up the emulator state to execute a software
interrupt. This can be used by the user application code to allow an
interrupt to be hooked, examined and then reflected back to the emulator
so that the code in the emulator will continue processing the software
diff --git a/src/device/oprom/x86emu/x86emui.h b/src/device/oprom/x86emu/x86emui.h
index e34a1ba..37339d5 100644
--- a/src/device/oprom/x86emu/x86emui.h
+++ b/src/device/oprom/x86emu/x86emui.h
@@ -33,7 +33,7 @@
* Developer: Kendall Bennett
*
* Description: Header file for system specific functions. These functions
-* are always compiled and linked in the OS depedent libraries,
+* are always compiled and linked in the OS dependent libraries,
* and never in a binary portable driver.
*
****************************************************************************/
diff --git a/src/device/oprom/yabel/biosemu.c b/src/device/oprom/yabel/biosemu.c
index f42d4e1..d27a5f1 100644
--- a/src/device/oprom/yabel/biosemu.c
+++ b/src/device/oprom/yabel/biosemu.c
@@ -219,7 +219,7 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long rom_ad
my_wrb(0x000ffe6e, 0xcf);
// setup BIOS Data Area (0000:04xx, or 0040:00xx)
- // we currently 0 this area, meaning "we dont have
+ // we currently 0 this area, meaning "we don't have
// any hardware" :-) no serial/parallel ports, floppys, ...
memset(biosmem + 0x400, 0x0, 0x100);
@@ -388,7 +388,7 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long rom_ad
*/
if ((pop_word() == 0xf4f4) && (M.x86.R_SS == STACK_SEGMENT)
&& (M.x86.R_SP == STACK_START_OFFSET)) {
- DEBUG_PRINTF("Stack is clean, initialization successfull!\n");
+ DEBUG_PRINTF("Stack is clean, initialization successful!\n");
} else {
printf("Stack unclean, initialization probably NOT COMPLETE!\n");
DEBUG_PRINTF("SS:SP = %04x:%04x, expected: %04x:%04x\n",
diff --git a/src/device/oprom/yabel/biosemu.h b/src/device/oprom/yabel/biosemu.h
index 4f5c4aa..69e1fc3 100644
--- a/src/device/oprom/yabel/biosemu.h
+++ b/src/device/oprom/yabel/biosemu.h
@@ -24,7 +24,7 @@
#define VBE_SEGMENT 0x3000
#define PMM_CONV_SEGMENT 0x4000 // 4000:xxxx is PMM conventional memory area, extended memory area
- // will be anything beyound MIN_REQUIRED_MEMORY_SIZE
+ // will be anything beyond MIN_REQUIRED_MEMORY_SIZE
#define PNP_DATA_SEGMENT 0x5000
#define OPTION_ROM_CODE_SEGMENT 0xc000
@@ -38,9 +38,9 @@
// Address, there will only be a call to this INT and a RETF
#define PNP_INT_NUM 0xFD
-/* array of funtion pointers to override generic interrupt handlers
+/* array of function pointers to override generic interrupt handlers
* a YABEL caller can add functions to this array before calling YABEL
- * if a interrupt occurs, YABEL checks wether a function is set in
+ * if a interrupt occurs, YABEL checks whether a function is set in
* this array and only runs the generic interrupt handler code, if
* the function pointer is NULL */
typedef int (* yabel_handleIntFunc)(void);
diff --git a/src/device/oprom/yabel/compat/functions.c b/src/device/oprom/yabel/compat/functions.c
index f693d7b..1b2d011 100644
--- a/src/device/oprom/yabel/compat/functions.c
+++ b/src/device/oprom/yabel/compat/functions.c
@@ -10,7 +10,7 @@
****************************************************************************/
/* this file contains functions provided by SLOF, that the current biosemu implementation needs
- * they should go away inthe future...
+ * they should go away in the future...
*/
#include <types.h>
diff --git a/src/device/oprom/yabel/device.c b/src/device/oprom/yabel/device.c
index b09f50e..2f41847 100644
--- a/src/device/oprom/yabel/device.c
+++ b/src/device/oprom/yabel/device.c
@@ -60,7 +60,7 @@ biosemu_dev_get_addr_info(void)
r->index;
translate_address_array[taa_index].address = r->base;
translate_address_array[taa_index].size = r->size;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
}
@@ -71,7 +71,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0x30;
translate_address_array[taa_index].address = bios_device.img_addr;
translate_address_array[taa_index].size = 0; /* TODO: do we need the size? */
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
/* legacy ranges if its a VGA card... */
@@ -84,7 +84,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = 0x3b0;
translate_address_array[taa_index].size = 0xc;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
/* I/O 0x3C0-0x3DF */
@@ -94,7 +94,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = 0x3c0;
translate_address_array[taa_index].size = 0x20;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
/* Mem 0xA0000-0xBFFFF */
@@ -104,7 +104,7 @@ biosemu_dev_get_addr_info(void)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = 0xa0000;
translate_address_array[taa_index].size = 0x20000;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
taa_index++;
}
@@ -130,7 +130,7 @@ void translate_address_dev(u64 *, phandle_t);
u64 get_puid(phandle_t node);
-// scan all adresses assigned to the device ("assigned-addresses" and "reg")
+// scan all addresses assigned to the device ("assigned-addresses" and "reg")
// store in translate_address_array for faster translation using dev_translate_address
void
biosemu_dev_get_addr_info(void)
@@ -171,7 +171,7 @@ biosemu_dev_get_addr_info(void)
len = of_getprop(bios_device.phandle, "reg", buf, sizeof(buf));
for (i = 0; i < (len / sizeof(assigned_address_t)); i++) {
if ((buf[i].size == 0) || (buf[i].cfg_space_offset != 0)) {
- // we dont care for ranges with size 0 and
+ // we don't care for ranges with size 0 and
// BARs and Expansion ROM must be in assigned-addresses... so in reg
// we only look for those without config space offset set...
// i.e. the legacy ranges
@@ -211,7 +211,7 @@ biosemu_dev_get_addr_info(void)
// "special memory" is a hack to make some parts of memory fall through to real memory
// (ie. no translation). Necessary if option ROMs attempt DMA there, map registers or
-// do similarily crazy things.
+// do similarly crazy things.
void
biosemu_add_special_memory(u32 start, u32 size)
{
@@ -222,7 +222,7 @@ biosemu_add_special_memory(u32 start, u32 size)
translate_address_array[taa_index].cfg_space_offset = 0;
translate_address_array[taa_index].address = start;
translate_address_array[taa_index].size = size;
- /* dont translate addresses... all addresses are 1:1 */
+ /* don't translate addresses... all addresses are 1:1 */
translate_address_array[taa_index].address_offset = 0;
}
@@ -443,7 +443,7 @@ biosemu_dev_translate_address(int type, unsigned long * addr)
int i = 0;
translate_address_t ta;
#if !CONFIG_PCI_OPTION_ROM_RUN_YABEL
- /* we dont need this hack for coreboot... we can access legacy areas */
+ /* we don't need this hack for coreboot... we can access legacy areas */
//check if it is an access to legacy VGA Mem... if it is, map the address
//to the vmem BAR and then translate it...
// (translation info provided by Ben Herrenschmidt)
diff --git a/src/device/oprom/yabel/interrupt.c b/src/device/oprom/yabel/interrupt.c
index e5b4a3c..cf430be 100644
--- a/src/device/oprom/yabel/interrupt.c
+++ b/src/device/oprom/yabel/interrupt.c
@@ -243,7 +243,7 @@ handleInt16(void)
// since we currently always read the char from the FW buffer,
// we misuse the ring buffer, we use it as pointer to a u64 that stores
// multi-byte keys (e.g. special keys in VT100 terminal)
- // and as long as a key is available (not 0) we dont read further keys
+ // and as long as a key is available (not 0) we don't read further keys
u64 *keycode = (u64 *) (M.mem_base + 0x41e);
s8 c;
// function number in AH
@@ -538,7 +538,7 @@ handleInterrupt(int intNum)
DEBUG_PRINTF_INTR("%s(%x)\n", __func__, intNum);
#endif
- /* check wether this interrupt has a function pointer set in yabel_intFuncArray and run that */
+ /* check whether this interrupt has a function pointer set in yabel_intFuncArray and run that */
if (yabel_intFuncArray[intNum]) {
DEBUG_PRINTF_INTR("%s(%x) intHandler overridden, calling it...\n", __func__, intNum);
int_handled = (*yabel_intFuncArray[intNum])();
diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c
index d1172dc..94f610d 100644
--- a/src/device/oprom/yabel/io.c
+++ b/src/device/oprom/yabel/io.c
@@ -188,7 +188,7 @@ my_inb(X86EMU_pioAddr addr)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -238,7 +238,7 @@ my_inw(X86EMU_pioAddr addr)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -283,7 +283,7 @@ my_inl(X86EMU_pioAddr addr)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -329,7 +329,7 @@ my_outb(X86EMU_pioAddr addr, u8 val)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__func__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -361,7 +361,7 @@ my_outw(X86EMU_pioAddr addr, u16 val)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__func__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -402,7 +402,7 @@ my_outl(X86EMU_pioAddr addr, u32 val)
unsigned long translated_addr = addr;
u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__func__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr);
diff --git a/src/device/oprom/yabel/mem.c b/src/device/oprom/yabel/mem.c
index 4b4a552..a7d0289 100644
--- a/src/device/oprom/yabel/mem.c
+++ b/src/device/oprom/yabel/mem.c
@@ -177,7 +177,7 @@ static inline void DEBUG_CHECK_VMEM_WRITE(u32 _addr, u32 _val) {};
static void
update_time(u32 cur_val)
{
- //for convenience, we let the start of timebase be at midnight, we currently dont support
+ //for convenience, we let the start of timebase be at midnight, we currently don't support
//real daytime anyway...
u64 ticks_per_day = tb_freq * 60 * 24;
// at 18Hz a period is ~55ms, converted to ticks (tb_freq is ticks/second)
@@ -202,7 +202,7 @@ my_rdb(u32 addr)
u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr);
u8 rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n",
__func__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -234,7 +234,7 @@ my_rdw(u32 addr)
u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr);
u16 rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n",
__func__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr);
@@ -285,7 +285,7 @@ my_rdl(u32 addr)
u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr);
u32 rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%x): access to VGA Memory\n",
__func__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr);
diff --git a/src/device/oprom/yabel/pmm.c b/src/device/oprom/yabel/pmm.c
index 19d14d4..d6c528d 100644
--- a/src/device/oprom/yabel/pmm.c
+++ b/src/device/oprom/yabel/pmm.c
@@ -222,7 +222,7 @@ void pmm_handleInt()
DEBUG_PRINTF_PMM("%s: pmmDeallocate: PMM segment offset: %x\n",
__func__, buffer);
i = 0;
- /* rval = 0 means we deallocated the buffer, so set it to 1 in case we dont find it and
+ /* rval = 0 means we deallocated the buffer, so set it to 1 in case we don't find it and
* thus cannot deallocate
*/
rval = 1;
diff --git a/src/device/oprom/yabel/pmm.h b/src/device/oprom/yabel/pmm.h
index 3cc3c17..6416c11 100644
--- a/src/device/oprom/yabel/pmm.h
+++ b/src/device/oprom/yabel/pmm.h
@@ -24,9 +24,9 @@ typedef struct {
u8 checksum;
u32 entry_point_offset;
u8 reserved[5];
- /* Code is not part of the speced PMM struct, however, since I cannot
- * put the handling of PMM in the virtual memory (I dont want to hack it
- * together in x86 assembly ;-)) this code array is pointed to by
+ /* Code is not part of the specced PMM struct, however, since I cannot
+ * put the handling of PMM in the virtual memory (I don't want to hack
+ * it together in x86 assembly ;-)) this code array is pointed to by
* entry_point_offset, in code there is only a INT call and a RETF,
* thus every PMM call will issue a PMM INT (only defined in YABEL,
* see interrupt.c) and the INT Handler will do the actual PMM work.
diff --git a/src/device/oprom/yabel/vbe.c b/src/device/oprom/yabel/vbe.c
index 5952dae..8658b77 100644
--- a/src/device/oprom/yabel/vbe.c
+++ b/src/device/oprom/yabel/vbe.c
@@ -103,7 +103,7 @@ vbe_info(vbe_info_t * info)
// offset 4: 16bit le containing VbeVersion
info->version = in16le(vbe_info_buffer + 4);
- // offset 6: 32bit le containg segment:offset of OEM String in virtual Mem.
+ // offset 6: 32bit le containing segment:offset of OEM String in virtual Mem.
info->oem_string_ptr =
biosmem + ((in16le(vbe_info_buffer + 8) << 4) +
in16le(vbe_info_buffer + 6));
@@ -457,7 +457,7 @@ vbe_get_info(void)
// as input, it must contain a screen_info_input_t with the following content:
// byte[0:3] = "DDC\0" (zero-terminated signature header)
// byte[4:5] = reserved space for the return struct... just in case we ever change
- // the struct and dont have reserved enough memory (and let's hope the struct
+ // the struct and don't have reserved enough memory (and let's hope the struct
// never gets larger than 64KB)
// byte[6] = monitor port number for DDC requests ("only" one byte... so lets hope we never have more than 255 monitors...
// byte[7:8] = max. screen width (OF may want to limit this)
Martin Roth (martin.roth(a)se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3729
-gerrit
commit 61d6af319a582e204624522f20a40bf1a578a0fd
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Mon Jul 8 16:23:54 2013 -0600
cpu: Fix spelling
Change-Id: I69c46648de0689e9bed84c7726906024ad65e769
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/cpu/amd/car/post_cache_as_ram.c | 4 ++--
src/cpu/amd/dualcore/amd_sibling.c | 4 ++--
src/cpu/amd/geode_gx2/cpubug.c | 6 +++---
src/cpu/amd/geode_gx2/cpureginit.c | 4 ++--
src/cpu/amd/geode_lx/cpubug.c | 2 +-
src/cpu/amd/model_10xxx/defaults.h | 2 +-
src/cpu/amd/model_10xxx/fidvid.c | 6 +++---
src/cpu/amd/model_10xxx/init_cpus.c | 2 +-
src/cpu/amd/model_fxx/fidvid.c | 4 ++--
src/cpu/amd/model_fxx/model_fxx_init.c | 2 +-
src/cpu/amd/model_fxx/powernow_acpi.c | 6 +++---
src/cpu/amd/mtrr/amd_mtrr.c | 4 ++--
src/cpu/amd/quadcore/amd_sibling.c | 4 ++--
src/cpu/intel/haswell/haswell.h | 2 +-
src/cpu/intel/haswell/haswell_init.c | 10 +++++-----
src/cpu/intel/haswell/mp_init.c | 8 ++++----
src/cpu/intel/haswell/smmrelocate.c | 2 +-
src/cpu/intel/model_2065x/model_2065x_init.c | 4 ++--
src/cpu/intel/model_206ax/model_206ax_init.c | 4 ++--
src/cpu/intel/slot_1/l2_cache.c | 6 +++---
src/cpu/samsung/exynos5-common/clk.h | 6 +++---
src/cpu/samsung/exynos5-common/exynos-tmu.c | 4 ++--
src/cpu/samsung/exynos5-common/exynos-tmu.h | 2 +-
src/cpu/samsung/exynos5-common/s5p-dp-core.h | 8 ++++----
src/cpu/samsung/exynos5-common/s5p-dp-reg.c | 4 ++--
src/cpu/samsung/exynos5-common/spi.c | 4 ++--
src/cpu/samsung/exynos5-common/sromc.c | 2 +-
src/cpu/samsung/exynos5250/clk.h | 4 ++--
src/cpu/samsung/exynos5250/clock.c | 8 ++++----
src/cpu/samsung/exynos5250/cpu.c | 2 +-
src/cpu/samsung/exynos5250/dmc.h | 2 +-
src/cpu/samsung/exynos5250/dmc_common.c | 6 +++---
src/cpu/samsung/exynos5250/dmc_init_ddr3.c | 6 +++---
src/cpu/samsung/exynos5250/fimd.h | 4 ++--
src/cpu/samsung/exynos5250/pinmux.c | 4 ++--
src/cpu/samsung/exynos5250/setup.h | 4 ++--
src/cpu/samsung/exynos5250/uart.c | 4 ++--
src/cpu/ti/am335x/uart.c | 2 +-
src/cpu/ti/am335x/uart.h | 4 ++--
src/cpu/via/nano/update_ucode.c | 4 ++--
src/cpu/via/nano/update_ucode.h | 4 ++--
src/cpu/x86/car.c | 2 +-
src/cpu/x86/lapic/lapic_cpu_init.c | 2 +-
src/cpu/x86/mtrr/earlymtrr.c | 4 ++--
src/cpu/x86/mtrr/mtrr.c | 18 +++++++++---------
src/cpu/x86/smm/smm_module_loader.c | 14 +++++++-------
46 files changed, 107 insertions(+), 107 deletions(-)
diff --git a/src/cpu/amd/car/post_cache_as_ram.c b/src/cpu/amd/car/post_cache_as_ram.c
index 68e7c09..18c278e 100644
--- a/src/cpu/amd/car/post_cache_as_ram.c
+++ b/src/cpu/amd/car/post_cache_as_ram.c
@@ -88,7 +88,7 @@ static void post_cache_as_ram(void)
#endif
#if 1
{
- /* Check value of esp to verify if we have enough rom for stack in Cache as RAM */
+ /* Check value of esp to verify if we have enough room for stack in Cache as RAM */
unsigned v_esp;
__asm__ volatile (
"movl %%esp, %0\n\t"
@@ -123,7 +123,7 @@ static void post_cache_as_ram(void)
/* set new esp */ /* before CONFIG_RAMBASE */
"subl %0, %%esp\n\t"
::"a"( (CONFIG_DCACHE_RAM_BASE + CONFIG_DCACHE_RAM_SIZE)- (CONFIG_RAMTOP) )
- /* discard all registers (eax is used for %0), so gcc redo everything
+ /* discard all registers (eax is used for %0), so gcc redoes everything
after the stack is moved */
: "cc", "memory", "%ebx", "%ecx", "%edx", "%esi", "%edi", "%ebp"
);
diff --git a/src/cpu/amd/dualcore/amd_sibling.c b/src/cpu/amd/dualcore/amd_sibling.c
index 13b9e37..b3df0a3 100644
--- a/src/cpu/amd/dualcore/amd_sibling.c
+++ b/src/cpu/amd/dualcore/amd_sibling.c
@@ -91,10 +91,10 @@ unsigned get_apicid_base(unsigned ioapic_num)
}
#endif
- //contruct apicid_base
+ //Construct apicid_base
if((!disable_siblings) && (siblings>0) ) {
- /* for 8 way dual core, we will used up apicid 16:16, actualy 16 is not allowed by current kernel
+ /* for 8 way dual core, we will used up apicid 16:16, actually 16 is not allowed by current kernel
and the kernel will try to get one that is small than 16 to make io apic work.
I don't know when the kernel can support 256 apic id. (APIC_EXT_ID is enabled) */
diff --git a/src/cpu/amd/geode_gx2/cpubug.c b/src/cpu/amd/geode_gx2/cpubug.c
index 54d7e0e..eddc924 100644
--- a/src/cpu/amd/geode_gx2/cpubug.c
+++ b/src/cpu/amd/geode_gx2/cpubug.c
@@ -163,7 +163,7 @@ static void eng2900(void)
* clocks when CPU is snooped. Because setting XSTATE to 0
* overrides any other XSTATE action, the code will always
* stall for 4 GeodeLink clocks after a snoop request goes
- * away even if it occured a clock or two later than a
+ * away even if it occurred a clock or two later than a
* different snoop; the stall signal will never 'glitch high'
* for only one or two CPU clocks with this code.
*/
@@ -201,7 +201,7 @@ static void eng2900(void)
msr.lo = 0x30000;
wrmsr(MSR_GLCP + 0x0073, msr);
- /* Writing action number 5: STALL_CPU_PIPE when exitting idle
+ /* Writing action number 5: STALL_CPU_PIPE when exiting idle
state or not in idle state */
msr.hi = 0;
msr.lo = 0x00430000;
@@ -293,7 +293,7 @@ static void bug118339(void)
*
* PBZ 3659:
* The MC reordered transactions incorrectly and breaks coherency.
- * Disable reording and take a potential performance hit.
+ * Disable reordering and take a potential performance hit.
* This is safe to do here and not in MC init since there is nothing
* to maintain coherency with and the cache is not enabled yet.
*/
diff --git a/src/cpu/amd/geode_gx2/cpureginit.c b/src/cpu/amd/geode_gx2/cpureginit.c
index 0fc852d..e0ecd62 100644
--- a/src/cpu/amd/geode_gx2/cpureginit.c
+++ b/src/cpu/amd/geode_gx2/cpureginit.c
@@ -15,7 +15,7 @@ void cpuRegInit (void)
/* Set up GLCP to grab BTM data. */
msrnum = GLCP_DBGOUT; /* GLCP_DBGOUT MSR */
msr.hi = 0x0;
- msr.lo = 0x08; /* reset value (SCOPE_SEL = 0) causes FIFO toshift out, */
+ msr.lo = 0x08; /* reset value (SCOPE_SEL = 0) causes FIFO to shift out, */
wrmsr(msrnum, msr); /* exchange it to anything else to prevent this */
/* Turn off debug clock */
@@ -119,7 +119,7 @@ void cpuRegInit (void)
wrmsr(msrnum, msr);
}
-/* FPU impercise exceptions bit */
+/* FPU imprecise exceptions bit */
{
msrnum = CPU_FPU_MSR_MODE;
msr = rdmsr(msrnum);
diff --git a/src/cpu/amd/geode_lx/cpubug.c b/src/cpu/amd/geode_lx/cpubug.c
index 4110454..ebadec7 100644
--- a/src/cpu/amd/geode_lx/cpubug.c
+++ b/src/cpu/amd/geode_lx/cpubug.c
@@ -67,7 +67,7 @@ static void pcideadlock(void)
/***/
/** PBZ 3659:*/
/** The MC reordered transactions incorrectly and breaks coherency.*/
-/** Disable reording and take a potential performance hit.*/
+/** Disable reordering and take a potential performance hit.*/
/** This is safe to do here and not in MC init since there is nothing*/
/** to maintain coherency with and the cache is not enabled yet.*/
/***/
diff --git a/src/cpu/amd/model_10xxx/defaults.h b/src/cpu/amd/model_10xxx/defaults.h
index f7b8b2f..3d33dda 100644
--- a/src/cpu/amd/model_10xxx/defaults.h
+++ b/src/cpu/amd/model_10xxx/defaults.h
@@ -54,7 +54,7 @@ static const struct {
{ DC_CFG, AMD_DR_Bx, AMD_PTYPE_SVR,
0x00000000, 0x00000000,
- 0x00000000, 0x00000C00 }, /* Errata 326 */
+ 0x00000000, 0x00000C00 }, /* Erratum 326 */
{ NB_CFG, AMD_FAM10_ALL, AMD_PTYPE_DC | AMD_PTYPE_MC,
0x00000000, 1 << 22,
diff --git a/src/cpu/amd/model_10xxx/fidvid.c b/src/cpu/amd/model_10xxx/fidvid.c
index ebe44dd..4297c90 100644
--- a/src/cpu/amd/model_10xxx/fidvid.c
+++ b/src/cpu/amd/model_10xxx/fidvid.c
@@ -68,7 +68,7 @@ Fam10 Bios and Kernel Development Guide #31116, rev 3.48, April 22, 2010
9.- TODO Requires information on current delivery capability
(depends on mainboard and maybe power supply ?). One might use a config
- option with the maximum number of Ampers that the board can deliver to CPU.
+ option with the maximum number of Amperes that the board can deliver to CPU.
10.- [Multiprocessor] TODO 2.4.2.12
[Uniprocessor] FIXME ? We call setPStateMaxVal() in init_fidvid_stage2,
@@ -79,7 +79,7 @@ Fam10 Bios and Kernel Development Guide #31116, rev 3.48, April 22, 2010
11.- finalPstateChange() from init_fidvid_Stage2 (BKDG says just "may", anyway)
12.- generate ACPI for p-states. FIXME
- Needs more assesment. There's some kind of fixed support that
+ Needs more assessment. There's some kind of fixed support that
does not seem to depend on CPU revision or actual MSRC001_00[68:64]
as BKDG apparently requires.
http://www.coreboot.org/ACPI#CPU_Power_Management
@@ -935,7 +935,7 @@ static void fixPsNbVidAfterWR(u32 newNbVid, u8 NbVidUpdatedAll,u8 pviMode)
static void finalPstateChange(void)
{
- /* Enble P0 on all cores for best performance.
+ /* Enable P0 on all cores for best performance.
* Linux can slow them down later if need be.
* It is safe since they will be in C1 halt
* most of the time anyway.
diff --git a/src/cpu/amd/model_10xxx/init_cpus.c b/src/cpu/amd/model_10xxx/init_cpus.c
index 3d5ddcf..eb047b8 100644
--- a/src/cpu/amd/model_10xxx/init_cpus.c
+++ b/src/cpu/amd/model_10xxx/init_cpus.c
@@ -424,7 +424,7 @@ static void start_node(u8 node)
/**
* static void setup_remote_node(u32 node)
*
- * Copy the BSP Adress Map to each AP.
+ * Copy the BSP Address Map to each AP.
*/
static void setup_remote_node(u8 node)
{
diff --git a/src/cpu/amd/model_fxx/fidvid.c b/src/cpu/amd/model_fxx/fidvid.c
index 06ff636..e68611b 100644
--- a/src/cpu/amd/model_fxx/fidvid.c
+++ b/src/cpu/amd/model_fxx/fidvid.c
@@ -496,7 +496,7 @@ static void init_fidvid_bsp_stage2(unsigned ap_apicid, void *gp)
continue;
if ((readback & 0xff) == 2) {
timeout = 0;
- break; /* target ap is stage 2, it's FID has beed set */
+ break; /* target ap is stage 2, its FID has been set */
}
}
@@ -603,7 +603,7 @@ static void init_fidvid_bsp(unsigned bsp_apicid)
/* For all APs ( We know the APIC ID of all AP even the APIC ID is lifted)
* send signal to the AP it could change it's fid/vid */
- /* remote read singnal from AP that AP is done */
+ /* remote read signal from AP that AP is done */
fv.common_fidvid &= 0xffff00;
diff --git a/src/cpu/amd/model_fxx/model_fxx_init.c b/src/cpu/amd/model_fxx/model_fxx_init.c
index a18b982..42c6f95 100644
--- a/src/cpu/amd/model_fxx/model_fxx_init.c
+++ b/src/cpu/amd/model_fxx/model_fxx_init.c
@@ -509,7 +509,7 @@ static void model_fxx_init(device_t dev)
id = get_node_core_id(read_nb_cfg_54()); // pre e0 nb_cfg_54 can not be set
- /* Is this a bad location? In particular can another node prefecth
+ /* Is this a bad location? In particular can another node prefetch
* data from this node before we have initialized it?
*/
if (id.coreid == 0)
diff --git a/src/cpu/amd/model_fxx/powernow_acpi.c b/src/cpu/amd/model_fxx/powernow_acpi.c
index 820d426..af1e24b 100644
--- a/src/cpu/amd/model_fxx/powernow_acpi.c
+++ b/src/cpu/amd/model_fxx/powernow_acpi.c
@@ -75,7 +75,7 @@ static int write_pstates_for_core(u8 pstate_num, u16 *pstate_feq, u8 *pstate_vid
#if CONFIG_K8_REV_F_SUPPORT
/*
-* Details about this algorithm , refert to BDKG 10.5.1
+* Details about this algorithm , refer to BDKG 10.5.1
* Two parts are included, the another is the DSDT reconstruction process
*/
@@ -202,7 +202,7 @@ static int pstates_algorithm(u32 pcontrol_blk, u8 plen, u8 onlyBSP)
goto write_pstates;
}
- /* Get the multipier of the fid frequency */
+ /* Get the multiplier of the fid frequency */
/*
* Fid multiplier is always 100 revF and revG.
*/
@@ -316,7 +316,7 @@ static int pstates_algorithm(u32 pcontrol_blk, u8 plen, u8 onlyBSP)
Pstate_num++;
}
- /* Constuct P[Min] State */
+ /* Construct P[Min] State */
if (Max_fid == 0x2A && Max_vid != 0x0) {
Pstate_fid[Pstate_num] = 0x2;
Pstate_feq[Pstate_num] =
diff --git a/src/cpu/amd/mtrr/amd_mtrr.c b/src/cpu/amd/mtrr/amd_mtrr.c
index 2f3e6e3..033ec53 100644
--- a/src/cpu/amd/mtrr/amd_mtrr.c
+++ b/src/cpu/amd/mtrr/amd_mtrr.c
@@ -128,10 +128,10 @@ void amd_setup_mtrrs(void)
}
/* Now that I have mapped what is memory and what is not
- * Setup the mtrrs so we can cache the memory.
+ * Set up the mtrrs so we can cache the memory.
*/
- // Rev. F K8 supports has SYSCFG_MSR_TOM2WB and dont need
+ // Rev. F K8 supports has SYSCFG_MSR_TOM2WB and doesn't need
// variable MTRR to span memory above 4GB
// Lower revisions K8 need variable MTRR over 4GB
x86_setup_var_mtrrs(address_bits, has_tom2wb ? 0 : 1);
diff --git a/src/cpu/amd/quadcore/amd_sibling.c b/src/cpu/amd/quadcore/amd_sibling.c
index e0d173d..d653a85 100644
--- a/src/cpu/amd/quadcore/amd_sibling.c
+++ b/src/cpu/amd/quadcore/amd_sibling.c
@@ -95,10 +95,10 @@ u32 get_apicid_base(u32 ioapic_num)
nb_cfg_54 = read_nb_cfg_54();
- //contruct apicid_base
+ //Construct apicid_base
if((!disable_siblings) && (siblings>0) ) {
- /* for 8 way dual core, we will used up apicid 16:16, actualy
+ /* for 8 way dual core, we will used up apicid 16:16, actually
16 is not allowed by current kernel and the kernel will try
to get one that is small than 16 to make io apic work. I don't
know when the kernel can support 256 apic id.
diff --git a/src/cpu/intel/haswell/haswell.h b/src/cpu/intel/haswell/haswell.h
index 4a739a9..ac082b8 100644
--- a/src/cpu/intel/haswell/haswell.h
+++ b/src/cpu/intel/haswell/haswell.h
@@ -169,7 +169,7 @@ void smm_initiate_relocation(void);
void smm_initiate_relocation_parallel(void);
struct bus;
void bsp_init_and_start_aps(struct bus *cpu_bus);
-/* Returns 0 on succes. < 0 on failure. */
+/* Returns 0 on success. < 0 on failure. */
int setup_ap_init(struct bus *cpu_bus, int *max_cpus,
const void *microcode_patch);
/* Returns 0 on success, < 0 on failure. */
diff --git a/src/cpu/intel/haswell/haswell_init.c b/src/cpu/intel/haswell/haswell_init.c
index 0bf98ec..43bf96a 100644
--- a/src/cpu/intel/haswell/haswell_init.c
+++ b/src/cpu/intel/haswell/haswell_init.c
@@ -40,7 +40,7 @@
#include "chip.h"
/*
- * List of suported C-states in this processor
+ * List of supported C-states in this processor
*
* Latencies are typical worst-case package exit time in uS
* taken from the SandyBridge BIOS specification.
@@ -325,7 +325,7 @@ static void configure_thermal_target(void)
return;
conf = lapic->chip_info;
- /* Set TCC activaiton offset if supported */
+ /* Set TCC activation offset if supported */
msr = rdmsr(MSR_PLATFORM_INFO);
if ((msr.lo & (1 << 30)) && conf->tcc_offset) {
msr = rdmsr(MSR_TEMPERATURE_TARGET);
@@ -509,8 +509,8 @@ void bsp_init_and_start_aps(struct bus *cpu_bus)
int num_aps;
const void *microcode_patch;
- /* Perform any necesarry BSP initialization before APs are brought up.
- * This call alos allows the BSP to prepare for any secondary effects
+ /* Perform any necessary BSP initialization before APs are brought up.
+ * This call also allows the BSP to prepare for any secondary effects
* from calling cpu_initialize() such as smm_init(). */
bsp_init_before_ap_bringup(cpu_bus);
@@ -530,7 +530,7 @@ void bsp_init_and_start_aps(struct bus *cpu_bus)
}
if (smm_initialize()) {
- printk(BIOS_CRIT, "SMM Initialiazation failed...\n");
+ printk(BIOS_CRIT, "SMM Initialization failed...\n");
return;
}
diff --git a/src/cpu/intel/haswell/mp_init.c b/src/cpu/intel/haswell/mp_init.c
index 1358418..51130a5 100644
--- a/src/cpu/intel/haswell/mp_init.c
+++ b/src/cpu/intel/haswell/mp_init.c
@@ -78,7 +78,7 @@ static device_t cpu_devs[CONFIG_MAX_CPUS];
static atomic_t num_aps;
/* Number of APs that have relocated their SMM handler. */
static atomic_t num_aps_relocated_smm;
-/* Barrier to stop APs from performing SMM relcoation. */
+/* Barrier to stop APs from performing SMM relocation. */
static int smm_relocation_barrier_begin __attribute__ ((aligned (64)));
/* Determine if hyperthreading is disabled. */
int ht_disabled;
@@ -145,7 +145,7 @@ void release_aps_for_smm_relocation(int do_parallel)
/* The mtrr code sets up ROM caching on the BSP, but not the others. However,
* the boot loader payload disables this. In order for Linux not to complain
- * ensure the caching is disabled for tha APs before going to sleep. */
+ * ensure the caching is disabled for the APs before going to sleep. */
static void cleanup_rom_caching(void)
{
x86_mtrr_disable_rom_caching();
@@ -178,7 +178,7 @@ static void asmlinkage ap_init(unsigned int cpu, void *microcode_ptr)
ap_initiate_smm_relocation();
- /* Indicate that SMM relocation has occured on this thread. */
+ /* Indicate that SMM relocation has occurred on this thread. */
atomic_inc(&num_aps_relocated_smm);
/* After SMM relocation a 2nd microcode load is required. */
@@ -401,7 +401,7 @@ static int allocate_cpu_devices(struct bus *cpu_bus, int *total_hw_threads)
/* Allocate the new cpu device structure */
new = alloc_find_dev(cpu_bus, &cpu_path);
if (new == NULL) {
- printk(BIOS_CRIT, "Could not allocte cpu device\n");
+ printk(BIOS_CRIT, "Could not allocate cpu device\n");
max_cpus--;
}
cpu_devs[i] = new;
diff --git a/src/cpu/intel/haswell/smmrelocate.c b/src/cpu/intel/haswell/smmrelocate.c
index 4fe6489..3f4f45a 100644
--- a/src/cpu/intel/haswell/smmrelocate.c
+++ b/src/cpu/intel/haswell/smmrelocate.c
@@ -348,7 +348,7 @@ static void setup_ied_area(struct smm_relocation_params *params)
memset(ied_base + (1 << 20), 0, (32 << 10));
/* According to the BWG MP init section 2MiB of memory at IEDBASE +
- * 2MiB should be zeroed as well. However, I suspect what is inteneded
+ * 2MiB should be zeroed as well. However, I suspect what is intended
* is to clear the memory covered by EMRR. TODO(adurbin): figure out if * this is really required. */
//memset(ied_base + (2 << 20), 0, (2 << 20));
}
diff --git a/src/cpu/intel/model_2065x/model_2065x_init.c b/src/cpu/intel/model_2065x/model_2065x_init.c
index f430276..8b8dfe3 100644
--- a/src/cpu/intel/model_2065x/model_2065x_init.c
+++ b/src/cpu/intel/model_2065x/model_2065x_init.c
@@ -40,7 +40,7 @@
#include "chip.h"
/*
- * List of suported C-states in this processor
+ * List of supported C-states in this processor
*
* Latencies are typical worst-case package exit time in uS
* taken from the SandyBridge BIOS specification.
@@ -250,7 +250,7 @@ static void configure_thermal_target(void)
return;
conf = lapic->chip_info;
- /* Set TCC activaiton offset if supported */
+ /* Set TCC activation offset if supported */
msr = rdmsr(MSR_PLATFORM_INFO);
if ((msr.lo & (1 << 30)) && conf->tcc_offset) {
msr = rdmsr(MSR_TEMPERATURE_TARGET);
diff --git a/src/cpu/intel/model_206ax/model_206ax_init.c b/src/cpu/intel/model_206ax/model_206ax_init.c
index 6bf158e..1cb87c9 100644
--- a/src/cpu/intel/model_206ax/model_206ax_init.c
+++ b/src/cpu/intel/model_206ax/model_206ax_init.c
@@ -40,7 +40,7 @@
#include "chip.h"
/*
- * List of suported C-states in this processor
+ * List of supported C-states in this processor
*
* Latencies are typical worst-case package exit time in uS
* taken from the SandyBridge BIOS specification.
@@ -375,7 +375,7 @@ static void configure_thermal_target(void)
return;
conf = lapic->chip_info;
- /* Set TCC activaiton offset if supported */
+ /* Set TCC activation offset if supported */
msr = rdmsr(MSR_PLATFORM_INFO);
if ((msr.lo & (1 << 30)) && conf->tcc_offset) {
msr = rdmsr(MSR_TEMPERATURE_TARGET);
diff --git a/src/cpu/intel/slot_1/l2_cache.c b/src/cpu/intel/slot_1/l2_cache.c
index eca0c89..a974d24 100644
--- a/src/cpu/intel/slot_1/l2_cache.c
+++ b/src/cpu/intel/slot_1/l2_cache.c
@@ -34,7 +34,7 @@
*/
/* This code is ported from coreboot v1.
- * The L2 cache initalization sequence here only apply to SECC/SECC2 P6 family
+ * The L2 cache initialization sequence here only apply to SECC/SECC2 P6 family
* CPUs with Klamath (63x), Deschutes (65x) and Katmai (67x) cores.
* It is not required for Coppermine (68x) and Tualatin (6bx) cores.
* It is currently not known if Celerons with Mendocino (66x) core require the
@@ -295,7 +295,7 @@ int write_l2(u32 address, u32 data)
// data1 = ffffffff
// data2 = 000000dc
// address = 00aaaaaa
- // Final address signalled:
+ // Final address signaled:
// 000fffff fff000c0 000dcaaa aaa00000
data1 = data & 0xff;
data1 = data1 << 21;
@@ -343,7 +343,7 @@ int test_l2_address_alias(u32 address1, u32 address2,
/* Calculates the L2 cache size.
*
- * Reference: Intel(R) 64 and IA-32 Architectures Software Developer�s Manual
+ * Reference: Intel(R) 64 and IA-32 Architectures Software Developer�s Manual
* Volume 3B: System Programming Guide, Part 2, Intel pub. 253669, pg. B-172.
*
*/
diff --git a/src/cpu/samsung/exynos5-common/clk.h b/src/cpu/samsung/exynos5-common/clk.h
index 9de4f45..071a39a 100644
--- a/src/cpu/samsung/exynos5-common/clk.h
+++ b/src/cpu/samsung/exynos5-common/clk.h
@@ -59,11 +59,11 @@ unsigned long get_uart_clk(int dev_index);
void set_mmc_clk(int dev_index, unsigned int div);
/**
- * get the clk frequency of the required peripherial
+ * get the clk frequency of the required peripheral
*
- * @param peripherial Peripherial id
+ * @param peripheral Peripheral id
*
- * @return frequency of the peripherial clk
+ * @return frequency of the peripheral clk
*/
unsigned long clock_get_periph_rate(enum periph_id peripheral);
diff --git a/src/cpu/samsung/exynos5-common/exynos-tmu.c b/src/cpu/samsung/exynos5-common/exynos-tmu.c
index 26777fc..9ad6a99 100644
--- a/src/cpu/samsung/exynos5-common/exynos-tmu.c
+++ b/src/cpu/samsung/exynos5-common/exynos-tmu.c
@@ -49,8 +49,8 @@
/*
* After reading temperature code from register, compensating
- * its value and calculating celsius temperatue,
- * get current temperatue.
+ * its value and calculating celsius temperature,
+ * get current temperature.
*
* @return current temperature of the chip as sensed by TMU
*/
diff --git a/src/cpu/samsung/exynos5-common/exynos-tmu.h b/src/cpu/samsung/exynos5-common/exynos-tmu.h
index 40eda56..2929e4a 100644
--- a/src/cpu/samsung/exynos5-common/exynos-tmu.h
+++ b/src/cpu/samsung/exynos5-common/exynos-tmu.h
@@ -63,7 +63,7 @@ enum tmu_status_t {
TMU_STATUS_TRIPPED,
};
-/* Tmeperature threshold values for various thermal events */
+/* Temperature threshold values for various thermal events */
struct temperature_params {
/* minimum value in temperature code range */
unsigned int min_val;
diff --git a/src/cpu/samsung/exynos5-common/s5p-dp-core.h b/src/cpu/samsung/exynos5-common/s5p-dp-core.h
index 4df848d..afadfb8 100644
--- a/src/cpu/samsung/exynos5-common/s5p-dp-core.h
+++ b/src/cpu/samsung/exynos5-common/s5p-dp-core.h
@@ -20,7 +20,7 @@
#define MAX_CR_LOOP 5
#define MAX_EQ_LOOP 4
-/* Link tare type */
+/* Link rate type */
enum link_rate {
LINK_RATE_1_62GBPS = 0x06,
LINK_RATE_2_70GBPS = 0x0a
@@ -125,7 +125,7 @@ typedef struct vidinfo {
*/
void s5p_dp_reset(struct s5p_dp_device *dp);
/*
- * Initialize DP to recieve video stream
+ * Initialize DP to receive video stream
*
* param dp pointer to main s5p-dp structure
*/
@@ -213,8 +213,8 @@ int s5p_dp_is_slave_video_stream_clock_on(struct s5p_dp_device *dp);
*
* param dp pointer to main s5p-dp structure
* param type clock_recovery_m_value_type
- * param m_value to caluculate m_vid value
- * param n_value to caluculate n_vid value
+ * param m_value to calculate m_vid value
+ * param n_value to calculate n_vid value
*/
void s5p_dp_set_video_cr_mn(struct s5p_dp_device *dp,
enum clock_recovery_m_value_type type,
diff --git a/src/cpu/samsung/exynos5-common/s5p-dp-reg.c b/src/cpu/samsung/exynos5-common/s5p-dp-reg.c
index cce8c6d..c8e7d47 100644
--- a/src/cpu/samsung/exynos5-common/s5p-dp-reg.c
+++ b/src/cpu/samsung/exynos5-common/s5p-dp-reg.c
@@ -82,7 +82,7 @@ void s5p_dp_reset(struct s5p_dp_device *dp)
/* Set interrupt pin assertion polarity as high */
writel(INT_POL0 | INT_POL1, &base->int_ctl);
- /* Clear pending regisers */
+ /* Clear pending registers */
writel(0xff, &base->common_int_sta_1);
writel(0x4f, &base->common_int_sta_2);
writel(0xe0, &base->common_int_sta_3);
@@ -147,7 +147,7 @@ void s5p_dp_init_aux(struct s5p_dp_device *dp)
u32 reg;
struct exynos5_dp *base = dp->base;
- /* Clear inerrupts related to AUX channel */
+ /* Clear interrupts related to AUX channel */
reg = RPLY_RECEIV | AUX_ERR;
writel(reg, &base->dp_int_sta);
diff --git a/src/cpu/samsung/exynos5-common/spi.c b/src/cpu/samsung/exynos5-common/spi.c
index 33f4d99..92a29a4 100644
--- a/src/cpu/samsung/exynos5-common/spi.c
+++ b/src/cpu/samsung/exynos5-common/spi.c
@@ -47,7 +47,7 @@ static void exynos_spi_rx_tx(struct exynos_spi *regs, int todo,
unsigned int *rxp = (unsigned int *)(dinp + (i * (32 * 1024)));
unsigned int out_bytes, in_bytes;
- // TODO In currrent implementation, every read/write must be aligned to
+ // TODO In current implementation, every read/write must be aligned to
// 4 bytes, otherwise you may get timeout or other unexpected results.
assert(todo % 4 == 0);
@@ -95,7 +95,7 @@ int exynos_spi_open(struct exynos_spi *regs)
SPI_MODE_CH_WIDTH_WORD | SPI_MODE_BUS_WIDTH_WORD);
clrbits_le32(®s->ch_cfg, SPI_CH_CPOL_L); /* CPOL: active high */
- /* clear rx and tx channel if set priveously */
+ /* clear rx and tx channel if set previously */
clrbits_le32(®s->ch_cfg, SPI_RX_CH_ON | SPI_TX_CH_ON);
setbits_le32(®s->swap_cfg,
diff --git a/src/cpu/samsung/exynos5-common/sromc.c b/src/cpu/samsung/exynos5-common/sromc.c
index 7bc93e7..20c9a03 100644
--- a/src/cpu/samsung/exynos5-common/sromc.c
+++ b/src/cpu/samsung/exynos5-common/sromc.c
@@ -29,7 +29,7 @@
* s5p_config_sromc() - select the proper SROMC Bank and configure the
* band width control and bank control registers
* srom_bank - SROM
- * srom_bw_conf - SMC Band witdh reg configuration value
+ * srom_bw_conf - SMC Bandwidth reg configuration value
* srom_bc_conf - SMC Bank Control reg configuration value
*/
void s5p_config_sromc(u32 srom_bank, u32 srom_bw_conf, u32 srom_bc_conf)
diff --git a/src/cpu/samsung/exynos5250/clk.h b/src/cpu/samsung/exynos5250/clk.h
index 828e7d8..6b2c709 100644
--- a/src/cpu/samsung/exynos5250/clk.h
+++ b/src/cpu/samsung/exynos5250/clk.h
@@ -31,7 +31,7 @@
#define MCT_HZ 24000000
/*
- * Set mshci controller instances clock drivder
+ * Set mshci controller instances clock divider
*
* @param enum periph_id instance of the mshci controller
*
@@ -482,7 +482,7 @@ struct exynos5_mct_regs {
};
#define EXYNOS5_EPLLCON0_LOCKED_SHIFT 29 /* EPLL Locked bit position*/
-#define EPLL_SRC_CLOCK 24000000 /*24 MHz Cristal Input */
+#define EPLL_SRC_CLOCK 24000000 /*24 MHz Crystal Input */
#define TIMEOUT_EPLL_LOCK 1000
#define AUDIO_0_RATIO_MASK 0x0f
diff --git a/src/cpu/samsung/exynos5250/clock.c b/src/cpu/samsung/exynos5250/clock.c
index 3622e28..b97afa6 100644
--- a/src/cpu/samsung/exynos5250/clock.c
+++ b/src/cpu/samsung/exynos5250/clock.c
@@ -165,7 +165,7 @@ static struct clk_bit_info clk_bit_info[PERIPH_ID_COUNT] = {
{24, 1, 20, -1}, /* PERIPH_ID_SATA */
};
-/* Epll Clock division values to achive different frequency output */
+/* Epll Clock division values to achieve different frequency output */
static struct st_epll_con_val epll_div[] = {
{ 192000000, 0, 48, 3, 1, 0 },
{ 180000000, 0, 45, 3, 1, 0 },
@@ -410,7 +410,7 @@ void clock_ll_set_pre_ratio(enum periph_id periph_id, unsigned divisor)
u32 *reg;
/*
- * For now we only handle a very small subset of peipherals here.
+ * For now we only handle a very small subset of peripherals here.
* Others will need to (and do) mangle the clock registers
* themselves, At some point it is hoped that this function can work
* from a table or calculated register offset / mask. For now this
@@ -659,7 +659,7 @@ int clock_epll_set_rate(unsigned long rate)
epll_con |= epll_div[i].s_div << EPLL_CON0_SDIV_SHIFT;
/*
- * Required period ( in cycles) to genarate a stable clock output.
+ * Required period ( in cycles) to generate a stable clock output.
* The maximum clock time can be up to 3000 * PDIV cycles of PLLs
* frequency input (as per spec)
*/
@@ -698,7 +698,7 @@ int clock_set_i2s_clk_prescaler(unsigned int src_frq, unsigned int dst_frq)
unsigned int div ;
if ((dst_frq == 0) || (src_frq == 0)) {
- debug("%s: Invalid requency input for prescaler\n", __func__);
+ debug("%s: Invalid frequency input for prescaler\n", __func__);
debug("src frq = %d des frq = %d ", src_frq, dst_frq);
return -1;
}
diff --git a/src/cpu/samsung/exynos5250/cpu.c b/src/cpu/samsung/exynos5250/cpu.c
index 8bf0d49..07aa874 100644
--- a/src/cpu/samsung/exynos5250/cpu.c
+++ b/src/cpu/samsung/exynos5250/cpu.c
@@ -74,7 +74,7 @@ static void exynos_displayport_init(device_t dev)
*
* Note: We may want to do something clever to ensure the framebuffer
* region is aligned such that we don't change dcache policy for other
- * stuff inadvertantly.
+ * stuff inadvertently.
*
* FIXME: Is disabling/re-enabling the MMU entirely necessary?
*/
diff --git a/src/cpu/samsung/exynos5250/dmc.h b/src/cpu/samsung/exynos5250/dmc.h
index 0814c07..9dcd2e6 100644
--- a/src/cpu/samsung/exynos5250/dmc.h
+++ b/src/cpu/samsung/exynos5250/dmc.h
@@ -311,7 +311,7 @@ struct mem_timings {
uint8_t chips_per_channel; /* number of chips per channel */
uint8_t chips_to_configure; /* number of chips to configure */
uint8_t send_zq_init; /* 1 to send this command */
- unsigned int impedance; /* drive strength impedeance */
+ unsigned int impedance; /* drive strength impedance */
uint8_t gate_leveling_enable; /* check gate leveling is enabled */
};
diff --git a/src/cpu/samsung/exynos5250/dmc_common.c b/src/cpu/samsung/exynos5250/dmc_common.c
index bcfc9fe..141ba18 100644
--- a/src/cpu/samsung/exynos5250/dmc_common.c
+++ b/src/cpu/samsung/exynos5250/dmc_common.c
@@ -69,7 +69,7 @@ int dmc_config_zq(struct mem_timings *mem,
val &= ~ZQ_MANUAL_STR;
/*
- * Since we are manaully calibrating the ZQ values,
+ * Since we are manually calibrating the ZQ values,
* we are looping for the ZQ_init to complete.
*/
i = ZQ_INIT_TIMEOUT;
@@ -102,12 +102,12 @@ void update_reset_dll(struct exynos5_dmc *dmc, enum ddr_mode mode)
writel(val, &dmc->phycontrol0);
}
- /* Update DLL Information: Force DLL Resyncronization */
+ /* Update DLL Information: Force DLL Resynchronization */
val = readl(&dmc->phycontrol0);
val |= FP_RSYNC;
writel(val, &dmc->phycontrol0);
- /* Reset Force DLL Resyncronization */
+ /* Reset Force DLL Resynchronization */
val = readl(&dmc->phycontrol0);
val &= ~FP_RSYNC;
writel(val, &dmc->phycontrol0);
diff --git a/src/cpu/samsung/exynos5250/dmc_init_ddr3.c b/src/cpu/samsung/exynos5250/dmc_init_ddr3.c
index 132471d..9be9866 100644
--- a/src/cpu/samsung/exynos5250/dmc_init_ddr3.c
+++ b/src/cpu/samsung/exynos5250/dmc_init_ddr3.c
@@ -147,9 +147,9 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, unsigned long mem_iv_size,
writel(mem->concontrol | (mem->rd_fetch << CONCONTROL_RD_FETCH_SHIFT),
&dmc->concontrol);
- /* Memory Channel Inteleaving Size */
+ /* Memory Channel Interleaving Size */
printk(BIOS_SPEW, "ddr3_mem_ctrl_init: "
- "Memory Channel Inteleaving Size\n");
+ "Memory Channel Interleaving Size\n");
writel(mem->iv_size, &dmc->ivcontrol);
/* Set DMC MEMCONTROL register */
@@ -169,7 +169,7 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, unsigned long mem_iv_size,
/* Power Down mode Configuration */
printk(BIOS_SPEW, "ddr3_mem_ctrl_init: "
- "Power Down mode Configuraation\n");
+ "Power Down mode Configuration\n");
writel(mem->dpwrdn_cyc << PWRDNCONFIG_DPWRDN_CYC_SHIFT |
mem->dsref_cyc << PWRDNCONFIG_DSREF_CYC_SHIFT,
&dmc->pwrdnconfig);
diff --git a/src/cpu/samsung/exynos5250/fimd.h b/src/cpu/samsung/exynos5250/fimd.h
index a46ad5a..c7a9b2a 100644
--- a/src/cpu/samsung/exynos5250/fimd.h
+++ b/src/cpu/samsung/exynos5250/fimd.h
@@ -85,11 +85,11 @@ struct exynos5_fimd_panel {
unsigned int upper_margin; /* Vertical Backporch */
unsigned int lower_margin; /* Vertical frontporch */
unsigned int vsync; /* Vertical Sync Pulse Width */
- unsigned int left_margin; /* Horizantal Backporch */
+ unsigned int left_margin; /* Horizontal Backporch */
unsigned int right_margin; /* Horizontal Frontporch */
unsigned int hsync; /* Horizontal Sync Pulse Width */
unsigned int xres; /* X Resolution */
- unsigned int yres; /* Y Resopultion */
+ unsigned int yres; /* Y Resolution */
};
/* LCDIF Register Map */
diff --git a/src/cpu/samsung/exynos5250/pinmux.c b/src/cpu/samsung/exynos5250/pinmux.c
index becced2..52ef75d 100644
--- a/src/cpu/samsung/exynos5250/pinmux.c
+++ b/src/cpu/samsung/exynos5250/pinmux.c
@@ -85,7 +85,7 @@ int exynos_pinmux_config(enum periph_id peripheral, int flags)
break;
case PERIPH_ID_SDMMC3:
/*
- * TODO: Need to add defintions for GPC4 before
+ * TODO: Need to add definitions for GPC4 before
* enabling this.
*/
debug("SDMMC3 not supported yet");
@@ -141,7 +141,7 @@ int exynos_pinmux_config(enum periph_id peripheral, int flags)
gpio_cfg_pin(GPIO_Y10 + i, EXYNOS_GPIO_FUNC(2));
/*
- * EBI: 8 Addrss Lines
+ * EBI: 8 Address Lines
*
* GPY3[0] EBI_ADDR[0](2)
* GPY3[1] EBI_ADDR[1](2)
diff --git a/src/cpu/samsung/exynos5250/setup.h b/src/cpu/samsung/exynos5250/setup.h
index f205b4d..d6b3a53 100644
--- a/src/cpu/samsung/exynos5250/setup.h
+++ b/src/cpu/samsung/exynos5250/setup.h
@@ -664,7 +664,7 @@ struct exynos5_phy_control;
#define MEM_TERM_EN (1 << 31) /* Termination enable for memory */
#define PHY_TERM_EN (1 << 30) /* Termination enable for PHY */
#define DMC_CTRL_SHGATE (1 << 29) /* Duration of DQS gating signal */
-#define FP_RSYNC (1 << 3) /* Force DLL resyncronization */
+#define FP_RSYNC (1 << 3) /* Force DLL resynchronization */
/* Driver strength for CK, CKE, CS & CA */
#define IMP_OUTPUT_DRV_40_OHM 0x5
@@ -679,7 +679,7 @@ struct exynos5_phy_control;
struct mem_timings;
-/* Errors that we can encourter in low-level setup */
+/* Errors that we can encounter in low-level setup */
enum {
SETUP_ERR_OK,
SETUP_ERR_RDLV_COMPLETE_TIMEOUT = -1,
diff --git a/src/cpu/samsung/exynos5250/uart.c b/src/cpu/samsung/exynos5250/uart.c
index 34d8e08..11f4da1 100644
--- a/src/cpu/samsung/exynos5250/uart.c
+++ b/src/cpu/samsung/exynos5250/uart.c
@@ -62,7 +62,7 @@ static inline struct s5p_uart *s5p_get_base_uart(int dev_index)
* The coefficient, used to calculate the baudrate on S5P UARTs is
* calculated as
* C = UBRDIV * 16 + number_of_set_bits_in_UDIVSLOT
- * however, section 31.6.11 of the datasheet doesn't recomment using 1 for 1,
+ * however, section 31.6.11 of the datasheet doesn't recommend using 1 for 1,
* 3 for 2, ... (2^n - 1) for n, instead, they suggest using these constants:
*/
static const int udivslot[] = {
@@ -158,7 +158,7 @@ static int exynos5_uart_err_check(int op)
/*
* Read a single byte from the serial port. Returns 1 on success, 0
- * otherwise. When the function is succesfull, the character read is
+ * otherwise. When the function is successful, the character read is
* written into its argument c.
*/
static unsigned char exynos5_uart_rx_byte(void)
diff --git a/src/cpu/ti/am335x/uart.c b/src/cpu/ti/am335x/uart.c
index 395ed86..bd2ff44 100644
--- a/src/cpu/ti/am335x/uart.c
+++ b/src/cpu/ti/am335x/uart.c
@@ -147,7 +147,7 @@ static void am335x_uart_init_dev(void)
/*
* Read a single byte from the serial port. Returns 1 on success, 0
- * otherwise. When the function is succesfull, the character read is
+ * otherwise. When the function is successful, the character read is
* written into its argument c.
*/
static unsigned char am335x_uart_rx_byte(void)
diff --git a/src/cpu/ti/am335x/uart.h b/src/cpu/ti/am335x/uart.h
index 56d4c51..645cd43 100644
--- a/src/cpu/ti/am335x/uart.h
+++ b/src/cpu/ti/am335x/uart.h
@@ -130,7 +130,7 @@ struct am335x_uart {
uint8_t rsvd_0x36[2];
uint16_t blr; /* BOF control */
uint8_t rsvd_0x3a[2];
- uint16_t acreg; /* auxilliary control */
+ uint16_t acreg; /* auxiliary control */
uint8_t rsvd_0x3e[2];
/* 0x40 */
@@ -139,7 +139,7 @@ struct am335x_uart {
uint16_t ssr; /* supplementary status */
uint8_t rsvd_0x46[2];
- uint16_t eblr; /* BOF length (operatoinal mode only) */
+ uint16_t eblr; /* BOF length (operational mode only) */
uint8_t rsvd_0x4a[6];
/* 0x50 */
diff --git a/src/cpu/via/nano/update_ucode.c b/src/cpu/via/nano/update_ucode.c
index d5757f8..7471928 100644
--- a/src/cpu/via/nano/update_ucode.c
+++ b/src/cpu/via/nano/update_ucode.c
@@ -37,7 +37,7 @@ static ucode_update_status nano_apply_ucode(const nano_ucode_header *ucode)
msr.hi = 0;
wrmsr(MSR_IA32_BIOS_UPDT_TRIG, msr);
- /* Let's see if we updated succesfully */
+ /* Let's see if we updated successfully */
msr = rdmsr(MSR_UCODE_UPDATE_STATUS);
return msr.lo & 0x07;
@@ -80,7 +80,7 @@ static void nano_print_ucode_status(ucode_update_status stat)
switch(stat)
{
case UCODE_UPDATE_SUCCESS:
- printk(BIOS_INFO, "Microcode update succesful.\n");
+ printk(BIOS_INFO, "Microcode update successful.\n");
break;
case UCODE_UPDATE_FAIL:
printk(BIOS_ALERT, "Microcode update failed, bad environment."
diff --git a/src/cpu/via/nano/update_ucode.h b/src/cpu/via/nano/update_ucode.h
index 6a22d18..ae58fb2 100644
--- a/src/cpu/via/nano/update_ucode.h
+++ b/src/cpu/via/nano/update_ucode.h
@@ -56,11 +56,11 @@ typedef struct {
u32 applicable_fms; /* Fam/model/stepping to which ucode applies */
u32 checksum; /* Two's complement checksum of ucode+header */
u32 loader_revision; /* Revision of hardware ucode update loader*/
- u32 rfu_1; /* Reservod for future use */
+ u32 rfu_1; /* Reserved for future use */
u32 payload_size; /* Size of the ucode payload only */
u32 total_size; /* Size of the ucode, including header */
char name[8]; /* ASCII string of ucode filename */
- u32 rfu_2; /* Reservod for future use */
+ u32 rfu_2; /* Reserved for future use */
/* First double-word of the ucode payload
* Its address represents the beginning of the ucode update we need to
* send to the CPU */
diff --git a/src/cpu/x86/car.c b/src/cpu/x86/car.c
index 88f2807..87fa98b 100644
--- a/src/cpu/x86/car.c
+++ b/src/cpu/x86/car.c
@@ -33,7 +33,7 @@ extern char _car_data_end[];
/*
* The car_migrated global variable determines if the cache-as-ram space has
- * been migrated to real RAM. It does this by asumming the following things:
+ * been migrated to real RAM. It does this by assuming the following things:
* 1. cache-as-ram space is zero'd out once it is set up.
* 2. Either the cache-as-ram space is memory-backed after getting torn down
* or the space returns 0xff's for each byte read.
diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c
index fbc8aa4..a3bab46 100644
--- a/src/cpu/x86/lapic/lapic_cpu_init.c
+++ b/src/cpu/x86/lapic/lapic_cpu_init.c
@@ -40,7 +40,7 @@
* will return 0, meaning no CPU.
*
* We actually handling that case by noting which cpus startup
- * and not telling anyone about the ones that dont.
+ * and not telling anyone about the ones that don't.
*/
/* Start-UP IPI vector must be 4kB aligned and below 1MB. */
diff --git a/src/cpu/x86/mtrr/earlymtrr.c b/src/cpu/x86/mtrr/earlymtrr.c
index 55dbd2f..f16da27 100644
--- a/src/cpu/x86/mtrr/earlymtrr.c
+++ b/src/cpu/x86/mtrr/earlymtrr.c
@@ -32,7 +32,7 @@ static void cache_ramstage(void)
const int addr_det = 0;
/* the fixed and variable MTTRs are power-up with random values,
- * clear them to MTRR_TYPE_UNCACHEABLE for safty.
+ * clear them to MTRR_TYPE_UNCACHEABLE for safety.
*/
static void do_early_mtrr_init(const unsigned long *mtrr_msrs)
{
@@ -43,7 +43,7 @@ static void do_early_mtrr_init(const unsigned long *mtrr_msrs)
msr_t msr;
const unsigned long *msr_addr;
- /* Inialize all of the relevant msrs to 0 */
+ /* Initialize all of the relevant msrs to 0 */
msr.lo = 0;
msr.hi = 0;
unsigned long msr_nr;
diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c
index b69787b..8f1c35e 100644
--- a/src/cpu/x86/mtrr/mtrr.c
+++ b/src/cpu/x86/mtrr/mtrr.c
@@ -94,7 +94,7 @@ static inline unsigned int fms(unsigned int x)
return r;
}
-/* fls: find least sigificant bit set */
+/* fls: find least significant bit set */
static inline unsigned int fls(unsigned int x)
{
int r;
@@ -160,8 +160,8 @@ static struct memranges *get_physical_address_space(void)
static struct memranges addr_space_storage;
/* In order to handle some chipsets not being able to pre-determine
- * uncacheable ranges, such as graphics memory, at resource inseration
- * time remove unacheable regions from the cacheable ones. */
+ * uncacheable ranges, such as graphics memory, at resource insertion
+ * time remove uncacheable regions from the cacheable ones. */
if (addr_space == NULL) {
struct range_entry *r;
unsigned long mask;
@@ -216,7 +216,7 @@ static struct memranges *get_physical_address_space(void)
}
/* Fixed MTRR descriptor. This structure defines the step size and begin
- * and end (exclusive) address covered by a set of fixe MTRR MSRs.
+ * and end (exclusive) address covered by a set of fixed MTRR MSRs.
* It also describes the offset in byte intervals to store the calculated MTRR
* type in an array. */
struct fixed_mtrr_desc {
@@ -533,7 +533,7 @@ static void calc_var_mtrrs_with_hole(struct var_mtrr_state *var_state,
struct range_entry *next;
/*
- * Determine MTRRs based on the following algoirthm for the given entry:
+ * Determine MTRRs based on the following algorithm for the given entry:
* +------------------+ b2 = ALIGN_UP(end)
* | 0 or more bytes | <-- hole is carved out between b1 and b2
* +------------------+ a2 = b1 = end
@@ -571,7 +571,7 @@ static void calc_var_mtrrs_with_hole(struct var_mtrr_state *var_state,
b1 = a2;
- /* First check if a1 is >= 4GiB and the current etnry is the last
+ /* First check if a1 is >= 4GiB and the current entry is the last
* entry. If so perform an optimization of covering a larger range
* defined by the base address' alignment. */
if (a1 >= RANGE_4GB && next == NULL) {
@@ -686,10 +686,10 @@ static int calc_var_mtrrs(struct memranges *addr_space,
* 1. UC as default type with no holes at top of range.
* 2. UC as default using holes at top of range.
* 3. WB as default.
- * The lowest count is then used as default after totalling all
- * MTRRs. Note that the optimal algoirthm for UC default is marked in
+ * The lowest count is then used as default after totaling all
+ * MTRRs. Note that the optimal algorithm for UC default is marked in
* the tag of each range regardless of final decision. UC takes
- * precedence in the MTRR archiecture. Therefore, only holes can be
+ * precedence in the MTRR architecture. Therefore, only holes can be
* used when the type of the region is MTRR_TYPE_WRBACK with
* MTRR_TYPE_UNCACHEABLE as the default type.
*/
diff --git a/src/cpu/x86/smm/smm_module_loader.c b/src/cpu/x86/smm/smm_module_loader.c
index 5eb4c5a..478ae8c 100644
--- a/src/cpu/x86/smm/smm_module_loader.c
+++ b/src/cpu/x86/smm/smm_module_loader.c
@@ -24,16 +24,16 @@
#include <console/console.h>
/*
- * Compoments that make up the SMRAM:
+ * Components that make up the SMRAM:
* 1. Save state - the total save state memory used
* 2. Stack - stacks for the CPUs in the SMM handler
* 3. Stub - SMM stub code for calling into handler
* 4. Handler - C-based SMM handler.
*
- * The compoents are assumed to consist of one consecutive region.
+ * The components are assumed to consist of one consecutive region.
*/
-/* These paramters are used by the SMM stub code. A pointer to the params
+/* These parameters are used by the SMM stub code. A pointer to the params
* is also passed to the C-base handler. */
struct smm_stub_params {
u32 stack_size;
@@ -80,7 +80,7 @@ static void smm_place_jmp_instructions(void *entry_start, int stride, int num,
/* Each entry point has an IP value of 0x8000. The SMBASE for each
* cpu is different so the effective address of the entry instruction
- * is different. Therefore, the relative displacment for each entry
+ * is different. Therefore, the relative displacement for each entry
* instruction needs to be updated to reflect the current effective
* IP. Additionally, the IP result from the jmp instruction is
* calculated using the next instruction's address so the size of
@@ -140,7 +140,7 @@ static void smm_stub_place_staggered_entry_points(char *base,
stub_entry_offset = rmodule_entry_offset(smm_stub);
/* If there are staggered entry points or the stub is not located
- * at the SMM entry point then jmp instructionss need to be placed. */
+ * at the SMM entry point then jmp instructions need to be placed. */
if (params->num_concurrent_save_states > 1 || stub_entry_offset != 0) {
int num_entries;
@@ -297,7 +297,7 @@ int smm_setup_relocation_handler(struct smm_loader_params *params)
return -1;
/* Since the relocation handler always uses stack, adjust the number
- * of conccurent stack users to be CONFIG_MAX_CPUS. */
+ * of concurrent stack users to be CONFIG_MAX_CPUS. */
if (params->num_concurrent_stacks == 0)
params->num_concurrent_stacks = CONFIG_MAX_CPUS;
@@ -318,7 +318,7 @@ int smm_setup_relocation_handler(struct smm_loader_params *params)
*
* It should be noted that this algorithm will not work for
* SMM_DEFAULT_SIZE SMRAM regions such as the A segment. This algorithm
- * expectes a region large enough to encompass the handler and stacks
+ * expects a region large enough to encompass the handler and stacks
* as well as the SMM_DEFAULT_SIZE.
*/
int smm_load_module(void *smram, int size, struct smm_loader_params *params)
Martin Roth (martin.roth(a)se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3727
-gerrit
commit 3cfd53e2c4b2830372c5c1f5827b279deee3b8f8
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Mon Jul 8 16:22:10 2013 -0600
arch: Fix spelling
Change-Id: Ifea10f0180c0c4b684030a168402a95fadf1a9db
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/arch/armv7/include/armv7.h | 2 +-
src/arch/armv7/include/assembler.h | 2 +-
src/arch/x86/boot/acpi.c | 4 ++--
src/arch/x86/boot/tables.c | 2 +-
src/arch/x86/include/arch/cpu.h | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/arch/armv7/include/armv7.h b/src/arch/armv7/include/armv7.h
index dc111c1..1473234 100644
--- a/src/arch/armv7/include/armv7.h
+++ b/src/arch/armv7/include/armv7.h
@@ -59,7 +59,7 @@
/*
* CP15 Barrier instructions
* Please note that we have separate barrier instructions in ARMv7
- * However, we use the CP15 based instructtions because we use
+ * However, we use the CP15 based instructions because we use
* -march=armv5 in U-Boot
*/
#define CP15ISB asm volatile ("mcr p15, 0, %0, c7, c5, 4" : : "r" (0))
diff --git a/src/arch/armv7/include/assembler.h b/src/arch/armv7/include/assembler.h
index 5e4789b..7acf0f4 100644
--- a/src/arch/armv7/include/assembler.h
+++ b/src/arch/armv7/include/assembler.h
@@ -55,6 +55,6 @@
#endif
/*
- * Cache alligned
+ * Cache aligned
*/
#define CALGN(code...) code
diff --git a/src/arch/x86/boot/acpi.c b/src/arch/x86/boot/acpi.c
index 3b77caa..96cb270 100644
--- a/src/arch/x86/boot/acpi.c
+++ b/src/arch/x86/boot/acpi.c
@@ -248,7 +248,7 @@ void acpi_create_mcfg(acpi_mcfg_t *mcfg)
}
/*
- * This can be overriden by platform ACPI setup code, if it calls
+ * This can be overridden by platform ACPI setup code, if it calls
* acpi_create_ssdt_generator().
*/
unsigned long __attribute__((weak)) acpi_fill_ssdt_generator(
@@ -763,7 +763,7 @@ void acpi_jump_to_wakeup(void *vector)
#endif
#if CONFIG_SMP
- // FIXME: This should go into the ACPI backup memory, too. No pork saussages.
+ // FIXME: This should go into the ACPI backup memory, too. No pork sausages.
/*
* Just restore the SMP trampoline and continue with wakeup on
* assembly level.
diff --git a/src/arch/x86/boot/tables.c b/src/arch/x86/boot/tables.c
index 6355a1b..3cc2c6b 100644
--- a/src/arch/x86/boot/tables.c
+++ b/src/arch/x86/boot/tables.c
@@ -66,7 +66,7 @@ struct lb_memory *write_tables(void)
rom_table_end = 0xf0000;
/* Start low addr at 0x500, so we don't run into conflicts with the BDA
- * in case our data structures grow beyound 0x400. Only multiboot, GDT
+ * in case our data structures grow beyond 0x400. Only multiboot, GDT
* and the coreboot table use low_tables.
*/
low_table_start = 0;
diff --git a/src/arch/x86/include/arch/cpu.h b/src/arch/x86/include/arch/cpu.h
index 7363132..6944834 100644
--- a/src/arch/x86/include/arch/cpu.h
+++ b/src/arch/x86/include/arch/cpu.h
@@ -8,7 +8,7 @@
*/
#define X86_EFLAGS_CF 0x00000001 /* Carry Flag */
#define X86_EFLAGS_PF 0x00000004 /* Parity Flag */
-#define X86_EFLAGS_AF 0x00000010 /* Auxillary carry Flag */
+#define X86_EFLAGS_AF 0x00000010 /* Auxiliary carry Flag */
#define X86_EFLAGS_ZF 0x00000040 /* Zero Flag */
#define X86_EFLAGS_SF 0x00000080 /* Sign Flag */
#define X86_EFLAGS_TF 0x00000100 /* Trap Flag */