<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent, branch edk2_master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=edk2_master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=edk2_master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2021-12-07T17:24:28+00:00</updated>
<entry>
<title>SourceLevelDebugPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:54:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=c1e126b1196de75e0a4cda21e4551ea9bb05e059'/>
<id>urn:sha1:c1e126b1196de75e0a4cda21e4551ea9bb05e059</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the SourceLevelDebugPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Ray Ni &lt;ray.ni@intel.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg: Change OPTIONAL keyword usage style</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2021-12-03T02:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=f9c9215b555194e61ee4a34225e0ec3d45e16060'/>
<id>urn:sha1:f9c9215b555194e61ee4a34225e0ec3d45e16060</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760

Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Ray Ni &lt;ray.ni@intel.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg: Change use of EFI_D_* to DEBUG_*</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2021-11-17T03:21:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=586fda4800124351c347d55f7bc186ac6aa15667'/>
<id>urn:sha1:586fda4800124351c347d55f7bc186ac6aa15667</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739

Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg/DebugAgent: Fix various typos</title>
<updated>2020-02-10T22:30:07+00:00</updated>
<author>
<name>Antoine Coeur</name>
<email>coeur@gmx.fr</email>
</author>
<published>2020-02-07T01:08:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=a302263ebb33018bccaeb3c10152e7f8ea4cda6f'/>
<id>urn:sha1:a302263ebb33018bccaeb3c10152e7f8ea4cda6f</id>
<content type='text'>
Fix various typos in documentation, comments and debug strings.

Cc: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Signed-off-by: Antoine Coeur &lt;coeur@gmx.fr&gt;
Reviewed-by: Philippe Mathieu-Daude &lt;philmd@redhat.com&gt;
Reviewed-by: Hao A Wu &lt;hao.a.wu@intel.com&gt;
Signed-off-by: Philippe Mathieu-Daude &lt;philmd@redhat.com&gt;
Message-Id: &lt;20200207010831.9046-72-philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg: Replace BSD License with BSD+Patent License</title>
<updated>2019-04-09T17:58:27+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2019-04-03T23:07:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=85f7e11021b33172d90af3d8589ad0b01c23c05a'/>
<id>urn:sha1:85f7e11021b33172d90af3d8589ad0b01c23c05a</id>
<content type='text'>
https://bugzilla.tianocore.org/show_bug.cgi?id=1373

Replace BSD 2-Clause License with BSD+Patent License.  This change is
based on the following emails:

  https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html
  https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html

RFCs with detailed process for the license change:

  V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html
  V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html
  V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Hao Wu &lt;hao.a.wu@intel.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg: Convert source file to DOS format</title>
<updated>2017-12-28T04:48:04+00:00</updated>
<author>
<name>Liming Gao</name>
<email>liming.gao@intel.com</email>
</author>
<published>2017-12-27T15:23:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7a3ed289f2b51c34f6b0739ae1b40cad89071d00'/>
<id>urn:sha1:7a3ed289f2b51c34f6b0739ae1b40cad89071d00</id>
<content type='text'>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao &lt;liming.gao@intel.com&gt;
Cc: Wu Hao A &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Wu Hao A &lt;hao.a.wu@intel.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol</title>
<updated>2017-12-08T05:31:47+00:00</updated>
<author>
<name>Michael Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2017-05-23T23:21:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2b55daaef0f3f53059c5c858ca6fd53b03eb5d4c'/>
<id>urn:sha1:2b55daaef0f3f53059c5c858ca6fd53b03eb5d4c</id>
<content type='text'>
https://bugzilla.tianocore.org/show_bug.cgi?id=573
https://bugzilla.tianocore.org/show_bug.cgi?id=796

The same issue is reported again by GCC. Resend this patch again.
This patch renames the duplicated function name to fix it.

The SecPeiDebugAgentLib uses the global variable
mMemoryDiscoveredNotifyList for a PPI notification on
the Memory Discovered PPI.  This same variable name is
used in the DxeIplPeim for the same PPI notification.

The XCODE5 tool chain detects this duplicate symbol
when the OVMF platform is built with the flag
-D SOURCE_DEBUG_ENABLE.

