Ignore:
Timestamp:
Jul 31, 2020, 4:02:04 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
3e2b9c9
Parents:
3ac8b9f
Message:

First attempt at reducing complation time by restructuring the code.
Notably, starting the runtime has been moved to kernel/startup.cfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/preemption.cfa

    r3ac8b9f re660761  
    2626
    2727#include "bits/signal.hfa"
     28#include "kernel_private.hfa"
    2829
    2930#if !defined(__CFA_DEFAULT_PREEMPTION__)
     
    6061#error unknown hardware architecture
    6162#endif
     63
     64#warning duplicated in startup.cfa
     65#define KERNEL_STORAGE(T,X) __attribute((aligned(__alignof__(T)))) static char storage_##X[sizeof(T)]
    6266
    6367KERNEL_STORAGE(event_kernel_t, event_kernel);         // private storage for event kernel
     
    293297// Startup routine to activate preemption
    294298// Called from kernel_startup
    295 void kernel_start_preemption() {
     299void __kernel_alarm_startup() {
    296300        __cfaabi_dbg_print_safe( "Kernel : Starting preemption\n" );
    297301
     
    315319// Shutdown routine to deactivate preemption
    316320// Called from kernel_shutdown
    317 void kernel_stop_preemption() {
     321void __kernel_alarm_shutdown() {
    318322        __cfaabi_dbg_print_safe( "Kernel : Preemption stopping\n" );
    319323
Note: See TracChangeset for help on using the changeset viewer.