mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
Reduce the number of spelling mistakes.
This commit is contained in:
parent
6871a6c89e
commit
17de5908ce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94557
@ -271,7 +271,7 @@ dos_makepath(u_char *where, u_char *newpath)
|
||||
|
||||
/*
|
||||
* Set DOS's idea of the CWD for drive to be where.
|
||||
* Returns DOS errno on failuer.
|
||||
* Returns DOS errno on failure.
|
||||
*/
|
||||
int
|
||||
dos_setcwd(u_char *where)
|
||||
@ -954,7 +954,7 @@ printf("find_next: found %s\n",name);
|
||||
}
|
||||
|
||||
/*
|
||||
* perfrom hokey DOS pattern matching. pattern may contain the wild cards
|
||||
* perform hokey DOS pattern matching. pattern may contain the wild cards
|
||||
* '*' and '?' only. Follow the DOS convention that '?*', '*?' and '**' all
|
||||
* are the same as '*'. Also, allow '?' to match the blank padding in a
|
||||
* name (hence, ???? matchs all of "a", "ab", "abc" and "abcd" but not "abcde")
|
||||
|
@ -226,7 +226,7 @@ typedef struct {
|
||||
u_short dta_seg __attribute__ ((packed)); /* 0Ch DWORD current DTA */
|
||||
u_short psp __attribute__ ((packed)); /* 10h WORD current PSP */
|
||||
u_short int_23_sp __attribute__ ((packed)); /* 12h WORD stores SP across an INT 23 */
|
||||
u_short wait_status __attribute__ ((packed)); /* 14h WORD return code from last process termination (zerod after reading with AH=4Dh) */
|
||||
u_short wait_status __attribute__ ((packed)); /* 14h WORD return code from last process termination (set to 0 after reading with AH=4Dh) */
|
||||
u_char current_drive __attribute__ ((packed)); /* 16h BYTE current drive */
|
||||
u_char break_flag __attribute__ ((packed)); /* 17h BYTE extended break flag */
|
||||
u_char unknown1[2] __attribute__ ((packed)); /* 18h 2 BYTEs ??? */
|
||||
@ -336,7 +336,7 @@ struct exehdr {
|
||||
u_short nreloc;
|
||||
u_short hdr_size; /* paragraphs */
|
||||
u_short min_memory; /* paragraphs */
|
||||
u_short max_memory; /* pargraphs */
|
||||
u_short max_memory; /* paragraphs */
|
||||
u_short init_ss;
|
||||
u_short init_sp;
|
||||
u_short checksum;
|
||||
|
@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
|
||||
* is ems_entry(..). The emulator needs to be initialized before the first
|
||||
* call. The first step of the initialization is done during program startup
|
||||
* the second part is done during DOS boot, from a call of the DOS driver.
|
||||
* The DOS driver is neccessary because DOS programs look for it to
|
||||
* The DOS driver is necessary because DOS programs look for it to
|
||||
* determine if EMS is available.
|
||||
*
|
||||
* To emulate a configurable amount of EMS memory we use a file created
|
||||
@ -109,7 +109,7 @@ struct copydesc {
|
||||
short copytype; /* Type of source and destination memory */
|
||||
EMS_addr src_addr; /* Combined pointer for source */
|
||||
EMS_addr dst_addr; /* Combined pointer for destination */
|
||||
u_long rest_len; /* Lenght to copy */
|
||||
u_long rest_len; /* Length to copy */
|
||||
};
|
||||
|
||||
|
||||
@ -1529,7 +1529,7 @@ copy_block_up(struct copydesc *cdp)
|
||||
void *dstp;
|
||||
|
||||
/* If source or both memory types are EMS, source determines the
|
||||
* block lenght, else destination determines the block lenght
|
||||
* block length, else destination determines the block length
|
||||
*/
|
||||
if (cdp->copytype & SRC_EMS)
|
||||
size = EMS_PAGESIZE - cdp->EMS_OFFS(src_addr);
|
||||
|
@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$");
|
||||
* To call emuint from VM86 space do:
|
||||
* push ax Save original ax value (*must be done* !)
|
||||
* mov ah, funcnum Emuint function number to ah
|
||||
* mov al, subfunc Subfunction number, optional, depening on func
|
||||
* mov al, subfunc Subfunction number, optional, depending on func
|
||||
* int 0xff
|
||||
* ..
|
||||
* ..
|
||||
|
@ -35,7 +35,7 @@
|
||||
* Interrupt 0xFF is used by some emulator functions. It is a portal into
|
||||
* the emulator and cannot be used by ordinary DOS applications directly
|
||||
* The interrupt 0xFF is called by helper functions under DOS (such as
|
||||
* the redirector interfcae and the EMS emulation).
|
||||
* the redirector interface and the EMS emulation).
|
||||
* There are functions and subfunctions defined. (See emuint.c for details)
|
||||
*/
|
||||
|
||||
|
@ -50,9 +50,9 @@ static inline void showstate(long, long, char);
|
||||
* 1) Always set the trap flag.
|
||||
* 2) If this is a POPF or IRET instruction, set the trap flag in the saved
|
||||
* flag state on the stack.
|
||||
* On enterint from VM86 mode:
|
||||
* On entering from VM86 mode:
|
||||
* 1) Restore the trap flag from our saved flag state.
|
||||
* 2) If we just finished a POPF or IRET unstruction, patch the saved flag
|
||||
* 2) If we just finished a POPF or IRET instruction, patch the saved flag
|
||||
* state on the stack.
|
||||
*/
|
||||
|
||||
|
@ -197,8 +197,8 @@ static void vram2ximage(void);
|
||||
#define K4_SLOCK_LED 0x01
|
||||
#define K4_NLOCK_LED 0x02
|
||||
#define K4_CLOCK_LED 0x04
|
||||
#define K4_ACK 0x10 /* ACK recieved from keyboard */
|
||||
#define K4_RESEND 0x20 /* RESEND recieved from keyboard */
|
||||
#define K4_ACK 0x10 /* ACK received from keyboard */
|
||||
#define K4_RESEND 0x20 /* RESEND received from keyboard */
|
||||
#define K4_LED 0x40 /* LED update in progress */
|
||||
#define K4_ERROR 0x80
|
||||
|
||||
|
@ -30,12 +30,12 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* XMS memory manmagement
|
||||
* XMS memory management
|
||||
*
|
||||
* To emulate DOS extended memory (EMM) we use an implementation of
|
||||
* HIMEM.SYS driver capabitlities, according to the XMS 3.0 Spec.
|
||||
* HIMEM.SYS driver capabilities, according to the XMS 3.0 Spec.
|
||||
* The actual memory allocated via XMS calls from DOS is allocated
|
||||
* via malloc by the emulator. Maximum memory allocation is configureable.
|
||||
* via malloc by the emulator. Maximum memory allocation is configurable.
|
||||
*
|
||||
* Credits to:
|
||||
* The original author of this file, some parts are still here
|
||||
@ -126,14 +126,14 @@ xms_init(void)
|
||||
|
||||
/*
|
||||
* UMB management routines: UMBs normally lie between 0xd0000 and
|
||||
* 0xefff0 in VM86 memory space and are accessible for all DOS applictions.
|
||||
* 0xefff0 in VM86 memory space and are accessible for all DOS applications.
|
||||
* We could enable more space, but with the emulator we do not
|
||||
* need many drivers, so I think 2 * 64kB will suffice. If EMS emulation
|
||||
* exists, a 64kB segment (0xe0000 - 0xeffff for example) is needed for
|
||||
* the EMS mapping, in this case we have 64kB UMB space. This is more than
|
||||
* many PCs are able to do.
|
||||
* This emulation does only the management for the memory, the memory
|
||||
* is present and read/write/excutable for VM86 applications.
|
||||
* is present and read/write/executable for VM86 applications.
|
||||
*/
|
||||
|
||||
/* Add a block to a list, maintain ascending start address order */
|
||||
|
@ -35,7 +35,7 @@
|
||||
#define XMS_REVISION 0x0100 /* driver revision 1.0 */
|
||||
|
||||
#define NUM_HANDLES 64 /* number of available handles */
|
||||
#define FIRST_HANDLE 1 /* number of firts valid handle */
|
||||
#define FIRST_HANDLE 1 /* number of first valid handle */
|
||||
#define PARAGRAPH 16 /* bytes in a paragraph */
|
||||
#define MAX_BLOCK_LOCKS 256 /* number of locks on a block */
|
||||
#define DEFAULT_EMM_SIZE 512 * 1024 /* default EMM size */
|
||||
@ -60,7 +60,7 @@
|
||||
#define XMS_ALLOCATE_UMB 0x10
|
||||
#define XMS_DEALLOCATE_UMB 0x11
|
||||
#define XMS_REALLOCATE_UMB 0x12
|
||||
/* New functions for values bigger than 65MB, not implented yet */
|
||||
/* New functions for values bigger than 65MB, not implanted yet */
|
||||
#define XMS_QUERY_FREE_EXTENDED_MEMORY_LARGE 0x88
|
||||
#define XMS_ALLOCATE_EXTENDED_MEMORY_LARGE 0x89
|
||||
#define XMS_FREE_EXTENDED_MEMORY_LARGE 0x8a
|
||||
@ -118,7 +118,7 @@ struct XMSinfo {
|
||||
};
|
||||
|
||||
/*
|
||||
* Handle management inside the emulator for extendend memory pages,
|
||||
* Handle management inside the emulator for extended memory pages,
|
||||
* invisible to DOS
|
||||
*/
|
||||
|
||||
@ -129,7 +129,7 @@ typedef struct {
|
||||
} XMS_handle;
|
||||
|
||||
/*
|
||||
* Managment of UMB memory paragraphs (16 bytes). UMB blocks are
|
||||
* Management of UMB memory paragraphs (16 bytes). UMB blocks are
|
||||
* directly accessible by VM86 applications and lie between 0xd0000 and
|
||||
* 0xefff0 in VM86 memory space.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user