The fix is to rename this global variable in the
SecPeiDebugAgentLib library.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Jeff Fan &lt;jeff.fan@intel.com&gt;
Cc: Hao Wu &lt;hao.a.wu@intel.com&gt;
Cc: Laszlo Ersek &lt;lersek@redhat.com&gt;
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Jeff Fan &lt;jeff.fan@intel.com&gt;
Reviewed-by: Ruiyu Ni &lt;ruiyu.ni@intel.com&gt;
Reviewed-by: Hao Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg: Refine casting expression result to bigger size</title>
<updated>2017-03-06T06:33:25+00:00</updated>
<author>
<name>Hao Wu</name>
<email>hao.a.wu@intel.com</email>
</author>
<published>2017-02-17T03:44:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=3ee1680978922a6542d58a1d33b346d49ab80c56'/>
<id>urn:sha1:3ee1680978922a6542d58a1d33b346d49ab80c56</id>
<content type='text'>
There are cases that the operands of an expression are all with rank less
than UINT64/INT64 and the result of the expression is explicitly cast to
UINT64/INT64 to fit the target size.

An example will be:
UINT32 a,b;
// a and b can be any unsigned int type with rank less than UINT64, like
// UINT8, UINT16, etc.
UINT64 c;
c = (UINT64) (a + b);

Some static code checkers may warn that the expression result might
overflow within the rank of "int" (integer promotions) and the result is
then cast to a bigger size.

The commit refines codes by the following rules:
1). When the expression is possible to overflow the range of unsigned int/
int:
c = (UINT64)a + b;

2). When the expression will not overflow within the rank of "int", remove
the explicit type casts:
c = a + b;

3). When the expression will be cast to pointer of possible greater size:
UINT32 a,b;
VOID *c;
c = (VOID *)(UINTN)(a + b); --&gt; c = (VOID *)((UINTN)a + b);

4). When one side of a comparison expression contains only operands with
rank less than UINT32:
UINT8 a;
UINT16 b;
UINTN c;
if ((UINTN)(a + b) &gt; c) {...} --&gt; if (((UINT32)a + b) &gt; c) {...}

For rule 4), if we remove the 'UINTN' type cast like:
if (a + b &gt; c) {...}
The VS compiler will complain with warning C4018 (signed/unsigned
mismatch, level 3 warning) due to promoting 'a + b' to type 'int'.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Jeff Fan &lt;jeff.fan@intel.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg: Fix typos in comments</title>
<updated>2016-10-24T01:10:15+00:00</updated>
<author>
<name>Gary Lin</name>
<email>glin@suse.com</email>
</author>
<published>2016-10-19T07:01:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=74cdb367addc883595359c57c38d7cc465c88ea1'/>
<id>urn:sha1:74cdb367addc883595359c57c38d7cc465c88ea1</id>
<content type='text'>
- descrption -&gt; description
- Libary -&gt; Library
- funciton -&gt; function
- paramter -&gt; parameter
- triggerred -&gt; triggered
- hanlde -&gt; handle

Cc: Jeff Fan &lt;jeff.fan@intel.com&gt;
Cc: Hao Wu &lt;hao.a.wu@intel.com&gt;
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin &lt;glin@suse.com&gt;
Reviewed-by: Hao Wu &lt;hao.a.wu@intel.com&gt;
Reviewed-by: Jeff Fan &lt;jeff.fan@intel.com&gt;
</content>
</entry>
<entry>
<title>SourceLevelDebugPkg/SecPeiDebugAgentLib: Restore CPU interrupt state</title>
<updated>2015-07-10T05:48:19+00:00</updated>
<author>
<name>Jeff Fan</name>
<email>jeff.fan@intel.com</email>
</author>
<published>2015-07-10T05:48:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2638c111076f9a49d4766ca5acbafa0eb7f66a18'/>
<id>urn:sha1:2638c111076f9a49d4766ca5acbafa0eb7f66a18</id>
<content type='text'>
In DEBUG_AGENT_INIT_POSTMEM_SEC case, caller may disable/restore CPU interrupt
to protect the stack/heap migration. SecPeiDebugAgentLib cannot always enable
CPU interrupt. Otherwise system may crash during stack/heap migration.
SecPeiDebugAgentLib should restore original CPU interrupt state in
DEBUG_AGENT_INIT_POSTMEM_SEC case.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan &lt;jeff.fan@intel.com&gt;
Reviewed-by: Brian J. Johnson &lt;bjohnson@sgi.com&gt;
Tested-by: Brian J. Johnson &lt;bjohnson@sgi.com&gt;

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17916 6f19259b-4bc3-4df7-8a09-765794883524
</content>
</entry>
</feed>
