In answer to the comment: /* XXX is it OK to block here? */, the answer

is definately NO! as we are in interrupt context and malloc() does a
KASSERT() to be sure.
This commit is contained in:
Peter Wemm 2001-01-23 09:43:23 +00:00
parent 9715c87b3b
commit 9f3e2250ca

View File

@ -64,8 +64,9 @@ AcpiOsQueueForExecution(UINT32 Priority, OSD_EXECUTION_CALLBACK Function, void *
if (Function == NULL)
return(AE_BAD_PARAMETER);
/* XXX is it OK to block here? */
at = malloc(sizeof(*at), M_ACPITASK, M_WAITOK);
at = malloc(sizeof(*at), M_ACPITASK, M_NOWAIT); /* Interrupt Context */
if (at == NULL)
return(AE_NO_MEMORY);
bzero(at, sizeof(*at));
at->at_function = Function;