ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | 
            Last change
 on this file since 692e6f1 was             ae66348, checked in by Thierry Delisle <tdelisle@…>, 6 years ago           | 
        
        
          | 
             
Threads in debug now keep track of last function to park/unpark it 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.4 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
 | 
|---|
| [e3fea42] | 12 | // Last Modified On : Tue Feb  4 13:03:18 2020
 | 
|---|
 | 13 | // Update Count     : 30
 | 
|---|
| [303c61d] | 14 | //
 | 
|---|
| [891790ef] | 15 | 
 | 
|---|
| [6e7de84] | 16 | #include <time.h>                                                                               // tzset
 | 
|---|
| [4834563] | 17 | #include "startup.hfa"
 | 
|---|
| [891790ef] | 18 | 
 | 
|---|
 | 19 | extern "C" {
 | 
|---|
| [4834563] | 20 |     void __cfaabi_appready_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_APPREADY ) ));
 | 
|---|
| [891790ef] | 21 |     void __cfaabi_appready_startup( void ) {
 | 
|---|
| [6e7de84] | 22 |                 tzset();                                                                                // initialize time global variables
 | 
|---|
| [891790ef] | 23 |                 #ifdef __CFA_DEBUG__
 | 
|---|
 | 24 |                 extern void heapAppStart();
 | 
|---|
 | 25 |                 heapAppStart();
 | 
|---|
 | 26 |                 #endif // __CFA_DEBUG__
 | 
|---|
 | 27 |     } // __cfaabi_appready_startup
 | 
|---|
 | 28 | 
 | 
|---|
| [4834563] | 29 |     void __cfaabi_appready_shutdown( void ) __attribute__(( destructor( STARTUP_PRIORITY_APPREADY ) ));
 | 
|---|
| [891790ef] | 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 | 
 | 
|---|
| [36463e2] | 41 | struct __spinlock_t;
 | 
|---|
| [1997b4e] | 42 | extern "C" {
 | 
|---|
| [ae66348] | 43 |         void __cfaabi_dbg_record_lock(struct __spinlock_t & this, const char prev_name[]) __attribute__(( weak )) {}
 | 
|---|
| [1997b4e] | 44 | }
 | 
|---|
| [303c61d] | 45 | 
 | 
|---|
| [891790ef] | 46 | // Local Variables: //
 | 
|---|
 | 47 | // mode: c //
 | 
|---|
 | 48 | // tab-width: 4 //
 | 
|---|
 | 49 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.