Fix typos in the clients folder
Found with the "codespell" utility Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
This commit is contained in:
parent
8f6b2217b0
commit
e8124ca96e
|
@ -175,7 +175,7 @@ biosemu(char argc, char **argv)
|
||||||
my_wrb(0x000ffe6e, 0xcf);
|
my_wrb(0x000ffe6e, 0xcf);
|
||||||
|
|
||||||
// setup BIOS Data Area (0000:04xx, or 0040:00xx)
|
// 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, ...
|
// any hardware" :-) no serial/parallel ports, floppys, ...
|
||||||
memset(biosmem + 0x400, 0x0, 0x100);
|
memset(biosmem + 0x400, 0x0, 0x100);
|
||||||
|
|
||||||
|
@ -322,7 +322,7 @@ biosemu(char argc, char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// check wether the stack is "clean" i.e. containing the HLT instruction
|
// check whether the stack is "clean" i.e. containing the HLT instruction
|
||||||
// we pushed before executing, and pointing to the original stack address...
|
// we pushed before executing, and pointing to the original stack address...
|
||||||
// indicating that the initialization probably was successful
|
// indicating that the initialization probably was successful
|
||||||
if ((pop_word() == 0xf4f4) && (M.x86.R_SS == STACK_SEGMENT)
|
if ((pop_word() == 0xf4f4) && (M.x86.R_SS == STACK_SEGMENT)
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#define VBE_SEGMENT 0x3000
|
#define VBE_SEGMENT 0x3000
|
||||||
|
|
||||||
#define PMM_CONV_SEGMENT 0x4000 // 4000:xxxx is PMM conventional memory area, extended memory area
|
#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 PNP_DATA_SEGMENT 0x5000
|
||||||
|
|
||||||
#define OPTION_ROM_CODE_SEGMENT 0xc000
|
#define OPTION_ROM_CODE_SEGMENT 0xc000
|
||||||
|
|
|
@ -28,7 +28,7 @@ typedef struct {
|
||||||
} __attribute__ ((__packed__)) assigned_address_t;
|
} __attribute__ ((__packed__)) assigned_address_t;
|
||||||
|
|
||||||
|
|
||||||
// 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
|
// store in translate_address_array for faster translation using dev_translate_address
|
||||||
static void
|
static void
|
||||||
dev_get_addr_info(void)
|
dev_get_addr_info(void)
|
||||||
|
@ -174,7 +174,7 @@ dev_get_device_vendor_id(void)
|
||||||
bios_device.pci_device_id, bios_device.pci_vendor_id);
|
bios_device.pci_device_id, bios_device.pci_vendor_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check, wether the device has a valid Expansion ROM, also search the PCI Data Structure and
|
/* check whether the device has a valid expansion ROM, also search the PCI Data Structure and
|
||||||
* any Expansion ROM Header (using dev_scan_exp_header()) for needed information */
|
* any Expansion ROM Header (using dev_scan_exp_header()) for needed information */
|
||||||
uint8_t
|
uint8_t
|
||||||
dev_check_exprom(void)
|
dev_check_exprom(void)
|
||||||
|
|
|
@ -141,7 +141,7 @@ in16le(void *addr)
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* debug function, dumps HID1 and HID4 to detect wether caches are on/off */
|
/* debug function, dumps HID1 and HID4 to detect whether caches are on/off */
|
||||||
static inline void
|
static inline void
|
||||||
dumpHID(void)
|
dumpHID(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -154,7 +154,7 @@ vbe_info(vbe_info_t * info)
|
||||||
// offset 4: 16bit le containing VbeVersion
|
// offset 4: 16bit le containing VbeVersion
|
||||||
info->version = in16le(vbe_info_buffer + 4);
|
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 =
|
info->oem_string_ptr =
|
||||||
biosmem + ((in16le(vbe_info_buffer + 8) << 4) +
|
biosmem + ((in16le(vbe_info_buffer + 8) << 4) +
|
||||||
in16le(vbe_info_buffer + 6));
|
in16le(vbe_info_buffer + 6));
|
||||||
|
@ -245,7 +245,7 @@ vbe_get_mode_info(vbe_mode_info_t * mode_info)
|
||||||
// offset 27: 8bit le memory model
|
// offset 27: 8bit le memory model
|
||||||
mode_info->memory_model = *(mode_info->mode_info_block + 27);
|
mode_info->memory_model = *(mode_info->mode_info_block + 27);
|
||||||
|
|
||||||
// offset 40: 32bit le containg offset of frame buffer memory ptr
|
// offset 40: 32bit le containing offset of frame buffer memory ptr
|
||||||
mode_info->framebuffer_address =
|
mode_info->framebuffer_address =
|
||||||
in32le(mode_info->mode_info_block + 40);
|
in32le(mode_info->mode_info_block + 40);
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Function:
|
||||||
r5: prom entry
|
r5: prom entry
|
||||||
Output:
|
Output:
|
||||||
|
|
||||||
Decription: Main entry point, called from OF
|
Description: Main entry point, called from OF
|
||||||
|
|
||||||
*/
|
*/
|
||||||
C_ENTRY(_entry)
|
C_ENTRY(_entry)
|
||||||
|
|
|
@ -52,7 +52,7 @@ int _start_kernel(unsigned long p0, unsigned long p1)
|
||||||
for(rc=0; rc<FILEIO_MAX; ++rc)
|
for(rc=0; rc<FILEIO_MAX; ++rc)
|
||||||
fd_array[rc].type = FILEIO_TYPE_EMPTY;
|
fd_array[rc].type = FILEIO_TYPE_EMPTY;
|
||||||
|
|
||||||
/* this is step is e.g. resposible to initialize file descriptor 0 and 1 for STDIO */
|
/* this is step is e.g. responsible to initialize file descriptor 0 and 1 for STDIO */
|
||||||
rc = of_glue_init(&timebase, (size_t)(unsigned long)&__client_start,
|
rc = of_glue_init(&timebase, (size_t)(unsigned long)&__client_start,
|
||||||
(size_t)(unsigned long)&__client_end - (size_t)(unsigned long)&__client_start);
|
(size_t)(unsigned long)&__client_end - (size_t)(unsigned long)&__client_start);
|
||||||
if(rc < 0)
|
if(rc < 0)
|
||||||
|
|
|
@ -30,7 +30,7 @@ time(time_t *tod)
|
||||||
printf("minute: %d\n", ts.minute);
|
printf("minute: %d\n", ts.minute);
|
||||||
printf("second: %d\n", ts.second);
|
printf("second: %d\n", ts.second);
|
||||||
printf("nano : %d\n", ts.nano);
|
printf("nano : %d\n", ts.nano);
|
||||||
printf("debug ende\n");
|
printf("debug end\n");
|
||||||
|
|
||||||
// if(tod)
|
// if(tod)
|
||||||
// *tod = t;
|
// *tod = t;
|
||||||
|
|
Loading…
Reference in New Issue