Rev 635 | Rev 1100 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 659 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | * |
43 | * |
44 | */ |
44 | */ |
45 | void halt() |
45 | void halt() |
46 | { |
46 | { |
47 | #ifdef CONFIG_DEBUG |
47 | #ifdef CONFIG_DEBUG |
48 | bool rundebugger; |
48 | bool rundebugger = false; |
49 | 49 | ||
50 | // TODO test_and_set not defined on all arches |
50 | // TODO test_and_set not defined on all arches |
51 | // if (!test_and_set(&haltstate)) |
51 | // if (!test_and_set(&haltstate)) |
52 | if (!atomic_get(&haltstate)) { |
52 | if (!atomic_get(&haltstate)) { |
53 | atomic_set(&haltstate, 1); |
53 | atomic_set(&haltstate, 1); |