Skip to content

Commit

Permalink
dont think its this
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Sep 18, 2024
1 parent c4b2e77 commit 0458451
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/iopcore/cdvdman/device-bdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ void bdm_readSector(unsigned int lba, unsigned short int nsectors, unsigned char
{
DPRINTF("%s\n", __func__);

if (g_bd == NULL)
return;

WaitSema(bdm_io_sema);
g_bd->read(g_bd, lba, buffer, nsectors);
SignalSema(bdm_io_sema);
Expand All @@ -147,6 +150,9 @@ void bdm_writeSector(unsigned int lba, unsigned short int nsectors, const unsign
{
DPRINTF("%s\n", __func__);

if (g_bd == NULL)
return;

WaitSema(bdm_io_sema);
g_bd->write(g_bd, lba, buffer, nsectors);
SignalSema(bdm_io_sema);
Expand Down

0 comments on commit 0458451

Please sign in to comment.