1 1.1 jmcneill /* $NetBSD: initplat.c,v 1.1 2018/08/16 18:17:47 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* 4 1.1 jmcneill * Copright (C) 2014 Linaro Ltd. 5 1.1 jmcneill * Author: Ard Biesheuvel <ard.biesheuvel (at) linaro.org> 6 1.1 jmcneill * 7 1.1 jmcneill * Redistribution and use in source and binary forms, with or without 8 1.1 jmcneill * modification, are permitted provided that the following conditions 9 1.1 jmcneill * are met: 10 1.1 jmcneill * 1. Redistributions of source code must retain the above copyright 11 1.1 jmcneill * notice and this list of conditions, without modification. 12 1.1 jmcneill * 2. The name of the author may not be used to endorse or promote products 13 1.1 jmcneill * derived from this software without specific prior written permission. 14 1.1 jmcneill * 15 1.1 jmcneill * Alternatively, this software may be distributed under the terms of the 16 1.1 jmcneill * GNU General Public License as published by the Free Software Foundation; 17 1.1 jmcneill * either version 2 of the License, or (at your option) any later version. 18 1.1 jmcneill */ 19 1.1 jmcneill 20 1.1 jmcneill #include "lib.h" 21 1.1 jmcneill 22 1.1 jmcneill VOID 23 1.1 jmcneill InitializeLibPlatform ( 24 1.1 jmcneill IN EFI_HANDLE ImageHandle EFI_UNUSED, 25 1.1 jmcneill IN EFI_SYSTEM_TABLE *SystemTable EFI_UNUSED 26 1.1 jmcneill ) 27 1.1 jmcneill { 28 1.1 jmcneill } 29 1.1 jmcneill 30 1.1 jmcneill #ifdef __GNUC__ 31 1.1 jmcneill void __div0(void) 32 1.1 jmcneill { 33 1.1 jmcneill // TODO handle divide by zero fault 34 1.1 jmcneill while (1); 35 1.1 jmcneill } 36 1.1 jmcneill #endif 37