lib: Fix spelling
Change-Id: I999987af9cb44906e3c3135c0351a0cd6eb210ff Signed-off-by: Martin Roth <martin.roth@se-eng.com> Reviewed-on: http://review.coreboot.org/3756 Reviewed-by: Dave Frodin <dave.frodin@se-eng.com> Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
63373edce0
commit
cbf2bd715a
|
@ -90,7 +90,7 @@ void cbmem_init(u64 baseaddr, u64 size)
|
|||
for (;;) ;
|
||||
}
|
||||
|
||||
/* we don't need to call this in romstage, usefull only from ramstage */
|
||||
/* we don't need to call this in romstage, useful only from ramstage */
|
||||
#ifndef __PRE_RAM__
|
||||
set_cbmem_toc((struct cbmem_entry *)(unsigned long)baseaddr);
|
||||
#endif
|
||||
|
@ -205,7 +205,7 @@ void *cbmem_find(u32 id)
|
|||
}
|
||||
|
||||
#if CONFIG_EARLY_CBMEM_INIT || !defined(__PRE_RAM__)
|
||||
/* Returns True if it was not intialized before. */
|
||||
/* Returns True if it was not initialized before. */
|
||||
int cbmem_initialize(void)
|
||||
{
|
||||
int rv = 0;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
/*
|
||||
* Structure describing console buffer. It is overlaid on a flat memory area,
|
||||
* whith buffer_body covering the extent of the memory. Once the buffer is
|
||||
* with buffer_body covering the extent of the memory. Once the buffer is
|
||||
* full, the cursor keeps going but the data is dropped on the floor. This
|
||||
* allows to tell how much data was lost in the process.
|
||||
*/
|
||||
|
@ -138,7 +138,7 @@ void cbmemc_tx_byte(unsigned char data)
|
|||
* the CBMEM console buffer contents.
|
||||
*
|
||||
* If there is overflow - add to the destination area a string, reporting the
|
||||
* overflow and the number of dropped charactes.
|
||||
* overflow and the number of dropped characters.
|
||||
*/
|
||||
static void copy_console_buffer(struct cbmem_console *new_cons_p)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ unsigned long add_ip_checksums(unsigned long offset, unsigned long sum, unsigned
|
|||
new = ~new & 0xFFFF;
|
||||
if (offset & 1) {
|
||||
/* byte swap the sum if it came from an odd offset
|
||||
* since the computation is endian independant this
|
||||
* since the computation is endian independent this
|
||||
* works.
|
||||
*/
|
||||
new = ((new >> 8) & 0xff) | ((new << 8) & 0xff00);
|
||||
|
|
|
@ -399,7 +399,7 @@ static unsigned long lb_table_fini(struct lb_header *head)
|
|||
/* Routines to extract part so the coreboot table or
|
||||
* information from the coreboot table after we have written it.
|
||||
* Currently get_lb_mem relies on a global we can change the
|
||||
* implementaiton.
|
||||
* implementation.
|
||||
*/
|
||||
static struct lb_memory *mem_ranges = NULL;
|
||||
|
||||
|
@ -567,7 +567,7 @@ unsigned long write_coreboot_table(
|
|||
/* Record our GPIO settings (ChromeOS specific) */
|
||||
lb_gpios(head);
|
||||
|
||||
/* pass along the VDAT buffer adress */
|
||||
/* pass along the VDAT buffer address */
|
||||
lb_vdat(head);
|
||||
|
||||
/* pass along VBNV offsets in CMOS */
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
static void set_boot_successful(void)
|
||||
{
|
||||
/* Remember I succesfully booted by setting
|
||||
/* Remember I successfully booted by setting
|
||||
* the initial boot direction
|
||||
* to the direction that I booted.
|
||||
*/
|
||||
|
|
|
@ -174,7 +174,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#define BITS_PER_UNIT 8
|
||||
#define LONG_LONG_TYPE_SIZE 64
|
||||
|
||||
/* There are many gcc_assertions. Set the vaule to 1 if we want a warning
|
||||
/* There are many gcc_assertions. Set the value to 1 if we want a warning
|
||||
message if the assertion fails. */
|
||||
#ifndef ENABLE_ASSERT_CHECKING
|
||||
#define ENABLE_ASSERT_CHECKING 1
|
||||
|
@ -335,7 +335,7 @@ typedef HOST_WIDEST_INT gcov_type;
|
|||
/* Counters that are collected. */
|
||||
#define GCOV_COUNTER_ARCS 0 /* Arc transitions. */
|
||||
#define GCOV_COUNTERS_SUMMABLE 1 /* Counters which can be
|
||||
summaried. */
|
||||
summed. */
|
||||
#define GCOV_FIRST_VALUE_COUNTER 1 /* The first of counters used for value
|
||||
profiling. They must form a consecutive
|
||||
interval and their order must match
|
||||
|
@ -426,7 +426,7 @@ struct gcov_summary
|
|||
struct gcov_ctr_summary ctrs[GCOV_COUNTERS_SUMMABLE];
|
||||
};
|
||||
|
||||
/* Structures embedded in coveraged program. The structures generated
|
||||
/* Structures embedded in coverage program. The structures generated
|
||||
by write_profile must match these. */
|
||||
|
||||
#if IN_LIBGCOV
|
||||
|
|
|
@ -396,7 +396,7 @@ gcov_exit (void)
|
|||
#endif
|
||||
prefix_length = 0;
|
||||
|
||||
/* If no prefix was specified and a prefix stip, then we assume
|
||||
/* If no prefix was specified and a prefix strip, then we assume
|
||||
relative. */
|
||||
if (gcov_prefix_strip != 0 && prefix_length == 0)
|
||||
{
|
||||
|
|
|
@ -34,8 +34,8 @@ unsigned long ulzma(unsigned char * src, unsigned char * dst)
|
|||
memcpy(properties, src, LZMA_PROPERTIES_SIZE);
|
||||
/* The outSize in LZMA stream is a 64bit integer stored in little-endian
|
||||
* (ref: lzma.cc@LZMACompress: put_64). To prevent accessing by
|
||||
* unaligned memory address and to load in correct endianess, read each
|
||||
* byte and re-costruct. */
|
||||
* unaligned memory address and to load in correct endianness, read each
|
||||
* byte and re-construct. */
|
||||
cp = src + LZMA_PROPERTIES_SIZE;
|
||||
outSize = cp[3] << 24 | cp[2] << 16 | cp[1] << 8 | cp[0];
|
||||
if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK) {
|
||||
|
|
|
@ -183,7 +183,7 @@ static void merge_add_memranges(struct memranges *ranges,
|
|||
remove_memranges(ranges, begin, end, -1);
|
||||
|
||||
/* Find the entry to place the new entry after. Since
|
||||
* remove_memranges() was called above there is a guranteed
|
||||
* remove_memranges() was called above there is a guaranteed
|
||||
* spot for this new entry. */
|
||||
for (cur = ranges->entries; cur != NULL; cur = cur->next) {
|
||||
/* Found insertion spot before current entry. */
|
||||
|
@ -292,7 +292,7 @@ void memranges_fill_holes_up_to(struct memranges *ranges,
|
|||
continue;
|
||||
}
|
||||
|
||||
/* If the previous entry does not directly preceed the current
|
||||
/* If the previous entry does not directly precede the current
|
||||
* entry then add a new entry just after the previous one. */
|
||||
if (range_entry_end(prev) != cur->begin) {
|
||||
resource_t end;
|
||||
|
|
|
@ -132,7 +132,7 @@ static unsigned char eth_pio_read_byte(unsigned int src,
|
|||
}
|
||||
|
||||
|
||||
/* varition of compute_ip_checksum which works on SRAM */
|
||||
/* Variation of compute_ip_checksum which works on SRAM */
|
||||
unsigned long compute_ip_checksum_from_sram(unsigned short offset, unsigned short length,
|
||||
unsigned int eth_nic_base)
|
||||
{
|
||||
|
|
|
@ -232,7 +232,7 @@ int rmodule_load_alignment(const struct rmodule *module)
|
|||
/* The load alignment is the start of the program's linked address.
|
||||
* The base address where the program is loaded needs to be a multiple
|
||||
* of the program's starting link address. That way all data alignment
|
||||
* in the program is presered. */
|
||||
* in the program is preserved. */
|
||||
return module->header->module_link_start_address;
|
||||
}
|
||||
|
||||
|
|
|
@ -361,7 +361,7 @@ static int build_self_segment_list(
|
|||
(void *)(intptr_t)ntohll(segment->load_addr));
|
||||
*entry = ntohll(segment->load_addr);
|
||||
/* Per definition, a payload always has the entry point
|
||||
* as last segment. Thus, we use the occurence of the
|
||||
* as last segment. Thus, we use the occurrence of the
|
||||
* entry point as break condition for the loop.
|
||||
* Can we actually just look at the number of section?
|
||||
*/
|
||||
|
|
|
@ -333,7 +333,7 @@ static int ehci_reset_port(struct ehci_regs *ehci_regs, int port)
|
|||
if (!(portsc & PORT_CONNECT))
|
||||
return -1; //-ENOTCONN;
|
||||
|
||||
/* bomb out completely if something weird happend */
|
||||
/* bomb out completely if something weird happened */
|
||||
if ((portsc & PORT_CSC))
|
||||
return -2; //-EINVAL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue