From: Bart O. <bar...@us...> - 2004-03-26 22:01:15
|
Update of /cvsroot/freedos/kernel/kernel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4138 Modified Files: main.c config.c init-mod.h Log Message: 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. Index: config.c =================================================================== RCS file: /cvsroot/freedos/kernel/kernel/config.c,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- config.c 26 Mar 2004 11:26:55 -0000 1.68 +++ config.c 26 Mar 2004 21:50:12 -0000 1.69 @@ -172,7 +172,6 @@ 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 @@ anzBuffers = 99; } LoL->nbuffers = anzBuffers; - - lpTop = lpOldTop; LoL->inforecptr = &LoL->firstbuf; Index: main.c =================================================================== RCS file: /cvsroot/freedos/kernel/kernel/main.c,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -r1.66 -r1.67 --- main.c 17 Mar 2004 21:28:54 -0000 1.66 +++ main.c 26 Mar 2004 21:50:12 -0000 1.67 @@ -229,7 +229,7 @@ (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); Index: init-mod.h =================================================================== RCS file: /cvsroot/freedos/kernel/kernel/init-mod.h,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- init-mod.h 17 Mar 2004 21:28:54 -0000 1.36 +++ init-mod.h 26 Mar 2004 21:50:12 -0000 1.37 @@ -175,7 +175,6 @@ 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 */ |