<feed xmlns='http://www.w3.org/2005/Atom'>
<title>efi-boot-shim.git/lib/console.c, branch rolling</title>
<subtitle> (mirror of https://github.com/vyos/efi-boot-shim.git)
</subtitle>
<id>https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/efi-boot-shim.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/'/>
<updated>2025-01-15T21:03:55+00:00</updated>
<entry>
<title>Backport EFI_HTTP_ERROR status code</title>
<updated>2025-01-15T21:03:55+00:00</updated>
<author>
<name>Dan Nicholson</name>
<email>dbn@endlessos.org</email>
</author>
<published>2024-10-04T17:00:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=d197220e834e7915326c6a99e17bafe0dcfb3f77'/>
<id>urn:sha1:d197220e834e7915326c6a99e17bafe0dcfb3f77</id>
<content type='text'>
The define can be dropped when gnu-efi is updated to include
de6f9259e8476495c78babbc25250a59de7f3942.

Signed-off-by: Dan Nicholson &lt;dbn@endlessos.org&gt;
</content>
</entry>
<entry>
<title>Rename 'msecs' to 'usecs' to avoid potential confusion</title>
<updated>2023-06-21T18:19:51+00:00</updated>
<author>
<name>Kamil Aronowski</name>
<email>kamil.aronowski@yahoo.com</email>
</author>
<published>2023-04-12T16:50:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=549d34691d68518e55c2edd6e759b19de7f8ddef'/>
<id>urn:sha1:549d34691d68518e55c2edd6e759b19de7f8ddef</id>
<content type='text'>
The function msleep uses gBS-&gt;Stall which waits for a specified number
of microseconds.

Reference: https://edk2-docs.gitbook.io/edk-ii-uefi-driver-writer-s-guide/5_uefi_services/51_services_that_uefi_drivers_commonly_use/517_stall

This reference even mentions an example sleeping for 10 microseconds: // Wait 10 uS. Notice the letter 'u'.

Therefore it's a good idea to call the function 'usleep' rather than
'msleep', so no one confuses it with milliseconds, and to change the
argument name to match as well.

Signed-off-by: Kamil Aronowski &lt;kamil.aronowski@yahoo.com&gt;
</content>
</entry>
<entry>
<title>Skip testing msleep()</title>
<updated>2023-06-21T18:18:25+00:00</updated>
<author>
<name>Kamil Aronowski</name>
<email>kamil.aronowski@yahoo.com</email>
</author>
<published>2023-05-08T07:28:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=f7a4338f1b5ef03dca83ce44075e9d6e5897e037'/>
<id>urn:sha1:f7a4338f1b5ef03dca83ce44075e9d6e5897e037</id>
<content type='text'>
In preparation for renaming msleep() to usleep(), in some cases tests
were failing due to a mismatch between our declaration of the usleep()
function and what is being provided by unistd.h. This change simply
makes our function declared only when not in a unit test environment.

Signed-off-by: Kamil Aronowski &lt;kamil.aronowski@yahoo.com&gt;
</content>
</entry>
<entry>
<title>shim: use SHIM_DEVEL_VERBOSE when built in devel mode</title>
<updated>2022-05-17T22:16:07+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2022-04-27T21:09:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=803dc5c16e276c26f8400b469370f2a2ca39d7f3'/>
<id>urn:sha1:803dc5c16e276c26f8400b469370f2a2ca39d7f3</id>
<content type='text'>
This makes SHIM_VERBOSE / SHIM_DEVEL_VERBOSE work the same way as
SHIM_DEBUG / SHIM_DEVEL_DEBUG when shim is built with ENABLE_SHIM_DEVEL
set.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>Use ASCII as fallback if Unicode Box Drawing characters fail</title>
<updated>2022-05-17T21:47:21+00:00</updated>
<author>
<name>Tony Persson</name>
<email>tony@tonypersson.se</email>
</author>
<published>2021-02-22T21:15:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=9af50c136aa2815e1ea2035a494a74cc1613a0da'/>
<id>urn:sha1:9af50c136aa2815e1ea2035a494a74cc1613a0da</id>
<content type='text'>
Many ASRock boards will not render MokManager correctly if the Unicode
Box Drawing characters are used.

Signed-off-by: Tony Persson &lt;tony@tonypersson.se&gt;
</content>
</entry>
<entry>
<title>MokManager: removed Locate graphic output protocol fail error message</title>
<updated>2022-03-30T17:22:42+00:00</updated>
<author>
<name>Lee, Chun-Yi</name>
<email>jlee@suse.com</email>
</author>
<published>2021-12-15T11:44:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=448f096e5c3a139535f162dfbfe8c08c434ac742'/>
<id>urn:sha1:448f096e5c3a139535f162dfbfe8c08c434ac742</id>
<content type='text'>
On some platform, like GCP or OVMF which does NOT provide
EFI_GRAPHICS_OUTPUT_PROTOCOL when no display device (or the display device
be disabled). It causes that the "Error: Locate graphic output protocol
fail: (0xE) Not Found." always be showed on console when we enroll MOK
through MokManager. The message box blocked the process of enrolling
MOK and scared user. The error message is introduced by 55163bc82c517 since
15.2. This patch removed the error message.

Signed-off-by: Lee, Chun-Yi &lt;jlee@suse.com&gt;
</content>
</entry>
<entry>
<title>console: add a clear_screen() primitive</title>
<updated>2021-10-12T14:40:13+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2021-09-16T20:46:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=35ca373d20fbeeb80aff2202077d614bc89575c0'/>
<id>urn:sha1:35ca373d20fbeeb80aff2202077d614bc89575c0</id>
<content type='text'>
Several places in e.g. MokManager and our console library use
ST-&gt;ConOut-&gt;ClearScreen directly, without checking for the existence of
a console output device.

This patch adds function to our console library to do that correctly,
instead of using the bug-prone ad hoc implementation everywhere.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>console: check that ST-&gt;ConIn and ST-&gt;ConOut are non-NULL</title>
<updated>2021-10-12T14:40:13+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2021-09-16T20:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=1872c929cc3a466c75336307901e67917bcc46bc'/>
<id>urn:sha1:1872c929cc3a466c75336307901e67917bcc46bc</id>
<content type='text'>
There's been some discussion on how to handle machines without console
devices.  The consensus so far has been that they should have dummy
ConOut implementations, but that means the first vendor to build a
machine without asking around is in for some surprises.

This patch makes the places where our console library uses ST-&gt;ConIn or
ST-&gt;ConOut check that they're present before doing so.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>shim/mm/fb: move global state to its own source file</title>
<updated>2021-09-07T21:05:04+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2021-07-23T18:18:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=cae5e2f7c100bc9e8f07de62353021d6737a50ee'/>
<id>urn:sha1:cae5e2f7c100bc9e8f07de62353021d6737a50ee</id>
<content type='text'>
This moves the globals from shim.c (and lib/console.c) into their own
file, to make it so that unit tests can more easily link against code
that uses that state.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>cleanup: always use BS and RT, not gBS and gRT</title>
<updated>2021-09-07T21:05:04+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2021-07-23T18:28:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/efi-boot-shim.git/commit/?id=6ea93a28759d754778e483f86f95587a01c5fee8'/>
<id>urn:sha1:6ea93a28759d754778e483f86f95587a01c5fee8</id>
<content type='text'>
This just makes one less thing we have to make sure is the same between
the test harnesses and the runtime code.

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
</entry>
</feed>
