diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-07-12 15:28:51 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-07-12 15:34:20 +0300 |
commit | ea49e59ed0fc50085716e55d66395b6afef8a554 (patch) | |
tree | 91089f5b20ede7ee53f7f613b2d5eb72a23a1017 /UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.c | |
parent | f980e8c1e946285a212fad287164b0c9ef3b1625 (diff) | |
download | UEFI-Lessons-ea49e59ed0fc50085716e55d66395b6afef8a554.tar.gz UEFI-Lessons-ea49e59ed0fc50085716e55d66395b6afef8a554.tar.bz2 UEFI-Lessons-ea49e59ed0fc50085716e55d66395b6afef8a554.zip |
Update UefiLessonsPkg
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.c')
-rw-r--r-- | UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.c b/UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.c new file mode 100644 index 0000000..5ade80e --- /dev/null +++ b/UefiLessonsPkg/Library/SimpleLibraryWithConstructor/SimpleLibraryWithConstructor.c @@ -0,0 +1,18 @@ +#include <Library/UefiLib.h> +#include <Library/SimpleLibrary.h> + +UINTN Plus2(UINTN number) { + return number+2; +} + +EFI_STATUS +EFIAPI +SimpleLibraryConstructor( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + Print(L"Hello from library constructor!\n"); + return EFI_SUCCESS; +} + |