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
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        with_gc
      
      
        
          | 
            Last change
 on this file since 994d080 was             c81ebf9, checked in by Thierry Delisle <tdelisle@…>, 8 years ago           | 
        
        
          | 
             
More work done on preemption in cforall, next step disabling interrupts at the correct places 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            932 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | //                              -*- Mode: CFA -*-
 | 
|---|
| 2 | //
 | 
|---|
| 3 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
 | 
|---|
| 4 | //
 | 
|---|
| 5 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
| 6 | // file "LICENCE" distributed with Cforall.
 | 
|---|
| 7 | //
 | 
|---|
| 8 | // preemption.h --
 | 
|---|
| 9 | //
 | 
|---|
| 10 | // Author           : Thierry Delisle
 | 
|---|
| 11 | // Created On       : Mon Jun 5 14:20:42 2017
 | 
|---|
| 12 | // Last Modified By : Thierry Delisle
 | 
|---|
| 13 | // Last Modified On : --
 | 
|---|
| 14 | // Update Count     : 0
 | 
|---|
| 15 | //
 | 
|---|
| 16 | 
 | 
|---|
| 17 | #ifndef PREEMPTION_H
 | 
|---|
| 18 | #define PREEMPTION_H
 | 
|---|
| 19 | 
 | 
|---|
| 20 | #include "alarm.h"
 | 
|---|
| 21 | #include "kernel_private.h"
 | 
|---|
| 22 | 
 | 
|---|
| 23 | __attribute__((weak)) unsigned int default_preemption();
 | 
|---|
| 24 | void kernel_start_preemption();
 | 
|---|
| 25 | void kernel_stop_preemption();
 | 
|---|
| 26 | void update_preemption( processor * this, __cfa_time_t duration );
 | 
|---|
| 27 | void tick_preemption();
 | 
|---|
| 28 | 
 | 
|---|
| 29 | struct preemption_scope {
 | 
|---|
| 30 |         alarm_node_t alarm;
 | 
|---|
| 31 |         processor * proc;
 | 
|---|
| 32 | };
 | 
|---|
| 33 | 
 | 
|---|
| 34 | void ?{}( preemption_scope * this, processor * proc );
 | 
|---|
| 35 | void ^?{}( preemption_scope * this );
 | 
|---|
| 36 | 
 | 
|---|
| 37 | #endif //PREEMPTION_H
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.