ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
June 2011
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
25 participants
460 discussions
Start a n
N
ew thread
[nyadav] 52162: [AUDSRV] Fix Function Names to Conventions
by nyadav@svn.reactos.org
Author: nyadav Date: Thu Jun 9 18:43:48 2011 New Revision: 52162 URL:
http://svn.reactos.org/svn/reactos?rev=52162&view=rev
Log: [AUDSRV] Fix Function Names to Conventions Modified: branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.spec branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c Modified: branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/dll/win32/a…
============================================================================== --- branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c [iso-8859-1] Thu Jun 9 18:43:48 2011 @@ -14,7 +14,7 @@ /*Initialize an audio stream *Return -1 if callbacks are NULL pointers */ -WINAPI int initstream (ClientStream * clientstream,LONG frequency,int channels,int bitspersample,int datatype, ULONG channelmask,int volume,int mute,float balance) +WINAPI int InitStream (ClientStream * clientstream,LONG frequency,int channels,int bitspersample,int datatype, ULONG channelmask,int volume,int mute,float balance) { long streamid; @@ -61,7 +61,7 @@ return 0; } -WINAPI int playaudio ( ClientStream * clientstream ) +WINAPI int PlayAudio ( ClientStream * clientstream ) { /*This is an ActiveScheduler*/ clientstream->callbacks.OpenComplete(0); @@ -85,12 +85,11 @@ } clientstream->callbacks.PlayComplete(0); -DEAD: /*Audio Thread Ended*/ return 0; } -WINAPI int stopaudio (ClientStream * clientstream ) +WINAPI int StopAudio (ClientStream * clientstream ) { /*Server Side termination is remaining*/ /*If connected Properly call the remote audsrv_stop() function*/ Modified: branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.spec URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/dll/win32/a…
============================================================================== --- branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.spec [iso-8859-1] (original) +++ branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.spec [iso-8859-1] Thu Jun 9 18:43:48 2011 @@ -1,6 +1,6 @@ -@ stdcall initstream (ptr long long long long long long long long) -@ stdcall playaudio ( ptr); -@ stdcall stopaudio (ptr ); +@ stdcall InitStream (ptr long long long long long long long long) +@ stdcall PlayAudio ( ptr); +@ stdcall StopAudio (ptr ); @ stdcall Volume(ptr ptr ); @ stdcall SetVolume(ptr long); @ stdcall Write(ptr ptr); Modified: branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/drivers/wdm…
============================================================================== --- branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c [iso-8859-1] Thu Jun 9 18:43:48 2011 @@ -13,16 +13,16 @@ #include <audsrvapi.h> #include <stdio.h> -void opencomplete (int error ); -void buffercopied (int error ); -void playcomplete (int error ); +void OpenComplete (int error ); +void BufferCopied (int error ); +void PlayComplete (int error ); ClientStream clientstream = {0, 0, {NULL}, - {opencomplete, - buffercopied, - playcomplete} + {OpenComplete, + BufferCopied, + PlayComplete} }; DWORD WINAPI RunAudioThread(LPVOID param) @@ -32,18 +32,18 @@ return 0; } -void opencomplete (int error ) +void OpenComplete (int error ) { /*Copy First Buffer and write*/ Write(&clientstream, "HELLO_RANDOM_STRING"); } -void buffercopied (int error ) +void BufferCopied (int error ) { Write(&clientstream, "HELLO_RANDOM_STRING"); } -void playcomplete (int error ) +void PlayComplete (int error ) { OutputDebugStringA("Playback Completed\n"); } @@ -55,7 +55,7 @@ DWORD dwID; HANDLE audiothread = NULL; char input='\0'; - printf("ReactOS Audio Mixer Sample Client.Enter 'a' to Stop.\n"); + OutputDebugStringA("ReactOS Audio Mixer Sample Client.Enter 'a' to Stop.\n"); //if (clientstream->callbacks.OpenComplete == NULL || clientstream->callbacks.BufferCopied == NULL || clientstream->callbacks.PlayComplete == NULL) printf(""); /*[out]HANDLE * streamhandle,[in] long frequency,[in] int number of channels,[in] int bitspersample,[in]ULONG channelmask,[in] int volume,[in] int mute,[in] float balance*/ @@ -71,19 +71,19 @@ if ( error ) { - printf("Failed to Initialize Stream.Error %d\n", error); + OutputDebugStringA("Failed to Initialize Stream.Error \n"); goto error; } else { - printf("StreamID : %ld\n",clientstream.stream); + OutputDebugStringA("StreamID : %ld\n",clientstream.stream); audiothread = CreateThread(NULL,0,RunAudioThread,&clientstream,0,&dwID); } while ( input != 'a' ) scanf("%c",&input); - printf("Stoping Audio Stream.\n"); + OutputDebugStringA("Stoping Audio Stream.\n"); stopaudio(&clientstream); WaitForSingleObject(audiothread,INFINITE);
13 years, 6 months
1
0
0
0
[nyadav] 52161: [AUDSRV] Following Naming Convention for Functions
by nyadav@svn.reactos.org
Author: nyadav Date: Thu Jun 9 18:31:59 2011 New Revision: 52161 URL:
http://svn.reactos.org/svn/reactos?rev=52161&view=rev
Log: [AUDSRV] Following Naming Convention for Functions Modified: branches/nyadav-audio-branch/base/services/audsrv/audsrv.c branches/nyadav-audio-branch/base/services/audsrv/audsrv.h branches/nyadav-audio-branch/base/services/audsrv/mixer.c branches/nyadav-audio-branch/base/services/audsrv/rpc.c branches/nyadav-audio-branch/base/services/audsrv/stream.c Modified: branches/nyadav-audio-branch/base/services/audsrv/audsrv.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/audsrv.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/audsrv.c [iso-8859-1] Thu Jun 9 18:31:59 2011 @@ -14,7 +14,7 @@ static DWORD ServiceInit(VOID); -static BOOL WINAPI close (DWORD dwCtrlType); +static BOOL WINAPI Close (DWORD dwCtrlType); static WCHAR ServiceName[] = L"AudSrv"; @@ -80,7 +80,7 @@ { case SERVICE_CONTROL_STOP: DPRINT(" SERVICE_CONTROL_STOP received\n"); - close(CTRL_CLOSE_EVENT); + Close(CTRL_CLOSE_EVENT); UpdateServiceStatus(SERVICE_STOPPED); return ERROR_SUCCESS; @@ -102,7 +102,7 @@ case SERVICE_CONTROL_SHUTDOWN: DPRINT(" SERVICE_CONTROL_SHUTDOWN received\n"); - close(CTRL_CLOSE_EVENT); + Close(CTRL_CLOSE_EVENT); UpdateServiceStatus(SERVICE_STOPPED); return ERROR_SUCCESS; @@ -156,7 +156,7 @@ *This functions fetches FilteredBuffer from Every ClientStream Stucture *and mixes them in oder to feed player thread*/ void -mixandfill(MixerEngine * mixer, +MixAndFill(MixerEngine * mixer, int buffer) { while(WaitForSingleObject(mixer->streampresent, @@ -172,16 +172,16 @@ switch(mixer->masterbitspersample) { case 8: - mixs8(mixer,buffer); + MixS8(mixer,buffer); break; case 16: - mixs16(mixer,buffer); + MixS16(mixer,buffer); break; case 32: - mixs32(mixer,buffer); + MixS32(mixer,buffer); break; case 64: - mixs64(mixer,buffer); + MixS64(mixer,buffer); break; } } @@ -190,16 +190,16 @@ switch(mixer->masterbitspersample) { case 8: - mixu8(mixer,buffer); + MixU8(mixer,buffer); break; case 16: - mixu16(mixer,buffer); + MixU16(mixer,buffer); break; case 32: - mixu32(mixer,buffer); + MixU32(mixer,buffer); break; case 64: - mixu64(mixer,buffer); + MixU64(mixer,buffer); break; } } @@ -208,17 +208,17 @@ switch(mixer->masterbitspersample) { case 32: - mixfl32(mixer,buffer); + MixFL32(mixer,buffer); break; case 64: - mixfl64(mixer,buffer); + MixFL64(mixer,buffer); break; } } } /*Frees the Buffer Created in mixer thread*/ -void freebuffer() +void FreeBuffer() { HeapFree(GetProcessHeap(), 0, @@ -228,7 +228,8 @@ } /*Plays Master buffer pengine->masterbuf[pengine->playcurrent]*/ -void playbuffer(MixerEngine * mixer,int buffer) +void PlayBuffer(MixerEngine * mixer, + int buffer) { SP_DEVICE_INTERFACE_DATA InterfaceData; SP_DEVINFO_DATA DeviceData; @@ -436,7 +437,7 @@ if(mixer->dead) break; - mixandfill(mixer, + MixAndFill(mixer, 1-mixer->playcurrent); SetEvent(mixer->filled); @@ -463,10 +464,10 @@ break; SetEvent(mixer->played); - playbuffer(mixer, + PlayBuffer(mixer, mixer->playcurrent); - freebuffer(); + FreeBuffer(); mixer->playcurrent=1-mixer->playcurrent; } @@ -530,7 +531,7 @@ } /*This Functions Kills the application, in any condition*/ -static BOOL WINAPI close ( DWORD dwCtrlType ) +static BOOL WINAPI Close ( DWORD dwCtrlType ) { pengine->dead=1; @@ -587,7 +588,7 @@ FALSE, NULL); - SetConsoleCtrlHandler(close, + SetConsoleCtrlHandler(Close, TRUE); SpawnMixerThread(pengine); @@ -625,7 +626,7 @@ pengine->played=CreateEvent(NULL,FALSE,FALSE,NULL); pengine->filled=CreateEvent(NULL,FALSE,FALSE,NULL); pengine->streampresent=CreateEvent(NULL,TRUE,FALSE,NULL); - SetConsoleCtrlHandler(close,TRUE); + SetConsoleCtrlHandler(Close,TRUE); SpawnMixerThread(pengine); SpawnPlayerThread(pengine); SpawnRPCThread(pengine); Modified: branches/nyadav-audio-branch/base/services/audsrv/audsrv.h URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/audsrv.h [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/audsrv.h [iso-8859-1] Thu Jun 9 18:31:59 2011 @@ -99,14 +99,14 @@ DWORD WINAPI RunRPCThread(LPVOID lpParameter); /* audsrv.c*/ -void mixandfill(MixerEngine * mixer, +void MixAndFill(MixerEngine * mixer, int buffer); -void playbuffer(MixerEngine * mixer, +void PlayBuffer(MixerEngine * mixer, int buffer); /*stream.c*/ -long getnewstreamid(); -long addstream(LONG frequency, +long GetNewStreamID(); +long AddStream(LONG frequency, int channels, int bitspersample, int datatype, @@ -116,34 +116,34 @@ float balance); /*mixer.c*/ -void * mixs8(MixerEngine * mixer, +void * MixS8(MixerEngine * mixer, int buffer); -void * mixs16(MixerEngine * mixer, +void * MixS16(MixerEngine * mixer, int buffer); -void * mixs32(MixerEngine * mixer, +void * MixS32(MixerEngine * mixer, int buffer); -void * mixs64(MixerEngine * mixer, +void * MixS64(MixerEngine * mixer, int buffer); -void * mixu8(MixerEngine * mixer, +void * MixU8(MixerEngine * mixer, int buffer); -void * mixu16(MixerEngine * mixer, +void * MixU16(MixerEngine * mixer, int buffer); -void * mixu32(MixerEngine * mixer, +void * MixU32(MixerEngine * mixer, int buffer); -void * mixu64(MixerEngine * mixer, +void * MixU64(MixerEngine * mixer, int buffer); -void * mixfl32(MixerEngine * mixer, +void * MixFL32(MixerEngine * mixer, int buffer); -void * mixfl64(MixerEngine * mixer, +void * MixFL64(MixerEngine * mixer, int buffer); #endif /* __AUDSRV_H__ */ Modified: branches/nyadav-audio-branch/base/services/audsrv/mixer.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/mixer.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/mixer.c [iso-8859-1] Thu Jun 9 18:31:59 2011 @@ -8,11 +8,11 @@ */ #include "audsrv.h" -void * mixs8(MixerEngine * mixer,int buffer) +void * MixS8(MixerEngine * mixer,int buffer) { return NULL; } -void * mixs16(MixerEngine * mixer,int buffer) +void * MixS16(MixerEngine * mixer,int buffer) { mixer->masterbuf[buffer] = HeapAlloc(GetProcessHeap(), 0, mixer->serverstreamlist->length_filtered); CopyMemory(mixer->masterbuf[buffer],mixer->serverstreamlist->filteredbuf,mixer->serverstreamlist->length_filtered); @@ -20,35 +20,35 @@ return NULL; } -void * mixs32(MixerEngine * mixer,int buffer) +void * MixS32(MixerEngine * mixer,int buffer) { return NULL; } -void * mixs64(MixerEngine * mixer,int buffer) +void * MixS64(MixerEngine * mixer,int buffer) { return NULL; } -void * mixu8(MixerEngine * mixer,int buffer) +void * MixU8(MixerEngine * mixer,int buffer) { return NULL; } -void * mixu16(MixerEngine * mixer,int buffer) +void * MixU16(MixerEngine * mixer,int buffer) { return NULL; } -void * mixu32(MixerEngine * mixer,int buffer) +void * MixU32(MixerEngine * mixer,int buffer) { return NULL; } -void * mixu64(MixerEngine * mixer,int buffer) +void * MixU64(MixerEngine * mixer,int buffer) { return NULL; } -void * mixfl32(MixerEngine * mixer,int buffer) +void * MixFL32(MixerEngine * mixer,int buffer) { return NULL; } -void * mixfl64(MixerEngine * mixer,int buffer) +void * MixFL64(MixerEngine * mixer,int buffer) { return NULL; } Modified: branches/nyadav-audio-branch/base/services/audsrv/rpc.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/rpc.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/rpc.c [iso-8859-1] Thu Jun 9 18:31:59 2011 @@ -55,7 +55,7 @@ { long stream; - stream = addstream(frequency, + stream = AddStream(frequency, channels, bitspersample, datatype, Modified: branches/nyadav-audio-branch/base/services/audsrv/stream.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/stream.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/stream.c [iso-8859-1] Thu Jun 9 18:31:59 2011 @@ -9,7 +9,7 @@ #include "audsrv.h" -long getnewstreamid() +long GetNewStreamID() { long streamid= pengine->streamidpool; pengine->streamidpool+=1; @@ -88,7 +88,7 @@ /*Clean Stream's data*/ } -long addstream(LONG frequency,int channels,int bitspersample,int datatype, ULONG channelmask,int volume,int mute,float balance) +long AddStream(LONG frequency,int channels,int bitspersample,int datatype, ULONG channelmask,int volume,int mute,float balance) { ServerStream * newstream,*localstream; DWORD dwID; @@ -175,7 +175,7 @@ WaitForSingleObject(newstream->threadready, INFINITE); - newstream->streamid=getnewstreamid(); + newstream->streamid=GetNewStreamID(); if(localstream == NULL) {
13 years, 6 months
1
0
0
0
[nyadav] 52160: [AUDSRV] Add File Headers, some style fixes
by nyadav@svn.reactos.org
Author: nyadav Date: Thu Jun 9 18:12:07 2011 New Revision: 52160 URL:
http://svn.reactos.org/svn/reactos?rev=52160&view=rev
Log: [AUDSRV] Add File Headers,some style fixes Modified: branches/nyadav-audio-branch/base/services/audsrv/audsrv.c branches/nyadav-audio-branch/base/services/audsrv/mixer.c branches/nyadav-audio-branch/base/services/audsrv/stream.c branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.h branches/nyadav-audio-branch/dll/win32/audsrvapi/dllmain.c branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c Modified: branches/nyadav-audio-branch/base/services/audsrv/audsrv.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/audsrv.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/audsrv.c [iso-8859-1] Thu Jun 9 18:12:07 2011 @@ -424,14 +424,17 @@ SetEvent(mixer->played); - while(1) + while(TRUE) { while(WaitForSingleObject(mixer->played, 100)!=0) { if(mixer->dead) - goto DEAD; + break; } + + if(mixer->dead) + break; mixandfill(mixer, 1-mixer->playcurrent); @@ -439,7 +442,6 @@ SetEvent(mixer->filled); } -DEAD: return 0; } @@ -454,8 +456,11 @@ 100)!=0) { if(mixer->dead) - goto DEAD; + break; } + + if(mixer->dead) + break; SetEvent(mixer->played); playbuffer(mixer, @@ -466,7 +471,6 @@ mixer->playcurrent=1-mixer->playcurrent; } -DEAD: return 0; } Modified: branches/nyadav-audio-branch/base/services/audsrv/mixer.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/mixer.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/mixer.c [iso-8859-1] Thu Jun 9 18:12:07 2011 @@ -1,3 +1,11 @@ +/* + * PROJECT: ReactOS kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: services/mixer.c + * PURPOSE: Audio Server + * COPYRIGHT: Copyright 2011 Neeraj Yadav + + */ #include "audsrv.h" void * mixs8(MixerEngine * mixer,int buffer) Modified: branches/nyadav-audio-branch/base/services/audsrv/stream.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/base/servic…
============================================================================== --- branches/nyadav-audio-branch/base/services/audsrv/stream.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/base/services/audsrv/stream.c [iso-8859-1] Thu Jun 9 18:12:07 2011 @@ -1,3 +1,12 @@ +/* + * PROJECT: ReactOS kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: services/stream.c + * PURPOSE: Audio Server + * COPYRIGHT: Copyright 2011 Neeraj Yadav + + */ + #include "audsrv.h" long getnewstreamid() Modified: branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/dll/win32/a…
============================================================================== --- branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.c [iso-8859-1] Thu Jun 9 18:12:07 2011 @@ -1,3 +1,12 @@ +/* + * PROJECT: ReactOS kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: dll\win32\audsrvapi\audsrvapi.c + * PURPOSE: Audio Server + * COPYRIGHT: Copyright 2011 Neeraj Yadav + + */ + #include "audsrvapi.h" /*All the wrappers for Remote Function should be here*/ @@ -57,14 +66,18 @@ /*This is an ActiveScheduler*/ clientstream->callbacks.OpenComplete(0); - while(1) + while(TRUE) { while(WaitForSingleObject(clientstream->ClientEventPool[0], 100)!=0) { if(clientstream->dead) - goto DEAD; + break; } + + if(clientstream->dead) + break; + /*Check Connection Status If not connected call Connect()*/ /*If connected Properly call the remote audsrv_play() function,This will be a blocking call, placing a dummy wait function here is a good idea.*/ Sleep(1000); @@ -74,7 +87,6 @@ DEAD: /*Audio Thread Ended*/ - return 0; } Modified: branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.h URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/dll/win32/a…
============================================================================== --- branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.h [iso-8859-1] (original) +++ branches/nyadav-audio-branch/dll/win32/audsrvapi/audsrvapi.h [iso-8859-1] Thu Jun 9 18:12:07 2011 @@ -1,2 +1,11 @@ +/* + * PROJECT: ReactOS kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: dll\win32\audsrvapi\audsrvapi.h + * PURPOSE: Audio Server + * COPYRIGHT: Copyright 2011 Neeraj Yadav + + */ + #include "audsrvrpc_c.h" #include <audsrv/audsrvapi.h> Modified: branches/nyadav-audio-branch/dll/win32/audsrvapi/dllmain.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/dll/win32/a…
============================================================================== --- branches/nyadav-audio-branch/dll/win32/audsrvapi/dllmain.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/dll/win32/audsrvapi/dllmain.c [iso-8859-1] Thu Jun 9 18:12:07 2011 @@ -1,3 +1,11 @@ +/* + * PROJECT: ReactOS kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: dll\win32\audsrvapi\dllmain.c + * PURPOSE: Audio Server + * COPYRIGHT: Copyright 2011 Neeraj Yadav + + */ #include "audsrvapi.h" @@ -39,7 +47,8 @@ case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: status = RpcBindingFree(audsrv_v0_0_c_ifspec); - if (status == RPC_S_INVALID_BINDING) printf("Error : %d Invalid RPC S HANDLE\n",(int)status); + if (status == RPC_S_INVALID_BINDING) + OutputDebugStringA("Error Closing RPC Connection"); break; } return TRUE; Modified: branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c URL:
http://svn.reactos.org/svn/reactos/branches/nyadav-audio-branch/drivers/wdm…
============================================================================== --- branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c [iso-8859-1] (original) +++ branches/nyadav-audio-branch/drivers/wdm/audio/backpln/audclient/audclient.c [iso-8859-1] Thu Jun 9 18:12:07 2011 @@ -1,3 +1,12 @@ +/* + * PROJECT: ReactOS kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: services/audsrv.c + * PURPOSE: Audio Server + * COPYRIGHT: Copyright 2011 Neeraj Yadav + + */ + #define WIN32_NO_STATUS #define _KSDDK_ @@ -20,7 +29,7 @@ { ClientStream * localstream = (ClientStream *) param; playaudio(localstream); - + return 0; } void opencomplete (int error ) @@ -36,8 +45,7 @@ } void playcomplete (int error ) { - printf("Play Complete Code %d\n", - error); + OutputDebugStringA("Playback Completed\n"); } int __cdecl
13 years, 6 months
1
0
0
0
[tkreuzer] 52159: [OBJ2BIN] - Skip empty sections. ML for x86 adds those, while ML (not ML64) for x64 doesn't.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Jun 9 17:59:47 2011 New Revision: 52159 URL:
http://svn.reactos.org/svn/reactos?rev=52159&view=rev
Log: [OBJ2BIN] - Skip empty sections. ML for x86 adds those, while ML (not ML64) for x64 doesn't. Modified: trunk/reactos/tools/obj2bin/obj2bin.c Modified: trunk/reactos/tools/obj2bin/obj2bin.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/obj2bin/obj2bin.c?re…
============================================================================== --- trunk/reactos/tools/obj2bin/obj2bin.c [iso-8859-1] (original) +++ trunk/reactos/tools/obj2bin/obj2bin.c [iso-8859-1] Thu Jun 9 17:59:47 2011 @@ -110,6 +110,9 @@ return -5; } + /* Skip empty sections */ + if (SectionHeader.SizeOfRawData == 0) continue; + /* Check if this is '.text' section */ if (strcmp(SectionHeader.Name, ".text") == 0) break; } @@ -139,7 +142,7 @@ /* Read symbol data */ if (!fread(pSymbols, nSize, 1, pSourceFile)) { - fprintf(stderr, "Failed to read section %ld file\n", i); + fprintf(stderr, "Failed to read symbols: %ld\n", nSize); return -9; } @@ -161,7 +164,8 @@ /* Read section data */ if (!fread(pData, SectionHeader.SizeOfRawData, 1, pSourceFile)) { - fprintf(stderr, "Failed to read section %ld file\n", i); + fprintf(stderr, "Failed to read section %ld, at 0x%lx size=0x%lx \n", + i, SectionHeader.PointerToRawData, SectionHeader.SizeOfRawData); return -12; }
13 years, 6 months
1
0
0
0
[akhaldi] 52158: [CMAKE] * MSVC fixes for msvcrtex.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Thu Jun 9 17:59:26 2011 New Revision: 52158 URL:
http://svn.reactos.org/svn/reactos?rev=52158&view=rev
Log: [CMAKE] * MSVC fixes for msvcrtex. Modified: trunk/reactos/lib/sdk/crt/msvcrtex.cmake trunk/reactos/lib/sdk/crt/startup/crtdll.c trunk/reactos/lib/sdk/crt/startup/crtexe.c Modified: trunk/reactos/lib/sdk/crt/msvcrtex.cmake URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/msvcrtex.cmake…
============================================================================== --- trunk/reactos/lib/sdk/crt/msvcrtex.cmake [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/msvcrtex.cmake [iso-8859-1] Thu Jun 9 17:59:26 2011 @@ -20,8 +20,6 @@ startup/atonexit.c startup/txtmode.c startup/pesect.c - startup/pseudo-reloc.c - startup/pseudo-reloc-list.c startup/tlsmcrt.c startup/tlsthrd.c startup/tlsmthread.c @@ -36,6 +34,12 @@ misc/fltused.c misc/ofmt_stub.c ) + +if(NOT MSVC) +list(APPEND MSVCRTEX_SOURCE + startup/pseudo-reloc.c + startup/pseudo-reloc-list.c) +endif() if(ARCH MATCHES i386) list(APPEND MSVCRTEX_SOURCE Modified: trunk/reactos/lib/sdk/crt/startup/crtdll.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/startup/crtdll…
============================================================================== --- trunk/reactos/lib/sdk/crt/startup/crtdll.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/startup/crtdll.c [iso-8859-1] Thu Jun 9 17:59:26 2011 @@ -33,8 +33,12 @@ #include <locale.h> extern void __cdecl _initterm(_PVFV *,_PVFV *); -extern void __main (); + +#if defined(__GNUC__) +extern void __main (void); extern void _pei386_runtime_relocator (void); +#endif + extern _CRTALLOC(".CRT$XIA") _PIFV __xi_a[]; extern _CRTALLOC(".CRT$XIZ") _PIFV __xi_z[]; extern _CRTALLOC(".CRT$XCA") _PVFV __xc_a[]; @@ -179,7 +183,9 @@ retcode = FALSE; goto i__leave; } +#if defined(__GNUC__) _pei386_runtime_relocator (); +#endif if (dwReason == DLL_PROCESS_ATTACH || dwReason == DLL_THREAD_ATTACH) { retcode = _CRT_INIT (hDllHandle, dwReason, lpreserved); @@ -194,7 +200,9 @@ } } if (dwReason == DLL_PROCESS_ATTACH) +#if defined(__GNUC__) __main (); +#endif retcode = DllMain(hDllHandle,dwReason,lpreserved); if (dwReason == DLL_PROCESS_ATTACH && ! retcode) { Modified: trunk/reactos/lib/sdk/crt/startup/crtexe.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/startup/crtexe…
============================================================================== --- trunk/reactos/lib/sdk/crt/startup/crtexe.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/startup/crtexe.c [iso-8859-1] Thu Jun 9 17:59:26 2011 @@ -20,6 +20,7 @@ #include <tchar.h> #include <sect_attribs.h> #include <locale.h> +#include <malloc.h> #ifndef __winitenv extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv); @@ -32,7 +33,7 @@ #endif /* Hack, for bug in ld. Will be removed soon. */ -#ifndef _MSC_VER +#if defined(__GNUC__) #define __ImageBase __MINGW_LSYMBOL(_image_base__) #endif @@ -42,6 +43,8 @@ extern void _fpreset (void); #define SPACECHAR _T(' ') #define DQUOTECHAR _T('\"') + +__declspec(dllimport) void __setusermatherr(int (__cdecl *)(struct _exception *)); extern int * __MINGW_IMP_SYMBOL(_fmode); extern int * __MINGW_IMP_SYMBOL(_commode); @@ -55,9 +58,11 @@ #if defined(__GNUC__) int _MINGW_INSTALL_DEBUG_MATHERR __attribute__((weak)) = 0; #else -int _MINGW_INSTALL_DEBUG_MATHERR = 0; -#endif +int __declspec(selectany) _MINGW_INSTALL_DEBUG_MATHERR = 0; +#endif + extern int __defaultmatherr; + extern _CRTIMP void __cdecl _initterm(_PVFV *, _PVFV *); static int __cdecl check_managed_app (void); @@ -80,7 +85,12 @@ DWORD __mingw_winmain_nShowCmd; static int argc; + +#if defined(__GNUC__) extern void __main(void); +extern void _pei386_runtime_relocator (void); +#endif + #ifdef WPRFLAG static wchar_t **argv; static wchar_t **envp; @@ -96,7 +106,7 @@ static _startupinfo startinfo; extern LPTOP_LEVEL_EXCEPTION_FILTER __mingw_oldexcpt_handler; -extern void _pei386_runtime_relocator (void); + long CALLBACK _gnu_exception_handler (EXCEPTION_POINTERS * exception_data); #ifdef WPRFLAG static void duplicate_ppstrings (int ac, wchar_t ***av); @@ -107,10 +117,8 @@ static int __cdecl pre_c_init (void); static void __cdecl pre_cpp_init (void); static void __cdecl __mingw_prepare_except_for_msvcr80_and_higher (void); -_CRTALLOC(".CRT$XIAA") _PIFV mingw_pcinit = pre_c_init; -_CRTALLOC(".CRT$XCAA") _PVFV mingw_pcppinit = pre_cpp_init; - -extern int _MINGW_INSTALL_DEBUG_MATHERR; +_CRTALLOC(".CRT$XIAA") _PIFV __declspec(selectany) mingw_pcinit = pre_c_init; +_CRTALLOC(".CRT$XCAA") _PVFV __declspec(selectany) mingw_pcppinit = pre_cpp_init; static int __cdecl pre_c_init (void) @@ -216,7 +224,7 @@ WINBOOL inDoubleQuote = FALSE; memset (&StartupInfo, 0, sizeof (STARTUPINFO)); -#ifndef _WIN64 +#if !defined(_WIN64) && defined(__GNUC__) /* We need to make sure that this function is build with frame-pointer and that we align the stack to 16 bytes for the sake of SSE ops in main or in functions inlined into main. */ @@ -265,7 +273,9 @@ if (__dyn_tls_init_callback != NULL) __dyn_tls_init_callback (NULL, DLL_THREAD_ATTACH, NULL); +#if defined(__GNUC__) _pei386_runtime_relocator (); +#endif __mingw_oldexcpt_handler = SetUnhandledExceptionFilter (_gnu_exception_handler); #ifdef _WIN64 __mingw_init_ehandler (); @@ -277,33 +287,35 @@ if (mingw_app_type) { #ifdef WPRFLAG - lpszCommandLine = (_TCHAR *) _wcmdln; -#else - lpszCommandLine = (char *) _acmdln; -#endif - while (*lpszCommandLine > SPACECHAR || (*lpszCommandLine&&inDoubleQuote)) - { - if (*lpszCommandLine == DQUOTECHAR) - inDoubleQuote = !inDoubleQuote; + lpszCommandLine = (_TCHAR *) _wcmdln; +#else + lpszCommandLine = (char *) _acmdln; +#endif + while (*lpszCommandLine > SPACECHAR || (*lpszCommandLine && inDoubleQuote)) + { + if (*lpszCommandLine == DQUOTECHAR) + inDoubleQuote = !inDoubleQuote; #ifdef _MBCS - if (_ismbblead (*lpszCommandLine)) - { - if (lpszCommandLine) /* FIXME: Why this check? Should I check for *lpszCommandLine != 0 too? */ - lpszCommandLine++; + if (_ismbblead (*lpszCommandLine)) + { + if (lpszCommandLine) /* FIXME: Why this check? Should I check for *lpszCommandLine != 0 too? */ + lpszCommandLine++; + } +#endif + ++lpszCommandLine; } -#endif - ++lpszCommandLine; + while (*lpszCommandLine && (*lpszCommandLine <= SPACECHAR)) + lpszCommandLine++; + + __mingw_winmain_hInstance = (HINSTANCE) &__ImageBase; + __mingw_winmain_lpCmdLine = lpszCommandLine; + __mingw_winmain_nShowCmd = StartupInfo.dwFlags & STARTF_USESHOWWINDOW ? + StartupInfo.wShowWindow : SW_SHOWDEFAULT; } - while (*lpszCommandLine && (*lpszCommandLine <= SPACECHAR)) - lpszCommandLine++; - - __mingw_winmain_hInstance = (HINSTANCE) &__ImageBase; - __mingw_winmain_lpCmdLine = lpszCommandLine; - __mingw_winmain_nShowCmd = StartupInfo.dwFlags & STARTF_USESHOWWINDOW ? - StartupInfo.wShowWindow : SW_SHOWDEFAULT; - } duplicate_ppstrings (argc, &argv); +#if defined(__GNUC__) __main (); +#endif #ifdef WPRFLAG __winitenv = envp; /* C++ initialization. @@ -422,8 +434,8 @@ uintptr_t __UNUSED_PARAM(pReserved)) { #ifdef __MINGW_SHOW_INVALID_PARAMETER_EXCEPTION - wprintf(L"Invalid parameter detected in function %s. File: %s Line: %d\n", function, file, line); - wprintf(L"Expression: %s\n", expression); + wprintf(L"Invalid parameter detected in function %s. File: %s Line: %d\n", function, file, line); + wprintf(L"Expression: %s\n", expression); #endif }
13 years, 6 months
1
0
0
0
[tfaber] 52157: [KMTESTS] - add simple loader application that can list/run tests from a driver via DeviceIoControl, and prints output to the console
by tfaber@svn.reactos.org
Author: tfaber Date: Thu Jun 9 15:14:02 2011 New Revision: 52157 URL:
http://svn.reactos.org/svn/reactos?rev=52157&view=rev
Log: [KMTESTS] - add simple loader application that can list/run tests from a driver via DeviceIoControl, and prints output to the console Added: branches/GSoC_2011/KMTestSuite/kmtests/ (with props) branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt (with props) branches/GSoC_2011/KMTestSuite/kmtests/directory.rbuild (with props) branches/GSoC_2011/KMTestSuite/kmtests/include/ (with props) branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_public.h (with props) branches/GSoC_2011/KMTestSuite/kmtests/kmtest/ (with props) branches/GSoC_2011/KMTestSuite/kmtests/kmtest.rbuild (with props) branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c (with props) branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.exe.manifest (with props) branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.h (with props) branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.rc (with props) branches/GSoC_2011/KMTestSuite/kmtests/kmtest/service.c (with props) Modified: branches/GSoC_2011/KMTestSuite/CMakeLists.txt branches/GSoC_2011/KMTestSuite/directory.rbuild Modified: branches/GSoC_2011/KMTestSuite/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/CMakeList…
============================================================================== --- branches/GSoC_2011/KMTestSuite/CMakeLists.txt [iso-8859-1] (original) +++ branches/GSoC_2011/KMTestSuite/CMakeLists.txt [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -3,6 +3,7 @@ #add_subdirectory(dibtests) add_subdirectory(drivers) #add_subdirectory(dxtest) +add_subdirectory(kmtests) #add_subdirectory(regtests) add_subdirectory(rosautotest) add_subdirectory(tests) Modified: branches/GSoC_2011/KMTestSuite/directory.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/directory…
============================================================================== --- branches/GSoC_2011/KMTestSuite/directory.rbuild [iso-8859-1] (original) +++ branches/GSoC_2011/KMTestSuite/directory.rbuild [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,6 +1,9 @@ <?xml version="1.0"?> <!DOCTYPE group SYSTEM "../../../tools/rbuild/project.dtd"> <group xmlns:xi="
http://www.w3.org/2001/XInclude
"> + <directory name="apitests"> + <xi:include href="apitests/directory.rbuild" /> + </directory> <directory name="drivers"> <xi:include href="drivers/directory.rbuild" /> </directory> @@ -9,6 +12,9 @@ </directory> <directory name="dxtest"> <xi:include href="dxtest/directory.rbuild" /> + </directory> + <directory name="kmtests"> + <xi:include href="kmtests/directory.rbuild" /> </directory> <directory name="regtests"> <xi:include href="regtests/directory.rbuild" /> @@ -25,7 +31,4 @@ <directory name="winetests"> <xi:include href="winetests/directory.rbuild" /> </directory> - <directory name="apitests"> - <xi:include href="apitests/directory.rbuild" /> - </directory> </group> Propchange: branches/GSoC_2011/KMTestSuite/kmtests/ ------------------------------------------------------------------------------ --- bugtraq:logregex (added) +++ bugtraq:logregex Thu Jun 9 15:14:02 2011 @@ -1,0 +1,2 @@ +([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))? +(\d+) Propchange: branches/GSoC_2011/KMTestSuite/kmtests/ ------------------------------------------------------------------------------ bugtraq:message = See issue #%BUGID% for more details. Propchange: branches/GSoC_2011/KMTestSuite/kmtests/ ------------------------------------------------------------------------------ bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/ ------------------------------------------------------------------------------ tsvn:logminsize = 10 Added: branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/C…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,17 @@ +include_directories( + include) + +set_rc_compiler() + +add_definitions(-D_DLL -D__USE_CRTIMP) + +list(APPEND KMTEST_SOURCE + kmtest/kmtest.c + kmtest/service.c + kmtest/kmtest.rc) + +add_executable(kmtest ${KMTEST_SOURCE}) +set_module_type(kmtest win32cui) +add_importlibs(kmtest advapi32 msvcrt kernel32) + +add_cd_file(TARGET kmtest DESTINATION reactos/bin FOR all) Propchange: branches/GSoC_2011/KMTestSuite/kmtests/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/GSoC_2011/KMTestSuite/kmtests/directory.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/d…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/directory.rbuild (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/directory.rbuild [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,8 @@ +<?xml version="1.0"?> +<!DOCTYPE group SYSTEM "../../../tools/rbuild/project.dtd"> +<group xmlns:xi="
http://www.w3.org/2001/XInclude
"> + <!--<directory name="something"> + <xi:include href="something/something_drv.rbuild" /> + </directory>--> + <xi:include href="kmtest.rbuild" /> +</group> Propchange: branches/GSoC_2011/KMTestSuite/kmtests/directory.rbuild ------------------------------------------------------------------------------ svn:eol-style = native Propchange: branches/GSoC_2011/KMTestSuite/kmtests/include/ ------------------------------------------------------------------------------ --- bugtraq:logregex (added) +++ bugtraq:logregex Thu Jun 9 15:14:02 2011 @@ -1,0 +1,2 @@ +([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))? +(\d+) Propchange: branches/GSoC_2011/KMTestSuite/kmtests/include/ ------------------------------------------------------------------------------ bugtraq:message = See issue #%BUGID% for more details. Propchange: branches/GSoC_2011/KMTestSuite/kmtests/include/ ------------------------------------------------------------------------------ bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/include/ ------------------------------------------------------------------------------ tsvn:logminsize = 10 Added: branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_public.h URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/i…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_public.h (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_public.h [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,20 @@ +/* + * PROJECT: ReactOS kernel-mode tests + * LICENSE: GPLv2+ - See COPYING in the top level directory + * PURPOSE: Kernel-Mode Test Suite public declarations + * PROGRAMMER: Thomas Faber <thfabba(a)gmx.de> + */ + +#ifndef _KMTEST_PUBLIC_H_ +#define _KMTEST_PUBLIC_H_ + +#define IOCTL_KMTEST_GET_TESTS \ + CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_READ_DATA) + +#define IOCTL_KMTEST_RUN_TEST \ + CTL_CODE(FILE_DEVICE_UNKNOWN, 0x801, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA) + +#define KMTEST_DEVICE_NAME L"Kmtest" +#define KMTEST_DEVICE_PATH (L"\\\\.\\Global\\GLOBALROOT\\Device\\" KMTEST_DEVICE_NAME) + +#endif /* !defined _KMTEST_PUBLIC_H_ */ Propchange: branches/GSoC_2011/KMTestSuite/kmtests/include/kmt_public.h ------------------------------------------------------------------------------ svn:eol-style = native Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/ ------------------------------------------------------------------------------ --- bugtraq:logregex (added) +++ bugtraq:logregex Thu Jun 9 15:14:02 2011 @@ -1,0 +1,2 @@ +([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))? +(\d+) Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/ ------------------------------------------------------------------------------ bugtraq:message = See issue #%BUGID% for more details. Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/ ------------------------------------------------------------------------------ bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/ ------------------------------------------------------------------------------ tsvn:logminsize = 10 Added: branches/GSoC_2011/KMTestSuite/kmtests/kmtest.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest.rbuild (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest.rbuild [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,8 @@ +<module name="kmtest" type="win32cui" installbase="system32" installname="kmtest.exe"> + <include base="kmtest">include</include> + <library>advapi32</library> + <directory name="kmtest"> + <file>kmtest.c</file> + <file>service.c</file> + </directory> +</module> Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest.rbuild ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,197 @@ +/* + * PROJECT: ReactOS kernel-mode tests + * LICENSE: GPLv2+ - See COPYING in the top level directory + * PURPOSE: Kernel-Mode Test Suite Loader Application + * PROGRAMMER: Thomas Faber <thfabba(a)gmx.de> + */ + +#define UNICODE +#include <windows.h> +#include <strsafe.h> + +#include <assert.h> +#include <stdio.h> +#include <stdlib.h> + +#include "kmtest.h" +#include <winioctl.h> +#include <kmt_public.h> + +static void OutputError(FILE *fp, DWORD error); +static DWORD RunTest(char *testName); +static DWORD ListTests(PSTR *testList); +int __cdecl main(int argc, char **argv); + +static void OutputError(FILE *fp, DWORD error) +{ + char *message; + if (!FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_ALLOCATE_BUFFER, + NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&message, 0, NULL)) + { + fprintf(fp, "Could not retrieve error message (error 0x%08lx). Original error: 0x%08lx\n", GetLastError(), error); + } + + fprintf(fp, "%s\n", message); + + LocalFree(message); +} + +static DWORD RunTest(char *testName) +{ + DWORD error = ERROR_SUCCESS; + HANDLE hDevice = INVALID_HANDLE_VALUE; + DWORD bytesRead; + char buffer[1024]; + BOOL ret; + + hDevice = CreateFile(KMTEST_DEVICE_PATH, GENERIC_READ | GENERIC_WRITE, 0, + NULL, OPEN_EXISTING, 0, NULL); + + if (hDevice == INVALID_HANDLE_VALUE) + { + error = GetLastError(); + goto cleanup; + } + + if (!DeviceIoControl(hDevice, IOCTL_KMTEST_RUN_TEST, testName, strlen(testName), NULL, 0, &bytesRead, NULL)) + { + error = GetLastError(); + goto cleanup; + } + + while ((ret = ReadFile(hDevice, buffer, sizeof buffer - 1, &bytesRead, NULL)) != 0) + { + if (!bytesRead) + break; + + assert(bytesRead < sizeof buffer); + buffer[bytesRead] = '\0'; + + fputs(buffer, stdout); + } + if (!ret) + { + error = GetLastError(); + goto cleanup; + } + +cleanup: + if (hDevice != INVALID_HANDLE_VALUE) + CloseHandle(hDevice); + + return error; +} + +static DWORD ListTests(PSTR *testList) +{ + DWORD error = ERROR_SUCCESS; + HANDLE hDevice = INVALID_HANDLE_VALUE; + DWORD bytesRead; + PSTR buffer = NULL; + DWORD bufferSize; + + if (!testList) + { + error = ERROR_INVALID_PARAMETER; + goto cleanup; + } + + hDevice = CreateFile(KMTEST_DEVICE_PATH, GENERIC_READ | GENERIC_WRITE, 0, + NULL, OPEN_EXISTING, 0, NULL); + + if (hDevice == INVALID_HANDLE_VALUE) + { + error = GetLastError(); + goto cleanup; + } + + bufferSize = 1024; + buffer = HeapAlloc(GetProcessHeap(), 0, bufferSize); + if (!buffer) + { + error = GetLastError(); + goto cleanup; + } + + if (!DeviceIoControl(hDevice, IOCTL_KMTEST_GET_TESTS, NULL, 0, buffer, bufferSize, &bytesRead, NULL)) + { + error = GetLastError(); + goto cleanup; + } + +cleanup: + if (buffer && error) + { + HeapFree(GetProcessHeap(), 0, buffer); + buffer = NULL; + } + + if (hDevice != INVALID_HANDLE_VALUE) + CloseHandle(hDevice); + + if (testList) + *testList = buffer; + + return error; +} + +int __cdecl main(int argc, char **argv) +{ + int status = EXIT_SUCCESS; + DWORD error; + + if (argc <= 1) + { + /* no arguments: show usage and list tests */ + char *programName = argc == 0 ? "kmtest" : argv[0]; + char *testNames, *testName; + size_t len; + + printf("Usage: %s test_name\n", programName); + puts("\nValid test names:"); + puts(" Create"); + puts(" Start"); + puts(" Stop"); + puts(" Delete"); + + error = ListTests(&testNames); + testName = testNames; + + while ((len = strlen(testName)) != 0) + { + printf(" %s\n", testName); + testName += len + 1; + } + + /* TODO: user-mode test parts */ + + if (error) + OutputError(stdout, error); + } + else + { + char *testName = argv[1]; + + if (argc > 2) + fputs("Excess arguments ignored\n", stderr); + + if (!lstrcmpiA(testName, "create")) + error = Service_Control(Service_Create); + else if (!lstrcmpiA(testName, "delete")) + error = Service_Control(Service_Delete); + else if (!lstrcmpiA(testName, "start")) + error = Service_Control(Service_Start); + else if (!lstrcmpiA(testName, "stop")) + error = Service_Control(Service_Stop); + else + /* TODO: user-mode test parts */ + error = RunTest(testName); + + OutputError(stdout, error); + } + + if (error) + status = EXIT_FAILURE; + + return status; +} Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.c ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.exe.manifest URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.exe.manifest (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.exe.manifest [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> + <assemblyIdentity version="1.0.0.0" processorArchitecture="x86" name="kmtest"/> + <description>ReactOS Kernel-Mode Test Suite Loader Application</description> + <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> + <security> + <requestedPrivileges> + <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> + </requestedPrivileges> + </security> + </trustInfo> +</assembly> Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.exe.manifest ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.h URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.h (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.h [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,23 @@ +/* + * PROJECT: ReactOS kernel-mode tests + * LICENSE: GPLv2+ - See COPYING in the top level directory + * PURPOSE: Kernel-Mode Test Suite Loader Application + * PROGRAMMER: Thomas Faber <thfabba(a)gmx.de> + */ + +#ifndef _KMTESTS_H_ +#define _KMTESTS_H_ + +#include <windows.h> + +/* service control functions */ +typedef DWORD SERVICE_FUNC(SC_HANDLE hManager); + +SERVICE_FUNC Service_Create; +SERVICE_FUNC Service_Delete; +SERVICE_FUNC Service_Start; +SERVICE_FUNC Service_Stop; + +DWORD Service_Control(SERVICE_FUNC *Service_Func); + +#endif /* !defined _KMTESTS_H_ */ Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.h ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.rc URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.rc (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.rc [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,15 @@ +/* + * PROJECT: ReactOS kernel-mode tests + * LICENSE: GPLv2+ - See COPYING in the top level directory + * PURPOSE: Kernel-Mode Test Suite Loader Resource File + * PROGRAMMER: Thomas Faber <thfabba(a)gmx.de> + */ + +#include <windows.h> + +#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Kernel-Mode Test Suite Loader Application\0" +#define REACTOS_STR_INTERNAL_NAME "kmtest.exe\0" +#define REACTOS_STR_ORIGINAL_FILENAME "kmtest.exe\0" +#include <reactos/version.rc> + +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST DISCARDABLE PURE "kmtest/kmtest.exe.manifest" Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/kmtest.rc ------------------------------------------------------------------------------ svn:eol-style = native Added: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/service.c URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/KMTestSuite/kmtests/k…
============================================================================== --- branches/GSoC_2011/KMTestSuite/kmtests/kmtest/service.c (added) +++ branches/GSoC_2011/KMTestSuite/kmtests/kmtest/service.c [iso-8859-1] Thu Jun 9 15:14:02 2011 @@ -1,0 +1,135 @@ +/* + * PROJECT: ReactOS kernel-mode tests + * LICENSE: GPLv2+ - See COPYING in the top level directory + * PURPOSE: Kernel-Mode Test Suite Loader service control functions + * PROGRAMMER: Thomas Faber <thfabba(a)gmx.de> + */ + +#define UNICODE +#include <windows.h> +#include <strsafe.h> + +#include "kmtest.h" + +#define SERVICE_NAME L"Kmtest" +#define SERVICE_PATH L"\\kmtest_drv.sys" + +DWORD Service_Create(SC_HANDLE hScm) +{ + DWORD error = ERROR_SUCCESS; + SC_HANDLE hService = NULL; + wchar_t driverPath[MAX_PATH]; + HRESULT result = S_OK; + + if (!GetCurrentDirectory(sizeof driverPath / sizeof driverPath[0], driverPath) + || FAILED(result = StringCbCat(driverPath, sizeof driverPath, SERVICE_PATH))) + { + if (FAILED(result)) + error = result; + else + error = GetLastError(); + goto cleanup; + } + + hService = CreateService(hScm, SERVICE_NAME, L"ReactOS Kernel-Mode Test Suite Driver", + SERVICE_START, SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, + SERVICE_ERROR_NORMAL, driverPath, NULL, NULL, NULL, NULL, NULL); + + if (!hService) + error = GetLastError(); + +cleanup: + return error; +} + +DWORD Service_Delete(SC_HANDLE hScm) +{ + DWORD error = ERROR_SUCCESS; + SC_HANDLE hService = NULL; + + hService = OpenService(hScm, SERVICE_NAME, DELETE); + + if (!hService) + { + error = GetLastError(); + goto cleanup; + } + + if (!DeleteService(hService)) + error = GetLastError(); + +cleanup: + if (hService) + CloseServiceHandle(hService); + + return error; +} + +DWORD Service_Start(SC_HANDLE hScm) +{ + DWORD error = ERROR_SUCCESS; + SC_HANDLE hService = NULL; + + hService = OpenService(hScm, SERVICE_NAME, SERVICE_START); + + if (!hService) + { + error = GetLastError(); + goto cleanup; + } + + if (!StartService(hService, 0, NULL)) + error = GetLastError(); + +cleanup: + if (hService) + CloseServiceHandle(hService); + + return error; +} + +DWORD Service_Stop(SC_HANDLE hScm) +{ + DWORD error = ERROR_SUCCESS; + SC_HANDLE hService = NULL; + SERVICE_STATUS serviceStatus; + + hService = OpenService(hScm, SERVICE_NAME, SERVICE_STOP); + + if (!hService) + { + error = GetLastError(); + goto cleanup; + } + + if (!ControlService(hService, SERVICE_CONTROL_STOP, &serviceStatus)) + error = GetLastError(); + +cleanup: + if (hService) + CloseServiceHandle(hService); + + return error; +} + +DWORD Service_Control(SERVICE_FUNC *Service_Func) +{ + DWORD error = ERROR_SUCCESS; + SC_HANDLE hScm = NULL; + + hScm = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE); + + if (!hScm) + { + error = GetLastError(); + goto cleanup; + } + + error = Service_Func(hScm); + +cleanup: + if (hScm) + CloseServiceHandle(hScm); + + return error; +} Propchange: branches/GSoC_2011/KMTestSuite/kmtests/kmtest/service.c ------------------------------------------------------------------------------ svn:eol-style = native
13 years, 6 months
1
0
0
0
[tkreuzer] 52156: [BOOTSECTOR] - export obj2bin on gcc builds, too - Add new macro CreateBootSectorTarget2, which uses portable assembly and use it with isoboot.S. I will replace all bootsectors wi...
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Jun 9 13:56:44 2011 New Revision: 52156 URL:
http://svn.reactos.org/svn/reactos?rev=52156&view=rev
Log: [BOOTSECTOR] - export obj2bin on gcc builds, too - Add new macro CreateBootSectorTarget2, which uses portable assembly and use it with isoboot.S. I will replace all bootsectors with the new code one at a time, and in the end we can eventually drop nmake - add wrapper isobtrt.S, which defines ROS_REGTEST and includes isoboot.S Added: trunk/reactos/boot/freeldr/bootsect/isobtrt.S (with props) Modified: trunk/reactos/CMakeLists.txt trunk/reactos/boot/freeldr/bootsect/CMakeLists.txt trunk/reactos/boot/freeldr/bootsect/isoboot.S trunk/reactos/gcc.cmake trunk/reactos/msc.cmake Modified: trunk/reactos/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeLists.txt?rev=52156&r…
============================================================================== --- trunk/reactos/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/CMakeLists.txt [iso-8859-1] Thu Jun 9 13:56:44 2011 @@ -59,7 +59,7 @@ add_subdirectory(lib) if(NOT MSVC) - export(TARGETS widl wrc gendib cabman cdmake mkhive spec2def geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- ) + export(TARGETS widl wrc gendib cabman cdmake mkhive obj2bin spec2def geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- ) else() export(TARGETS gendib cabman cdmake mkhive obj2bin spec2def geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- ) endif() Modified: trunk/reactos/boot/freeldr/bootsect/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/bootsect/CMak…
============================================================================== --- trunk/reactos/boot/freeldr/bootsect/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/bootsect/CMakeLists.txt [iso-8859-1] Thu Jun 9 13:56:44 2011 @@ -1,12 +1,18 @@ -if(MSVC) -CreateBootSectorTarget(fat32 ${CMAKE_CURRENT_SOURCE_DIR}/fat32.S ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin 7c00) -else() +if(ARCH MATCHES i386 OR ARCH MATCHES amd64) + +#CreateBootSectorTarget2(dosmbr ${CMAKE_CURRENT_SOURCE_DIR}/dosmbr.S ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin 0) +#CreateBootSectorTarget2(ext2 ${CMAKE_CURRENT_SOURCE_DIR}/ext2.S ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin 0) +#CreateBootSectorTarget2(fat32 ${CMAKE_CURRENT_SOURCE_DIR}/fat32.S ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin 7c00) +#CreateBootSectorTarget2(fat ${CMAKE_CURRENT_SOURCE_DIR}/fat.S ${CMAKE_CURRENT_BINARY_DIR}/fat.bin 0) +CreateBootSectorTarget2(isoboot ${CMAKE_CURRENT_SOURCE_DIR}/isoboot.S ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin 7000) +#CreateBootSectorTarget2(isobtrt ${CMAKE_CURRENT_SOURCE_DIR}/isobtrt.S ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin 0) + +if(NOT MSVC) CreateBootSectorTarget(dosmbr ${CMAKE_CURRENT_SOURCE_DIR}/dosmbr.asm ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin 0) CreateBootSectorTarget(ext2 ${CMAKE_CURRENT_SOURCE_DIR}/ext2.asm ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin 0) -CreateBootSectorTarget(fat32 ${CMAKE_CURRENT_SOURCE_DIR}/fat32.asm ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin 0) +CreateBootSectorTarget(fat32 ${CMAKE_CURRENT_SOURCE_DIR}/fat32.asm ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin 7c00) CreateBootSectorTarget(fat ${CMAKE_CURRENT_SOURCE_DIR}/fat.asm ${CMAKE_CURRENT_BINARY_DIR}/fat.bin 0) -CreateBootSectorTarget(isoboot ${CMAKE_CURRENT_SOURCE_DIR}/isoboot.asm ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin 0) CreateBootSectorTarget(isobtrt ${CMAKE_CURRENT_SOURCE_DIR}/isobtrt.asm ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin 0) endif() @@ -17,3 +23,5 @@ add_cd_file(TARGET isoboot DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin FOR all) add_cd_file(TARGET isobtrt DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin FOR all) +endif() + Modified: trunk/reactos/boot/freeldr/bootsect/isoboot.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/bootsect/isob…
============================================================================== --- trunk/reactos/boot/freeldr/bootsect/isoboot.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/bootsect/isoboot.S [iso-8859-1] Thu Jun 9 13:56:44 2011 @@ -45,8 +45,9 @@ // **************************************************************************** //#define DEBUG_MESSAGES /* Uncomment to get debugging messages */ +#ifndef ROS_REGTEST #define WAIT_FOR_KEY - +#endif // **************************************************************************** // BEGIN THE BIOS/CODE/DATA SEGMENT @@ -129,7 +130,6 @@ #endif // Make sure the keyboard buffer is empty -#ifdef WAIT_FOR_KEY call pollchar_and_empty // Check for MBR on harddisk @@ -148,6 +148,7 @@ je .boot_cdrom // no boot sector found (hopefully there are no weird bootsectors which begin with 0) pop ax +#ifdef WAIT_FOR_KEY // Display the 'Press key' message and wait for a maximum of 5 seconds call crlf mov si, offset presskey_msg // si points to 'Press key' message @@ -171,6 +172,7 @@ dec byte ptr ds:[TimeoutCount] // decrement timeout counter jz .boot_harddisk jmp .next_second +#endif .boot_harddisk: call crlf @@ -192,7 +194,6 @@ mov dx, HEX(0080) ljmp16 0, HEX(7C00) -#endif .boot_cdrom: #ifdef WAIT_FOR_KEY Added: trunk/reactos/boot/freeldr/bootsect/isobtrt.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/bootsect/isob…
============================================================================== --- trunk/reactos/boot/freeldr/bootsect/isobtrt.S (added) +++ trunk/reactos/boot/freeldr/bootsect/isobtrt.S [iso-8859-1] Thu Jun 9 13:56:44 2011 @@ -1,0 +1,3 @@ + +#define ROS_REGTEST +#include "isoboot.S" Propchange: trunk/reactos/boot/freeldr/bootsect/isobtrt.S ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/reactos/gcc.cmake URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/gcc.cmake?rev=52156&r1=521…
============================================================================== --- trunk/reactos/gcc.cmake [iso-8859-1] (original) +++ trunk/reactos/gcc.cmake [iso-8859-1] Thu Jun 9 13:56:44 2011 @@ -352,3 +352,23 @@ set_source_files_properties(${_object_file} PROPERTIES GENERATED TRUE) add_custom_target(${_target_name} ALL DEPENDS ${_object_file}) endmacro() + +macro(CreateBootSectorTarget2 _target_name _asm_file _binary_file _base_address) + set(_object_file ${_binary_file}.o) + + add_custom_command( + OUTPUT ${_object_file} + COMMAND ${CMAKE_ASM_COMPILER} -x assembler-with-cpp -o ${_object_file} -I${REACTOS_SOURCE_DIR}/include/asm -I${REACTOS_BINARY_DIR}/include/asm -D__ASM__ -c ${_asm_file} + DEPENDS ${_asm_file}) + + add_custom_command( + OUTPUT ${_binary_file} + COMMAND native-obj2bin ${_object_file} ${_binary_file} ${_base_address} + # COMMAND objcopy --output-target binary --image-base 0x${_base_address} ${_object_file} ${_binary_file} + DEPENDS ${_object_file}) + + set_source_files_properties(${_object_file} ${_binary_file} PROPERTIES GENERATED TRUE) + + add_custom_target(${_target_name} ALL DEPENDS ${_binary_file}) + +endmacro() Modified: trunk/reactos/msc.cmake URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/msc.cmake?rev=52156&r1=521…
============================================================================== --- trunk/reactos/msc.cmake [iso-8859-1] (original) +++ trunk/reactos/msc.cmake [iso-8859-1] Thu Jun 9 13:56:44 2011 @@ -192,7 +192,7 @@ #pseh workaround set(PSEH_LIB "pseh") -macro(CreateBootSectorTarget _target_name _asm_file _binary_file _base_address) +macro(CreateBootSectorTarget2 _target_name _asm_file _binary_file _base_address) set(_object_file ${_binary_file}.obj) set(_temp_file ${_binary_file}.tmp)
13 years, 6 months
1
0
0
0
[tkreuzer] 52155: [CRT] Remove duplicate wtol
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Jun 9 12:08:16 2011 New Revision: 52155 URL:
http://svn.reactos.org/svn/reactos?rev=52155&view=rev
Log: [CRT] Remove duplicate wtol Modified: trunk/reactos/lib/sdk/crt/string/atol.c Modified: trunk/reactos/lib/sdk/crt/string/atol.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/atol.c?…
============================================================================== --- trunk/reactos/lib/sdk/crt/string/atol.c [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/string/atol.c [iso-8859-1] Thu Jun 9 12:08:16 2011 @@ -9,14 +9,9 @@ return (long)_atoi64(str); } -long _wtol(const wchar_t *str) -{ - return (long)_wtoi64(str); -} - int _atoldbl(_LDOUBLE *value, char *str) { /* FIXME needs error checking for huge/small values */ //*value = strtold(str,0); return -1; -} +}
13 years, 6 months
1
0
0
0
[akhaldi] 52154: [FREELDR] * Add a ExFreePoolWithTag stub and forward it to ExFreePool. Fixes freeldr msvc build.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Thu Jun 9 11:49:42 2011 New Revision: 52154 URL:
http://svn.reactos.org/svn/reactos?rev=52154&view=rev
Log: [FREELDR] * Add a ExFreePoolWithTag stub and forward it to ExFreePool. Fixes freeldr msvc build. Modified: trunk/reactos/boot/freeldr/freeldr/mm/mm.c Modified: trunk/reactos/boot/freeldr/freeldr/mm/mm.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/mm/mm…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/mm/mm.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/mm/mm.c [iso-8859-1] Thu Jun 9 11:49:42 2011 @@ -371,6 +371,17 @@ MmHeapFree(P); } +#undef ExFreePoolWithTag +NTKERNELAPI +VOID +NTAPI +ExFreePoolWithTag( + IN PVOID P, + IN ULONG Tag) +{ + ExFreePool(P); +} + PVOID NTAPI RtlAllocateHeap(
13 years, 6 months
1
0
0
0
[tkreuzer] 52153: [ISOBOOT] Fix portable bootsector and make it gas compatible (its opcode identical to the nasm compiled one and works correctly)
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Jun 9 11:23:01 2011 New Revision: 52153 URL:
http://svn.reactos.org/svn/reactos?rev=52153&view=rev
Log: [ISOBOOT] Fix portable bootsector and make it gas compatible (its opcode identical to the nasm compiled one and works correctly) Modified: trunk/reactos/boot/freeldr/bootsect/isoboot.S Modified: trunk/reactos/boot/freeldr/bootsect/isoboot.S URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/bootsect/isob…
============================================================================== --- trunk/reactos/boot/freeldr/bootsect/isoboot.S [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/bootsect/isoboot.S [iso-8859-1] Thu Jun 9 11:23:01 2011 @@ -94,7 +94,7 @@ //align open_file_t_size absolute HEX(5060) -resb Files, MAX_OPEN * open_file_t_size +resb Files, (MAX_OPEN * open_file_t_size) /******************************************************************************/ @@ -104,7 +104,7 @@ cli // Disable interrupts xor ax, ax // ax = segment zero mov ss, ax // Initialize stack segment - mov sp, start // Set up stack + mov sp, offset start // Set up stack mov ds, ax // Initialize other segment registers mov es, ax mov fs, ax @@ -150,7 +150,7 @@ // Display the 'Press key' message and wait for a maximum of 5 seconds call crlf - mov si, presskey_msg // si points to 'Press key' message + mov si, offset presskey_msg // si points to 'Press key' message call writestr // display the message mov byte ptr ds:[TimeoutCount], 5 @@ -166,7 +166,7 @@ cmp eax, ebx jnz .poll_again - mov si, dot_msg // print '.' + mov si, offset dot_msg // print '.' call writestr dec byte ptr ds:[TimeoutCount] // decrement timeout counter jz .boot_harddisk @@ -215,7 +215,7 @@ // at least some BIOSes will get the wrong value otherwise mov ax, HEX(4B01) // Get disk emulation status mov dl, byte ptr ds:[DriveNo] - mov si, spec_packet + mov si, offset spec_packet int HEX(13) jc spec_query_failed // Shouldn't happen (BIOS bug) mov dl, byte ptr ds:[DriveNo] @@ -430,7 +430,7 @@ inc di and cl,cl jz .isfile - cmp cl, '\' + cmp cl, 92 // '\' jne .scan mov byte ptr ds:[di-1], 0 // Terminate at directory name mov cl,2 // Search for directory @@ -519,7 +519,7 @@ pop di // Next filename pointer // restore the backslash in the filename - mov byte ptr ds:[di-1], '\' + mov byte ptr ds:[di-1], 92 // '\' mov byte ptr ds:[ISOFlags], cl // Restore the flags jz .failure // Did we fail? If so fail for real! @@ -656,9 +656,9 @@ .test_loop: pusha mov ax, HEX(4B01) - mov si, spec_packet - mov byte ptr ds:[si], 13 ; Size of buffer - int 13h + mov si, offset spec_packet + mov byte ptr ds:[si], 13 // Size of buffer + int HEX(13) popa jc .still_broken @@ -704,7 +704,7 @@ writemsg: push ax push si - mov si, isolinux_str + mov si, offset isolinux_str call writestr pop si call writestr @@ -714,7 +714,7 @@ // // crlf: Print a newline crlf: - mov si, crlf_msg + mov si, offset crlf_msg // Fall through // @@ -758,7 +758,7 @@ .loop: rol eax, 4 push eax - and al, 0Fh + and al, HEX(0F) cmp al, 10 jae .high .low: @@ -808,7 +808,7 @@ // BP - Sector count // getlinsec: - mov si, dapa // Load up the DAPA + mov si, offset dapa // Load up the DAPA mov word ptr ds:[si+4], bx mov bx, es mov word ptr ds:[si+6], bx @@ -841,7 +841,7 @@ mov byte ptr ds:[RetryCount], retry_count .try: pushad - int 13h + int HEX(13) jc .error add sp, 8*4 // Clean up stack ret @@ -892,7 +892,7 @@ mov fs, ax mov gs, ax sti - mov si, err_bootfailed + mov si, offset err_bootfailed call writestr xor ax, ax // Wait for keypress int HEX(16) @@ -985,88 +985,88 @@ // .align 8 spec_packet: - db HEX(13) // Size of packet + .byte HEX(13) // Size of packet sp_media: - db 0 // Media type + .byte 0 // Media type sp_drive: - db 0 // Drive number + .byte 0 // Drive number sp_controller: - db 0 // Controller index + .byte 0 // Controller index sp_lba: - dd 0 // LBA for emulated disk image + .long 0 // LBA for emulated disk image sp_devspec: - dw 0 // IDE/SCSI information + .word 0 // IDE/SCSI information sp_buffer: - dw 0 // User-provided buffer + .word 0 // User-provided buffer sp_loadseg: - dw 0 // Load segment + .word 0 // Load segment sp_sectors: - dw 0 // Sector count + .word 0 // Sector count sp_chs: - db 0,0,0 // Simulated CHS geometry + .byte 0,0,0 // Simulated CHS geometry sp_dummy: - db 0 // Scratch, safe to overwrite + .byte 0 // Scratch, safe to overwrite // // EBIOS drive parameter packet // .align 8 drive_params: - dw 30 // Buffer size + .word 30 // Buffer size dp_flags: - dw 0 // Information flags + .word 0 // Information flags dp_cyl: - dd 0 // Physical cylinders + .long 0 // Physical cylinders dp_head: - dd 0 // Physical heads + .long 0 // Physical heads dp_sec: - dd 0 // Physical sectors/track + .long 0 // Physical sectors/track dp_totalsec: - dd 0,0 // Total sectors + .long 0,0 // Total sectors dp_secsize: - dw 0 // Bytes per sector + .word 0 // Bytes per sector dp_dpte: - dd 0 // Device Parameter Table + .long 0 // Device Parameter Table dp_dpi_key: - dw 0 // 0BEDDh if rest valid + .word 0 // 0BEDDh if rest valid dp_dpi_len: - db 0 // DPI len - db 0 - dw 0 + .byte 0 // DPI len + .byte 0 + .word 0 dp_bus: - db 0,0,0,0 // Host bus type + .byte 0,0,0,0 // Host bus type dp_interface: - db 0,0,0,0,0,0,0,0 // Interface type + .byte 0,0,0,0,0,0,0,0 // Interface type db_i_path: - dd 0,0 // Interface path + .long 0,0 // Interface path db_d_path: - dd 0,0 // Device path - db 0 + .long 0,0 // Device path + .byte 0 db_dpi_csum: - db 0 // Checksum for DPI info + .byte 0 // Checksum for DPI info // // EBIOS disk address packet // .align 8 dapa: - dw 16 // Packet size + .word 16 // Packet size .count: - dw 0 // Block count + .word 0 // Block count .off: - dw 0 // Offset of buffer + .word 0 // Offset of buffer .seg: - dw 0 // Segment of buffer + .word 0 // Segment of buffer .lba: - dd 0 // LBA (LSW) - dd 0 // LBA (MSW) + .long 0 // LBA (LSW) + .long 0 // LBA (MSW) .align 4 MaxTransfer: - dw 2 //32 // Max sectors per transfer - -.org 2047 // Pad to file offset 2046 -.word 0aa55h // BootSector signature + .word 2 //32 // Max sectors per transfer + +.org 2046 // Pad to file offset 2046 +.word HEX(0aa55) // BootSector signature .endcode16
13 years, 6 months
1
0
0
0
← Newer
1
...
31
32
33
34
35
36
37
...
46
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Results per page:
10
25
50
100
200