diff --git a/kernel/config.c b/kernel/config.c index 19896d9..69bcb22 100644 --- a/kernel/config.c +++ b/kernel/config.c @@ -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; diff --git a/kernel/init-mod.h b/kernel/init-mod.h index 2b781dd..9243240 100644 --- a/kernel/init-mod.h +++ b/kernel/init-mod.h @@ -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 */ diff --git a/kernel/main.c b/kernel/main.c index f2ee738..be75f83 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -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);