ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since e46ea00 was
a3821fa,
checked in by Thierry Delisle <tdelisle@…>, 4 years ago
|
Changed enable interrupts:
- no longer save the caller for debugging
- now polls based on parameter passed in
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Rev | Line | |
---|
[303c61d] | 1 | // |
---|
[891790ef] | 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
[303c61d] | 6 | // |
---|
| 7 | // startup.c -- |
---|
| 8 | // |
---|
[891790ef] | 9 | // Author : Peter A. Buhr |
---|
| 10 | // Created On : Tue Jul 24 16:21:57 2018 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
[e112a24] | 12 | // Last Modified On : Sat Jan 9 23:18:23 2021 |
---|
| 13 | // Update Count : 34 |
---|
[303c61d] | 14 | // |
---|
[891790ef] | 15 | |
---|
[e112a24] | 16 | #include <time.h> // tzset |
---|
| 17 | #include <locale.h> // setlocale |
---|
| 18 | #include <stdlib.h> // getenv |
---|
[4834563] | 19 | #include "startup.hfa" |
---|
[891790ef] | 20 | |
---|
| 21 | extern "C" { |
---|
[4834563] | 22 | void __cfaabi_appready_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_APPREADY ) )); |
---|
[891790ef] | 23 | void __cfaabi_appready_startup( void ) { |
---|
[6e7de84] | 24 | tzset(); // initialize time global variables |
---|
[e112a24] | 25 | setlocale( LC_NUMERIC, getenv("LANG") ); |
---|
[891790ef] | 26 | #ifdef __CFA_DEBUG__ |
---|
| 27 | extern void heapAppStart(); |
---|
| 28 | heapAppStart(); |
---|
| 29 | #endif // __CFA_DEBUG__ |
---|
| 30 | } // __cfaabi_appready_startup |
---|
| 31 | |
---|
[4834563] | 32 | void __cfaabi_appready_shutdown( void ) __attribute__(( destructor( STARTUP_PRIORITY_APPREADY ) )); |
---|
[891790ef] | 33 | void __cfaabi_appready_shutdown( void ) { |
---|
| 34 | #ifdef __CFA_DEBUG__ |
---|
| 35 | extern void heapAppStop(); |
---|
| 36 | heapAppStop(); |
---|
| 37 | #endif // __CFA_DEBUG__ |
---|
| 38 | } // __cfaabi_appready_shutdown |
---|
| 39 | |
---|
| 40 | void disable_interrupts() __attribute__(( weak )) {} |
---|
[a3821fa] | 41 | void enable_interrupts() __attribute__(( weak )) {} |
---|
[891790ef] | 42 | } // extern "C" |
---|
| 43 | |
---|
[36463e2] | 44 | struct __spinlock_t; |
---|
[1997b4e] | 45 | extern "C" { |
---|
[ae66348] | 46 | void __cfaabi_dbg_record_lock(struct __spinlock_t & this, const char prev_name[]) __attribute__(( weak )) {} |
---|
[1997b4e] | 47 | } |
---|
[303c61d] | 48 | |
---|
[891790ef] | 49 | // Local Variables: // |
---|
| 50 | // mode: c // |
---|
| 51 | // tab-width: 4 // |
---|
| 52 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.