mirror of
https://github.com/FDOS/kernel.git
synced 2025-04-08 17:15:17 +02:00
Removed "Dutch plurals" ("Dutch plural's" ;-)) from the source code:
kernel/fatfs.c kernel/config.c kernel/kernel.asm kernel/initdisk.c kernel/fattab.c kernel/dyninit.c kernel/int2f.asm kernel/memmgr.c kernel/task.c kernel/dsk.c kernel/printer.asm kernel/globals.h kernel/dosfns.c docs/config.txt hdr/device.h drivers/rdpcclk.asm git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1338 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
c10f276c46
commit
cf05259924
@ -268,7 +268,7 @@ environment variable CONFIG like
|
||||
|
||||
if %CONFIG% == 0 echo configuration 0 selected
|
||||
|
||||
however, if you have no menu's in config.sys, then %config% has no value,
|
||||
however, if you have no MENUs in config.sys, then %config% has no value,
|
||||
thus resulting in "IF == 0 echo configuration 0 selected."
|
||||
(which causes syntax errors as there's nothing on the left side of == )
|
||||
|
||||
|
@ -42,7 +42,7 @@ READPCCLOCK:
|
||||
extern _DaysSinceEpoch ; ; update days if necessary
|
||||
|
||||
; (ah is still 0, al contains midnight flag)
|
||||
add word [_DaysSinceEpoch ],ax ; *some* BIOS's accumulate several days
|
||||
add word [_DaysSinceEpoch ],ax ; *some* BIOSes accumulate several days
|
||||
adc word [_DaysSinceEpoch+2],0 ;
|
||||
|
||||
; set return value dx:ax
|
||||
|
@ -156,7 +156,7 @@ typedef struct {
|
||||
UWORD bpb_nbyte; /* Bytes per Sector */
|
||||
UBYTE bpb_nsector; /* Sectors per Allocation Unit */
|
||||
UWORD bpb_nreserved; /* # Reserved Sectors */
|
||||
UBYTE bpb_nfat; /* # FAT's */
|
||||
UBYTE bpb_nfat; /* # FATs */
|
||||
UWORD bpb_ndirent; /* # Root Directory entries */
|
||||
UWORD bpb_nsize; /* Size in sectors */
|
||||
UBYTE bpb_mdesc; /* MEDIA Descriptor Byte */
|
||||
|
@ -549,7 +549,7 @@ STATIC void umb_init(void)
|
||||
umb_base_seg = umb_max = umb_start = umb_seg;
|
||||
UMB_top = umb_size;
|
||||
|
||||
/* there can be more UMB's !
|
||||
/* there can be more UMBs !
|
||||
this happens, if memory mapped devces are in between
|
||||
like UMB memory c800..c8ff, d8ff..efff with device at d000..d7ff
|
||||
However some of the xxxHIGH commands still only work with
|
||||
@ -1301,13 +1301,13 @@ STATIC VOID DeviceHigh(BYTE * pLine)
|
||||
{
|
||||
if (LoadDevice(pLine, MK_FP(umb_start + UMB_top, 0), TRUE) == DE_NOMEM)
|
||||
{
|
||||
printf("Not enough free memory in UMB's: loading low\n");
|
||||
printf("Not enough free memory in UMBs: loading low\n");
|
||||
LoadDevice(pLine, lpTop, FALSE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("UMB's unavailable!\n");
|
||||
printf("UMBs unavailable!\n");
|
||||
LoadDevice(pLine, lpTop, FALSE);
|
||||
}
|
||||
}
|
||||
|
@ -592,7 +592,7 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib)
|
||||
/* /// End of additions for SHARE. - Ron Cemer */
|
||||
|
||||
/* NEVER EVER allow directories to be created */
|
||||
/* ... though FCB's are weird :) */
|
||||
/* ... though FCBs are weird :) */
|
||||
if (!(flags & O_FCB) &&
|
||||
(attrib & ~(D_RDONLY | D_HIDDEN | D_SYSTEM | D_ARCHIVE | D_VOLID)))
|
||||
return DE_ACCESS;
|
||||
|
@ -917,7 +917,7 @@ STATIC unsigned DMA_max_transfer(void FAR * buffer, unsigned count)
|
||||
|
||||
translation to CHS addressing if necessary
|
||||
|
||||
crossing track boundaries (necessary for some BIOS's
|
||||
crossing track boundaries (necessary for some BIOSes
|
||||
|
||||
High memory doesn't work very well, use internal buffer
|
||||
|
||||
|
@ -19,7 +19,7 @@ additionally:
|
||||
|
||||
02610H 0F40EH 0CDFFH HMA_TEXT HMA
|
||||
|
||||
FCB's, f_nodes, buffers,...
|
||||
FCBs, f_nodes, buffers,...
|
||||
drivers
|
||||
|
||||
|
||||
|
@ -1347,7 +1347,7 @@ COUNT map_cluster(REG f_node_ptr fnp, COUNT mode)
|
||||
}
|
||||
|
||||
/* extends a file from f_dir.dir_size to f_offset */
|
||||
/* Proper OS's write zeros in between, but DOS just adds */
|
||||
/* Proper OSes write zeros in between, but DOS just adds */
|
||||
/* garbage sectors, and lets the caller do the zero filling */
|
||||
/* if you prefer you can have this enabled using */
|
||||
/* #define WRITEZEROS 1 */
|
||||
|
@ -118,10 +118,10 @@ void write_fsinfo(struct dpb FAR * dpbp)
|
||||
|
||||
/* */
|
||||
/* The FAT file system is difficult to trace through FAT table. */
|
||||
/* There are two kinds of FAT's, 12 bit and 16 bit. The 16 bit */
|
||||
/* There are two kinds of FATs, 12 bit and 16 bit. The 16 bit */
|
||||
/* FAT is the easiest, since it is nothing more than a series */
|
||||
/* of UWORD's. The 12 bit FAT is difficult, because it packs 3 */
|
||||
/* FAT entries into two BYTE's. These are packed as follows: */
|
||||
/* of UWORDs. The 12 bit FAT is difficult, because it packs 3 */
|
||||
/* FAT entries into two BYTEs. These are packed as follows: */
|
||||
/* */
|
||||
/* 0x0003 0x0004 0x0005 0x0006 0x0007 0x0008 0x0009 ... */
|
||||
/* */
|
||||
|
@ -230,7 +230,7 @@ Freeman Publishing, Lawrence KS, USA (ISBN 0-87930-436-7).\n\
|
||||
|
||||
/* Globally referenced variables - WARNING: ORDER IS DEFINED IN */
|
||||
/* KERNAL.ASM AND MUST NOT BE CHANGED. DO NOT CHANGE ORDER BECAUSE THEY */
|
||||
/* ARE DOCUMENTED AS UNDOCUMENTED (?) AND HAVE MANY PROGRAMS AND TSR'S */
|
||||
/* ARE DOCUMENTED AS UNDOCUMENTED (?) AND HAVE MANY PROGRAMS AND TSRs */
|
||||
/* ACCESSING THEM */
|
||||
|
||||
extern UWORD ASM NetBios;
|
||||
|
@ -68,7 +68,7 @@ COUNT nUnits BSS_INIT(0);
|
||||
*
|
||||
* d) using intr(intno, ®s) method.
|
||||
*
|
||||
* whynot's
|
||||
* why not?
|
||||
*
|
||||
* a) this is my personal favorite, combining the best aof all worlds.
|
||||
* TURBO-C does support inline assembly, but only by using TASM,
|
||||
@ -93,7 +93,7 @@ COUNT nUnits BSS_INIT(0);
|
||||
* d) this method is somewhat clumsy and certainly not the
|
||||
* fastest way to do things.
|
||||
* on the other hand, this is INIT code, executed once.
|
||||
* and scince it's the only portable method, I opted for it.
|
||||
* and since it's the only portable method, I opted for it.
|
||||
*
|
||||
* e) and all this is my private opinion. tom ehlert.
|
||||
*
|
||||
@ -287,7 +287,7 @@ typedef struct {
|
||||
UWORD bpb_nbyte; /* Bytes per Sector */
|
||||
UBYTE bpb_nsector; /* Sectors per Allocation Unit */
|
||||
UWORD bpb_nreserved; /* # Reserved Sectors */
|
||||
UBYTE bpb_nfat; /* # FAT's */
|
||||
UBYTE bpb_nfat; /* # FATs */
|
||||
UWORD bpb_ndirent; /* # Root Directory entries */
|
||||
UWORD bpb_nsize; /* Size in sectors */
|
||||
UBYTE bpb_mdesc; /* MEDIA Descriptor Byte */
|
||||
@ -885,7 +885,7 @@ BOOL ScanForPrimaryPartitions(struct DriveParamS * driveParam, int scan_type,
|
||||
LBA_to_CHS(&chs, partitionStart, driveParam);
|
||||
LBA_to_CHS(&end, partitionStart + pEntry->NumSect - 1, driveParam);
|
||||
|
||||
/* some FDISK's enter for partitions
|
||||
/* some FDISKs enter for partitions
|
||||
> 8 GB cyl = 1023, other (cyl&1023)
|
||||
*/
|
||||
|
||||
|
@ -466,7 +466,7 @@ FLOPPY_CHANGE:
|
||||
; 00h successful
|
||||
; 80h function not implemented
|
||||
; B0h only a smaller UMB is available
|
||||
; B1h no UMB's are available
|
||||
; B1h no UMBs are available
|
||||
; B2h UMB segment number is invalid
|
||||
;
|
||||
|
||||
@ -480,7 +480,7 @@ UMB_GET_LARGEST:
|
||||
mov bp,sp
|
||||
|
||||
mov dx,0xffff ; go for broke!
|
||||
mov ax,1000h ; get the umb's
|
||||
mov ax,1000h ; get the UMBs
|
||||
call far [bp+8] ; Call the driver
|
||||
|
||||
;
|
||||
|
@ -279,7 +279,7 @@ _NetBios dw 0 ; NetBios Number
|
||||
|
||||
; Globally referenced variables - WARNING: DO NOT CHANGE ORDER
|
||||
; BECAUSE THEY ARE DOCUMENTED AS UNDOCUMENTED (?) AND HAVE
|
||||
; MANY MULTIPLEX PROGRAMS AND TSR'S ACCESSING THEM
|
||||
; MANY MULTIPLEX PROGRAMS AND TSRs ACCESSING THEM
|
||||
global _NetRetry
|
||||
_NetRetry dw 3 ;-000c network retry count
|
||||
global _NetDelay
|
||||
@ -417,7 +417,7 @@ _PrinterEcho db 0 ;-34 - 0 = no printer echo, ~0 echo
|
||||
global _verify_ena
|
||||
_verify_ena db 0 ; ~0, write with verify
|
||||
|
||||
; this byte is used for TAB's
|
||||
; this byte is used for TABs (shared by all char device writes??)
|
||||
global _scr_pos
|
||||
_scr_pos db 0 ; Current Cursor Column
|
||||
global _switchar
|
||||
|
@ -299,7 +299,7 @@ COUNT DosMemFree(UWORD para)
|
||||
return DE_INVLDMCB;
|
||||
|
||||
/* Mark the mcb as free so that we can later */
|
||||
/* merge with other surrounding free mcb's */
|
||||
/* merge with other surrounding free MCBs */
|
||||
p->m_psp = FREE_PSP;
|
||||
fmemset(p->m_name, '\0', 8);
|
||||
|
||||
@ -356,11 +356,11 @@ COUNT DosMemChange(UWORD para, UWORD size, UWORD * maxSize)
|
||||
p->m_type = MCB_NORMAL;
|
||||
|
||||
/* Mark the mcb as free so that we can later */
|
||||
/* merge with other surrounding free mcb's */
|
||||
/* merge with other surrounding free MCBs */
|
||||
q->m_psp = FREE_PSP;
|
||||
fmemset(q->m_name, '\0', 8);
|
||||
|
||||
/* try to join q with the free mcb's following it if possible */
|
||||
/* try to join q with the free MCBs following it if possible */
|
||||
if (joinMCBs(FP_SEG(q)) != SUCCESS)
|
||||
return DE_MCBDESTRY;
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ PrtGnIoctl3:
|
||||
;
|
||||
; original implementation didn't print at all - on my machine,LPT2
|
||||
;
|
||||
; maybe this one's not much better either,
|
||||
; maybe this one is not much better either,
|
||||
; but should print a little bit
|
||||
;
|
||||
; the status bits = AH
|
||||
|
@ -433,7 +433,7 @@ COUNT DosComLoader(BYTE FAR * namep, exec_blk * exp, COUNT mode, COUNT fd)
|
||||
if (mode & 0x80)
|
||||
{
|
||||
mem_access_mode |= 0x80;
|
||||
DosUmbLink(1); /* link in UMB's */
|
||||
DosUmbLink(1); /* link in UMBs */
|
||||
}
|
||||
|
||||
rc = ChildEnv(exp, &env, namep);
|
||||
@ -599,7 +599,7 @@ COUNT DosExeLoader(BYTE FAR * namep, exec_blk * exp, COUNT mode, COUNT fd)
|
||||
/* Clone the environement and create a memory arena */
|
||||
if (mode & 0x80)
|
||||
{
|
||||
DosUmbLink(1); /* link in UMB's */
|
||||
DosUmbLink(1); /* link in UMBs */
|
||||
mem_access_mode |= 0x80;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user