[ros-dev] [ros-diffs] [hbelusca] 57780: [CPORTLIB/FREELDR] GetByte --> Wait for data (with timeout) and get it if available. PollByte --> Check for data, get it if available, and return immediately.
Yes indeed I thought about it... And WinLdrPortPollOnly is not used atm
(I've just checked via our git mirror). However, "Polling previously only
checked, if data is available, but didn't read it from the port" as it is
done like you described, was only used in WinLdrPortPollOnly.
By the way, Timo (or someone else), could you check that debugging with
WinDbg / kdcom (with MSVC builds) is not broken by these commits, please ? I
have problems configuring msvc builds at home so that I cannot test it.
Hermès
-----Message d'origine-----
De : ros-dev-bounces at reactos.org [mailto:ros-dev-bounces at reactos.org] De la
part de Timo Kreuzer
Envoyé : vendredi 30 novembre 2012 10:53
À : ros-dev at reactos.org
Objet : Re: [ros-dev] [ros-diffs] [hbelusca] 57780: [CPORTLIB/FREELDR]
GetByte --> Wait for data (with timeout) and get it if available. PollByte
--> Check for data, get it if available, and return immediately.
You are aware that this changes the behavior?
Polling previously only checked, if data is available, but didn't read it
from the port.
But afaics it's only relvenat for WinLdrPortPollOnly, which seems to be
unused anyway.
Am 29.11.2012 00:16, schrieb hbelusca at svn.reactos.org:
> Author: hbelusca
> Date: Wed Nov 28 23:16:01 2012
> New Revision: 57780
>> URL: http://svn.reactos.org/svn/reactos?rev=57780&view=rev
> Log:
> [CPORTLIB/FREELDR]
> GetByte --> Wait for data (with timeout) and get it if available.
> PollByte --> Check for data, get it if available, and return immediately.
>> Modified:
> trunk/reactos/boot/freeldr/freeldr/comm/rs232.c
> trunk/reactos/boot/freeldr/freeldr/windows/headless.c
> trunk/reactos/include/reactos/libs/cportlib/cportlib.h
> trunk/reactos/lib/cportlib/cport.c
>> Modified: trunk/reactos/boot/freeldr/freeldr/comm/rs232.c
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/
> comm/rs232.c?rev=57780&r1=57779&r2=57780&view=diff
> ======================================================================
> ========
> --- trunk/reactos/boot/freeldr/freeldr/comm/rs232.c [iso-8859-1]
> (original)
> +++ trunk/reactos/boot/freeldr/freeldr/comm/rs232.c [iso-8859-1] Wed
> +++ Nov 28 23:16:01 2012
> @@ -100,7 +100,7 @@
> if (PortInitialized == FALSE)
> return FALSE;
>> - return (CpGetByte(&Rs232ComPort, ByteReceived, FALSE, FALSE) ==
CP_GET_SUCCESS);
> + return (CpGetByte(&Rs232ComPort, ByteReceived, TRUE) ==
> + CP_GET_SUCCESS);
> }
>> /*
> @@ -109,12 +109,7 @@
> if (PortInitialized == FALSE)
> return FALSE;
>> - while ((READ_PORT_UCHAR (SER_LSR(Rs232PortBase)) & SR_LSR_DR) == 0)
> - ;
> -
> - *ByteReceived = READ_PORT_UCHAR (SER_RBR(Rs232PortBase));
> -
> - return TRUE;
> + return (CpGetByte(&Rs232ComPort, ByteReceived, FALSE) ==
> + CP_GET_SUCCESS);
> }
> */
>>> Modified: trunk/reactos/boot/freeldr/freeldr/windows/headless.c
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/
> windows/headless.c?rev=57780&r1=57779&r2=57780&view=diff
> ======================================================================
> ========
> --- trunk/reactos/boot/freeldr/freeldr/windows/headless.c [iso-8859-1]
> (original)
> +++ trunk/reactos/boot/freeldr/freeldr/windows/headless.c [iso-8859-1]
> +++ Wed Nov 28 23:16:01 2012
> @@ -143,7 +143,7 @@
> WinLdrPortGetByte(IN ULONG PortId,
> OUT PUCHAR Data)
> {
> - return CpGetByte(&Port[PortId], Data, TRUE, FALSE) ==
CP_GET_SUCCESS;
> + return CpGetByte(&Port[PortId], Data, TRUE) == CP_GET_SUCCESS;
> }
>> BOOLEAN
> @@ -151,7 +151,7 @@
> {
> UCHAR Dummy;
>> - return CpGetByte(&Port[PortId], &Dummy, FALSE, TRUE) ==
CP_GET_SUCCESS;
> + return CpGetByte(&Port[PortId], &Dummy, FALSE) == CP_GET_SUCCESS;
> }
>> VOID
>> Modified: trunk/reactos/include/reactos/libs/cportlib/cportlib.h
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/
> cportlib/cportlib.h?rev=57780&r1=57779&r2=57780&view=diff
> ======================================================================
> ========
> --- trunk/reactos/include/reactos/libs/cportlib/cportlib.h
> [iso-8859-1] (original)
> +++ trunk/reactos/include/reactos/libs/cportlib/cportlib.h
> +++ [iso-8859-1] Wed Nov 28 23:16:01 2012
> @@ -69,8 +69,7 @@
> CpGetByte(
> IN PCPPORT Port,
> OUT PUCHAR Byte,
> - IN BOOLEAN Wait,
> - IN BOOLEAN Poll
> + IN BOOLEAN Wait
> );
>> VOID
>> Modified: trunk/reactos/lib/cportlib/cport.c
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cportlib/cport.c?
> rev=57780&r1=57779&r2=57780&view=diff
> ======================================================================
> ========
> --- trunk/reactos/lib/cportlib/cport.c [iso-8859-1] (original)
> +++ trunk/reactos/lib/cportlib/cport.c [iso-8859-1] Wed Nov 28
> +++ 23:16:01 2012
> @@ -255,8 +255,7 @@
> NTAPI
> CpGetByte(IN PCPPORT Port,
> OUT PUCHAR Byte,
> - IN BOOLEAN Wait,
> - IN BOOLEAN Poll)
> + IN BOOLEAN Wait)
> {
> UCHAR Lsr;
> ULONG LimitCount = Wait ? TIMEOUT_COUNT : 1; @@ -278,9 +277,6 @@
> return CP_GET_ERROR;
> }
>> - /* If only polling was requested by caller, return now */
> - if (Poll) return CP_GET_SUCCESS;
> -
> /* Otherwise read the byte and return it */
> *Byte = READ_PORT_UCHAR(Port->Address +
> RECEIVE_BUFFER_REGISTER);
>>>>
_______________________________________________
Ros-dev mailing list
Ros-dev at reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev
More information about the Ros-dev
mailing list
CHAPTER VII. THE FOUR CLASSES OF SOCIETY. THE FOUR CLASSES OF SOCIETY. "After the herald had given the names of the wrestlers who were to make the first round, the fellows came in. They were dressed without any clothes to speak of, or rather they were quite undressed, with the exception of a cloth around their loins. They came in on opposite sides of the ring, and stood there about five feet apart, each man resting his hands on his knees, and glaring at the other like a wild beast. They[Pg 231] looked more like a pair of tigers than human beings, and for a moment I thought it was not at all unlike what a bull-fight in Spain might be. I turned upon her choking with anger, but her melting beauty rendered me helpless. Black woods were on our left. "Shall we turn in here?" I asked. "None of that with me," he growled. "Do you know who I am, Countess Lalage? I am Leon Lagage, Count of the Holy Roman Empire, and your husband. Incomparable woman, you cannot alter that fact. For better or worse, for richer or poorer, till death do us part!" I have in this way imperfectly indicated a methodical plan of generating a design, as far as words alone will serve, beginning with certain premises based upon a particular work to be performed, and then proceeding to consider in consecutive order the general character of the machine, mode of operation, movements and adjustments, general arrangement, strains, special arrangement, and proportions. ‘Alas! what is life, what is death, what are we, 11th January two best dresses. Commencement was as usual, with a few showers “All right,” agreed Sandy. “Dick, you and I are the ground crew. As soon as you’re ready, Mr. Whiteside, we’ll take hold!” Effects of Walpole's Administration—Formation of the new Ministry—Attitude of the Malcontents—Committee of Inquiry into Walpole's Administration—Walpole's Protectors—Ministerial Measures—Prorogation of Parliament—Disasters of the French—British Division in the Netherlands—Opening of Parliament—The German Mercenaries—Amendment of the Gin Act—George goes to Germany—Stair and De Noailles in Franconia—Stair in a Trap—Bold Resolution of King George—The Battle of Dettingen—Resignation of Stair—Retreat of the French—Negotiations for Peace—Treaty of Worms—Pelham becomes Prime Minister—The Attacks of Pitt on Carteret—Attempted Invasion of England—Its Failure—Progress of the French Arms—Frederick II. invades Bohemia—His Retirement—Resignation of Carteret—Pelham strengthens his Ministry—Death of the Emperor—Campaign in Flanders—Battle of Fontenoy—Campaign of Frederick II.—The Young Pretender's Preparations—Loss of the Elizabeth—Landing in the Hebrides—The Highland Clans join him—The First Brush—Raising of the Standard—Cope's Mistake—He turns aside at Dalwhinnie—Charles makes a Dash for Edinburgh—The March to Stirling—Right of the Dragoons—The "Canter of Coltbridge"—Edinburgh surprised by the Highlanders—Charles marching against Cope—Battle of Prestonpans—Delay in marching South—Discontent of the Highland Chiefs—The Start—Preparations in England—Apathy of the Aristocracy—Arrival of the Duke of Cumberland—Charles crosses the Border—Capture of Carlisle—The March to Derby—Resolution to retreat—"Black Friday"—The Retreat—Recapture of Carlisle—Siege of Stirling—Battle of Falkirk—Retreat to the Highlands—Cumberland's Pursuit—Gradual Collapse of the Highlanders—Battle of Culloden—Termination of the Rebellion—Cruelty of the Duke of Cumberland—Adventures of the Young Pretender—Trials and Executions—Ministerial Crisis. The next morning he was up betimes, and cooked the boys as good a breakfast as he could out of the remainder of his store and what he could get from the hospital, and then gave what was left to whoever came. The comfortable crib, which had cost the Deacon so much labor, had been pre-empted by the Surgeon for some of his weakest patients. "You two step forward one pace," he commanded. "Gentleman, I've got my six. The rest are yours." "Where are you goin'?" he said sternly. Every now and then the crowd would break into the latest rhymings of MacKinnon's poet: A large thicket, at this moment, gave the dusty foot an opportunity of doubling, and, for an instant, diverging from the straightforward course, though it availed him little, he seemed to feel the breath of his pursuer on the back of his neck; his foot sounded as if at his heels; he drew his garment closely around him, turned suddenly to the right, and, bounding from the ground, the next instant a splash was heard in the little river, and the fugitive was safe from his pursuer. HoME明日之后怎么免费刷一级纳米材料
ENTER NUMBET 0018www.zhangjihai.com.cn szhcli.com.cn www.zjgcx.com.cn www.kqau.com.cn www.kthxty.com.cn www.616go.com.cn www.hxwp.com.cn www.lzml.com.cn henganda.com.cn www.hkbus.com.cn