mirror of https://github.com/FDOS/kernel.git
Remove lpOldTop variable. It is no longer necessary (has not been
for some time) and the assignment in config_init_buffers() was wrong (screwed up fnodes, so that buffers overlapped fnodes...). This should fix most of the reported fnode problems. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@825 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
9c14e2f86d
commit
9db450a9b7
|
@ -172,7 +172,6 @@ struct config Config = {
|
|||
STATIC seg base_seg = 0;
|
||||
STATIC seg umb_base_seg = 0;
|
||||
BYTE FAR *lpTop = 0;
|
||||
BYTE FAR *lpOldTop = 0;
|
||||
STATIC unsigned nCfgLine = 0;
|
||||
STATIC COUNT nPass = 0;
|
||||
COUNT UmbState = 0;
|
||||
|
@ -1729,8 +1728,6 @@ VOID config_init_buffers(COUNT anzBuffers)
|
|||
anzBuffers = 99;
|
||||
}
|
||||
LoL->nbuffers = anzBuffers;
|
||||
|
||||
lpTop = lpOldTop;
|
||||
|
||||
LoL->inforecptr = &LoL->firstbuf;
|
||||
|
||||
|
|
|
@ -175,7 +175,6 @@ extern UWORD HMAFree; /* first byte in HMA not yet used */
|
|||
extern unsigned CurrentKernelSegment;
|
||||
extern struct _KernelConfig FAR ASM LowKernelConfig;
|
||||
extern WORD days[2][13];
|
||||
extern BYTE FAR *lpOldTop;
|
||||
extern BYTE FAR *lpTop;
|
||||
extern BYTE ASM _ib_start[], ASM _ib_end[], ASM _init_end[];
|
||||
extern UWORD ram_top; /* How much ram in Kbytes */
|
||||
|
|
|
@ -229,7 +229,7 @@ STATIC void init_kernel(void)
|
|||
(FP_OFF(_HMATextEnd) + 15) / 16, 0);
|
||||
|
||||
MoveKernel(FP_SEG(lpTop));
|
||||
lpOldTop = lpTop = MK_FP(FP_SEG(lpTop) - 0xfff, 0xfff0);
|
||||
lpTop = MK_FP(FP_SEG(lpTop) - 0xfff, 0xfff0);
|
||||
|
||||
for (i = 0x20; i <= 0x3f; i++)
|
||||
setvec(i, empty_handler);
|
||||
|
|
Loading…
Reference in New Issue