1
0
Fork 0

Shell now has a stack when it first starts

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@148
This commit is contained in:
Sjoerd van der Berg 2002-08-13 04:51:24 +00:00
parent 537de8d0f6
commit 92ea87eef6

View file

@ -19,6 +19,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include "shell_inc.h"
Bitu call_shellstop;
@ -139,6 +140,9 @@ void SHELL_Init() {
/* Now call up the shell for the first time */
Bit16u psp_seg=DOS_GetMemory(16);
Bit16u env_seg=DOS_GetMemory(1+(4096/16));
Bit16u stack_seg=DOS_GetMemory(2048/16);
SetSegment_16(ss,stack_seg);
reg_sp=2046;
/* Setup a fake MCB for the environment */
MCB * env_mcb=(MCB *)real_host(env_seg,0);
env_mcb->psp_segment=psp_seg;