Skip to content

Commit

Permalink
main: insure master environment starts out empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ecm-pushbx authored and PerditionC committed Jul 3, 2023
1 parent a0549a3 commit 29ccb6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ VOID ASMCFUNC FreeDOSmain(void)
drv = 3; /* C: */
LoL->BootDrive = drv;

/* init master environment start */
*master_env = 0;
master_env[1] = 0;
master_env[2] = 0;
master_env[3] = 0;

/* install DOS API and other interrupt service routines, basic kernel functionality works */
setup_int_vectors();

Expand Down

0 comments on commit 29ccb6e

Please sign in to comment.