* lets not make AtomBIOS calls until our
semaphore is created :) * delete semaphore on AtomBIOS destroy git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42590 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1270,8 +1270,10 @@ atom_asic_init(atom_context *ctx)
|
|||||||
void
|
void
|
||||||
atom_destroy(atom_context *ctx)
|
atom_destroy(atom_context *ctx)
|
||||||
{
|
{
|
||||||
if (ctx != NULL)
|
if (ctx != NULL) {
|
||||||
free(ctx->iio);
|
free(ctx->iio);
|
||||||
|
delete_sem(ctx->exec_sem);
|
||||||
|
}
|
||||||
|
|
||||||
free(ctx);
|
free(ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,9 +100,6 @@ radeon_init_bios(uint8* bios)
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
atom_asic_init(gAtomContext);
|
|
||||||
// Post card
|
|
||||||
|
|
||||||
if ((gAtomContext->exec_sem = create_sem(1, "AtomBIOS_exec"))
|
if ((gAtomContext->exec_sem = create_sem(1, "AtomBIOS_exec"))
|
||||||
< B_NO_ERROR) {
|
< B_NO_ERROR) {
|
||||||
TRACE("%s: couldn't create semaphore for AtomBIOS exec thread!\n",
|
TRACE("%s: couldn't create semaphore for AtomBIOS exec thread!\n",
|
||||||
@@ -110,6 +107,9 @@ radeon_init_bios(uint8* bios)
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
atom_asic_init(gAtomContext);
|
||||||
|
// Post card
|
||||||
|
|
||||||
radeon_bios_init_scratch();
|
radeon_bios_init_scratch();
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user