diff options
author | Steve McIntyre <steve@einval.com> | 2021-03-23 23:49:46 +0000 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2021-03-23 23:49:46 +0000 |
commit | 031e5cce385d3f96b1caa1d53495332a7eb03749 (patch) | |
tree | b4988dfbd191b2242b9294e24075b39a608b1155 /gnu-efi/lib/arm/initplat.c | |
parent | 7bf7a6d0852382bb645119b18df3ff461aaba247 (diff) | |
download | efi-boot-shim-upstream/15.3.tar.gz efi-boot-shim-upstream/15.3.zip |
New upstream version 15.3upstream/15.3
Diffstat (limited to 'gnu-efi/lib/arm/initplat.c')
-rw-r--r-- | gnu-efi/lib/arm/initplat.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu-efi/lib/arm/initplat.c b/gnu-efi/lib/arm/initplat.c new file mode 100644 index 00000000..135a6492 --- /dev/null +++ b/gnu-efi/lib/arm/initplat.c @@ -0,0 +1,34 @@ +/* + * Copright (C) 2014 Linaro Ltd. + * Author: Ard Biesheuvel <ard.biesheuvel@linaro.org> + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice and this list of conditions, without modification. + * 2. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * Alternatively, this software may be distributed under the terms of the + * GNU General Public License as published by the Free Software Foundation; + * either version 2 of the License, or (at your option) any later version. + */ + +#include "lib.h" + +VOID +InitializeLibPlatform ( + IN EFI_HANDLE ImageHandle EFI_UNUSED, + IN EFI_SYSTEM_TABLE *SystemTable EFI_UNUSED + ) +{ +} + +#ifdef __GNUC__ +void __div0(void) +{ + // TODO handle divide by zero fault + while (1); +} +#endif |