update copyright year, add some comments

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1489 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Kenneth J Davis 2009-07-13 03:21:32 +00:00
parent 82d77a19e1
commit 2e9792fae5

View File

@ -30,6 +30,7 @@
#include "portab.h" #include "portab.h"
#include "init-mod.h" #include "init-mod.h"
#include "dyndata.h" #include "dyndata.h"
#include "debug.h"
#ifdef VERSION_STRINGS #ifdef VERSION_STRINGS
static BYTE *mainRcsId = static BYTE *mainRcsId =
@ -37,7 +38,7 @@ static BYTE *mainRcsId =
#endif #endif
static char copyright[] = static char copyright[] =
"(C) Copyright 1995-2006 Pasquale J. Villani and The FreeDOS Project.\n" "(C) Copyright 1995-2009 Pasquale J. Villani and The FreeDOS Project.\n"
"All Rights Reserved. This is free software and comes with ABSOLUTELY NO\n" "All Rights Reserved. This is free software and comes with ABSOLUTELY NO\n"
"WARRANTY; you can redistribute it and/or modify it under the terms of the\n" "WARRANTY; you can redistribute it and/or modify it under the terms of the\n"
"GNU General Public License as published by the Free Software Foundation;\n" "GNU General Public License as published by the Free Software Foundation;\n"
@ -108,11 +109,15 @@ VOID ASMCFUNC FreeDOSmain(void)
drv = 3; /* C: */ drv = 3; /* C: */
LoL->BootDrive = drv; LoL->BootDrive = drv;
/* install DOS API and other interrupt service routines, basic kernel functionality works */
setup_int_vectors(); setup_int_vectors();
CheckContinueBootFromHarddisk(); CheckContinueBootFromHarddisk();
/* display copyright info and kernel emulation status */
signon(); signon();
/* initialize all internal variables, process CONFIG.SYS, load drivers, etc */
init_kernel(); init_kernel();
#ifdef DEBUG #ifdef DEBUG
@ -683,14 +688,14 @@ STATIC VOID InitSerialPorts(VOID)
} }
/***************************************************************** /*****************************************************************
if kernel.config.BootHarddiskSeconds is set, if kernel.config.BootHarddiskSeconds is set,
the default is to boot from harddisk, because the default is to boot from harddisk, because
the user is assumed to just have forgotten to the user is assumed to just have forgotten to
remove the floppy/bootable CD from the drive. remove the floppy/bootable CD from the drive.
user has some seconds to hit ANY key to continue user has some seconds to hit ANY key to continue
to boot from floppy/cd, else the system is to boot from floppy/cd, else the system is
booted from HD booted from HD
*/ */
STATIC int EmulatedDriveStatus(int drive,char statusOnly) STATIC int EmulatedDriveStatus(int drive,char statusOnly)
@ -706,9 +711,9 @@ STATIC int EmulatedDriveStatus(int drive,char statusOnly)
init_call_intr(0x13, &r); init_call_intr(0x13, &r);
if (r.flags & 1) if (r.flags & 1)
return FALSE; return FALSE;
return TRUE; return TRUE;
} }
STATIC void CheckContinueBootFromHarddisk(void) STATIC void CheckContinueBootFromHarddisk(void)