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