Skip to content

Commit

Permalink
Fix HDS boot drive setting
Browse files Browse the repository at this point in the history
  • Loading branch information
yunkya2 committed Oct 21, 2023
1 parent 528f99f commit e72955e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions driver/scsiremote.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,14 @@ int com_init(struct dos_req_header *req)
#endif
DPRINTF1("Debug level: %d\r\n", debuglevel);

#ifdef CONFIG_BOOTDRIVER
/* SCSI ROM のデバイスドライバ組み込み処理から渡される値
*「何番目のパーティションから起動するか」を Human68k のドライバ初期化処理に返す
* この値に基づいてどのドライブから起動するか (CONFIG.SYSをどのドライブから読むか) が決まる
*/
extern uint8_t bootpart;
*(char *)&req->fcb = bootpart;
#endif

return unit;
}

0 comments on commit e72955e

Please sign in to comment.