* 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:
parent
ee5d8bd0a8
commit
7a2d0c5e92
@ -1270,8 +1270,10 @@ atom_asic_init(atom_context *ctx)
|
||||
void
|
||||
atom_destroy(atom_context *ctx)
|
||||
{
|
||||
if (ctx != NULL)
|
||||
if (ctx != NULL) {
|
||||
free(ctx->iio);
|
||||
delete_sem(ctx->exec_sem);
|
||||
}
|
||||
|
||||
free(ctx);
|
||||
}
|
||||
|
@ -100,9 +100,6 @@ radeon_init_bios(uint8* bios)
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
atom_asic_init(gAtomContext);
|
||||
// Post card
|
||||
|
||||
if ((gAtomContext->exec_sem = create_sem(1, "AtomBIOS_exec"))
|
||||
< B_NO_ERROR) {
|
||||
TRACE("%s: couldn't create semaphore for AtomBIOS exec thread!\n",
|
||||
@ -110,6 +107,9 @@ radeon_init_bios(uint8* bios)
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
atom_asic_init(gAtomContext);
|
||||
// Post card
|
||||
|
||||
radeon_bios_init_scratch();
|
||||
|
||||
return B_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user