diff --git a/src/as/asCa.c b/src/as/asCa.c index cacbe5b86..3c213e156 100644 --- a/src/as/asCa.c +++ b/src/as/asCa.c @@ -146,13 +146,15 @@ LOCAL void eventCallback(struct event_handler_args arg) LOCAL void asCaTask(void) { + static const int enablePreemption = 1; ASG *pasg; ASGINP *pasginp; CAPVT *pcapvt; int status; taskwdInsert(threadGetIdSelf(),NULL,NULL); - SEVCHK(ca_task_initialize(),"ca_task_initialize"); + SEVCHK(ca_context_create(enablePreemption), + "asCaTask calling ca_context_create"); SEVCHK(ca_add_exception_event(exceptionCallback,NULL), "ca_add_exception_event"); while(TRUE) {