From 8f1bbcd45d1dfe9ebdc61108971f73edeb8a239a Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Sat, 30 Aug 2003 22:17:42 +0000 Subject: [PATCH] Set the PSP before the DTA. This solves an interrupt vector table corruption. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@665 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/main.c b/kernel/main.c index 0abfc03..b8837f8 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -216,8 +216,8 @@ STATIC void init_kernel(void) setvec(0x2a, int2a_handler); setvec(0x2f, int2f_handler); - set_DTA(MK_FP(DOS_PSP, 0x80)); init_PSPSet(DOS_PSP); + set_DTA(MK_FP(DOS_PSP, 0x80)); init_PSPInit(DOS_PSP); ((psp far *)MK_FP(DOS_PSP, 0))->ps_environ = DOS_PSP + 8;