source: rtems/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c @ daa303d

5
Last change on this file since daa303d was daa303d, checked in by Gedare Bloom <gedare@…>, on 03/03/16 at 21:40:17

pc386: adjust assembly in bsp_fatal_halt

  • Property mode set to 100644
File size: 454 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}
Note: See TracBrowser for help on using the repository browser.