source: rtems/bsps/i386/pc386/start/bsp_fatal_halt.c @ 9964895

5
Last change on this file since 9964895 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 510 bytes
Line 
1/**
2 *  COPYRIGHT (c) 2016.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#include <bsp.h>
11
12void _CPU_Fatal_halt(uint32_t source, uint32_t error)
13{
14  __asm__ volatile (
15         "cli\n\t"
16         "movl %0,%%eax\n\t"
17         "hlt\n\t"
18         : "=r" ((error))
19         : "0" ((error))
20  );
21  #ifdef __GNUC__
22    __builtin_unreachable();
23  #endif
24}
Note: See TracBrowser for help on using the repository browser.