5
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 | |
---|
12 | void _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.