[hatari-devel] Boot from hard disk *unchecked* |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] Boot from hard disk *unchecked*
- From: Vincent Rivière <vincent.riviere@xxxxxxxxxxx>
- Date: Mon, 15 Jul 2019 22:25:59 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=yg5dIB0PehbXPq3ipC28UUESyUROEakZDVrFB+Wug+I=; b=jovlFwKD6i+T+arg/fvI+HApt42q04Hd8bZtAryADIHoXpZS/LOv3x2hh0FSvtapGA O3+Hg3SeWFpM/T8PFjOjPHdY1yJ720Obdf1Y8caZc7yYDKjATBwMdwXNiVCKk85wC1XZ ZRTszMug6XtJ4nlmh2iQv/js45Yej4FSYZUhanh1BYLn1TF7YrwUPHtkd3z/kZu4+5/J WsXrij+g7Qsq0novPJbPlSWcJ2Rpk99GxH48Ki9gNMkvEExiESiYnhH6l0CHYmi3pLj8 JmnfSWjnQT5gVXJ/31w98ndyTyJjv4Qyab5q/wWO4RXpRheeQdCOYnZqbUuFeeXWp8ZO wShA==
Hi,
I noticed that Hatari's "Boot from hard disk" option does not work with
EmuTOS when unchecked. In other words, when both floppy and hard disk are
present, and "Boot from hard disk" is unchecked, then it still boots from
C:. On the other hand, it works as expected with TOS.
I looked in Hatari sources, and found that in stMemory.c, function
STMemory_SetDefaultConfig():
/* Set TOS floppies */
STMemory_WriteWord(0x446, nBootDrive); /* Boot up on A(0) or C(2) */
As I understand, that code is called before running the ROM. But on cold
boot, the RAM contents will not be trusted by the OS. So I can't understand
how this can have any effect on TOS.
Any hint will be welcome to make that feature compatible with EmuTOS.
--
Vincent Rivière