diff options
| author | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 | 
| commit | 8bde7f776c77b343aca29b8c7b58464d915ac245 (patch) | |
| tree | 20f1fd99975215e7c658454a15cdb4ed4694e2d4 /board/MAI/bios_emulator/scitech/src/common/aaos2.c | |
| parent | 993cad9364c6b87ae429d1ed1130d8153f6f027e (diff) | |
| download | olio-uboot-2014.01-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.xz olio-uboot-2014.01-8bde7f776c77b343aca29b8c7b58464d915ac245.zip | |
* Code cleanup:LABEL_2003_06_27_2340
  - remove trailing white space, trailing empty lines, C++ comments, etc.
  - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
* Patches by Kenneth Johansson, 25 Jun 2003:
  - major rework of command structure
    (work done mostly by Michal Cendrowski and Joakim Kristiansen)
Diffstat (limited to 'board/MAI/bios_emulator/scitech/src/common/aaos2.c')
| -rw-r--r-- | board/MAI/bios_emulator/scitech/src/common/aaos2.c | 36 | 
1 files changed, 18 insertions, 18 deletions
| diff --git a/board/MAI/bios_emulator/scitech/src/common/aaos2.c b/board/MAI/bios_emulator/scitech/src/common/aaos2.c index 486b96a9c..0ec8c9fcf 100644 --- a/board/MAI/bios_emulator/scitech/src/common/aaos2.c +++ b/board/MAI/bios_emulator/scitech/src/common/aaos2.c @@ -65,25 +65,25 @@ GA_sharedInfo * NAPI GA_getSharedInfo(      /* Open our helper device driver */      if (DosOpen(PMHELP_NAME,&hSDDHelp,&result,0,0, -            FILE_OPEN, OPEN_SHARE_DENYNONE | OPEN_ACCESS_READWRITE, -            NULL)) -        PM_fatalError("Unable to open SDDHELP$ helper device driver!"); +	    FILE_OPEN, OPEN_SHARE_DENYNONE | OPEN_ACCESS_READWRITE, +	    NULL)) +	PM_fatalError("Unable to open SDDHELP$ helper device driver!");      outLen = sizeof(result);      DosDevIOCtl(hSDDHelp,PMHELP_IOCTL,PMHELP_GETSHAREDINFO, -        NULL, 0, NULL, -        &result, outLen, &outLen); +	NULL, 0, NULL, +	&result, outLen, &outLen);      DosClose(hSDDHelp);      if (result) { -        /* We have found the shared Nucleus packet. Because not all processes -         * map to SDDPMI.DLL, we need to ensure that we connect to this -         * DLL so that it gets mapped into our address space (that is -         * where the shared Nucleus packet is located). Simply doing a -         * DosLoadModule on it is enough for this. -         */ -        HMODULE hModSDDPMI; -        char    buf[80]; -        DosLoadModule((PSZ)buf,sizeof(buf),(PSZ)"SDDPMI.DLL",&hModSDDPMI); -        } +	/* We have found the shared Nucleus packet. Because not all processes +	 * map to SDDPMI.DLL, we need to ensure that we connect to this +	 * DLL so that it gets mapped into our address space (that is +	 * where the shared Nucleus packet is located). Simply doing a +	 * DosLoadModule on it is enough for this. +	 */ +	HMODULE hModSDDPMI; +	char    buf[80]; +	DosLoadModule((PSZ)buf,sizeof(buf),(PSZ)"SDDPMI.DLL",&hModSDDPMI); +	}      return (GA_sharedInfo*)result;  } @@ -106,7 +106,7 @@ Nucleus loader library.  ibool NAPI GA_TimerInit(void)  {      if (_GA_haveCPUID() && (_GA_getCPUIDFeatures() & CPU_HaveRDTSC) != 0) -        haveRDTSC = true; +	haveRDTSC = true;      return true;  } @@ -118,7 +118,7 @@ void NAPI GA_TimerRead(      GA_largeInteger *value)  {      if (haveRDTSC) -        _GA_readTimeStamp(value); +	_GA_readTimeStamp(value);      else -        DosTmrQueryTime((QWORD*)value); +	DosTmrQueryTime((QWORD*)value);  } |