ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
      
      
        
          | Last change
 on this file since cf0de0e was             891790ef, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago | 
        
          | 
make memory highest priority boot constructor, add pre/post application hook
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.2 KB | 
      
      
| Line |  | 
|---|
| 1 | // | 
|---|
| 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. | 
|---|
| 6 | // | 
|---|
| 7 | // startup.c -- | 
|---|
| 8 | // | 
|---|
| 9 | // Author           : Peter A. Buhr | 
|---|
| 10 | // Created On       : Tue Jul 24 16:21:57 2018 | 
|---|
| 11 | // Last Modified By : Peter A. Buhr | 
|---|
| 12 | // Last Modified On : Wed Jul 25 16:42:01 2018 | 
|---|
| 13 | // Update Count     : 11 | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 | #include "startup.h" | 
|---|
| 17 | #include <unistd.h> | 
|---|
| 18 |  | 
|---|
| 19 |  | 
|---|
| 20 | extern "C" { | 
|---|
| 21 | static void __cfaabi_appready_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_APPREADY ) )); | 
|---|
| 22 | void __cfaabi_appready_startup( void ) { | 
|---|
| 23 | #ifdef __CFA_DEBUG__ | 
|---|
| 24 | extern void heapAppStart(); | 
|---|
| 25 | heapAppStart(); | 
|---|
| 26 | #endif // __CFA_DEBUG__ | 
|---|
| 27 | } // __cfaabi_appready_startup | 
|---|
| 28 |  | 
|---|
| 29 | static void __cfaabi_appready_shutdown( void ) __attribute__(( destructor( STARTUP_PRIORITY_APPREADY ) )); | 
|---|
| 30 | void __cfaabi_appready_shutdown( void ) { | 
|---|
| 31 | #ifdef __CFA_DEBUG__ | 
|---|
| 32 | extern void heapAppStop(); | 
|---|
| 33 | heapAppStop(); | 
|---|
| 34 | #endif // __CFA_DEBUG__ | 
|---|
| 35 | } // __cfaabi_appready_shutdown | 
|---|
| 36 |  | 
|---|
| 37 | void disable_interrupts() __attribute__(( weak )) {} | 
|---|
| 38 | void enable_interrupts_noPoll() __attribute__(( weak )) {} | 
|---|
| 39 | } // extern "C" | 
|---|
| 40 |  | 
|---|
| 41 | // Local Variables: // | 
|---|
| 42 | // mode: c // | 
|---|
| 43 | // tab-width: 4 // | 
|---|
| 44 | // End: // | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.