Re: [hatari-devel] Handling of _drvbits |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Handling of _drvbits
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Sat, 12 Jul 2025 15:52:53 +0200
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1752328377; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=k1qmLe90D9tdjbA2/LNXZ8+AE6bcc/nYUksFdFVvKdk=; b=sl2MjHJUQA63r9zuqBnqJp//48xOL3TRjYYZVi4Fwrh3BBY1JnDkeHwuzJna76BmiU 0rBal9zcTrtTpd/cWoP6T+Nh72T50yE4E7xvduZxRGHaWe7Ep+noZVulqSchvyC1Xapz StfD1lMtMKToTaVRmuWVXMbSYdQSmKV1Rzc/pDuWUmksUe+KPCJqZAQa3MxmiAsDFM8n ND1k+jEnvxvPVcosM2WERGCUCXh/QZYplM4fnCcxlvv3UjUqRdd0Lhp4x5cXRSymgA2m alL7N7p4Nj04f8svrnU3ca2nMOWx80WfDDZ0HR7pCjc8mOAISeOl/sjbkcUBpei3yjby oTCw==
- Arc-seal: i=1; a=rsa-sha256; t=1752328377; cv=none; d=strato.com; s=strato-dkim-0002; b=aAzXCw36YAlrmpDkchv47raj+3zeZMa6DRPoa14VZSoap81E59wy+uA9ma2qp99AXH X1RuyG/mAajTvpR+4fU03fzLGiCtme+tKv1pAJ3z6ZyhlLtU6Mg3+lmWp6vz+kdiN6WH GXI9epHPNczIPrZn1q4Sn+wZ2dIsQUAz5vCrZxde98b9U1fyVVjgl1DyMb1uRrHyJIO7 qs3j9n3q22tCoyR2b6Mpd7iXnLpBDf+GIu9mm8zxFzcy6jQqjCLYNsIa+HvQsgIw+fKX RWIidaI3kDZ5XCs8aQzdsTf5rOubSe+OC2Ec7mjSPvQubs+jFj1rG8IQkg6PDlQ0ftq9 a05w==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1752328377; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=k1qmLe90D9tdjbA2/LNXZ8+AE6bcc/nYUksFdFVvKdk=; b=QaSnR5VsBLtBYq+dHeO+tgys0s7OQNSnfSOsSYuptCbsdfYca3PUEwwefPqpoODcfD E2TVPkQNObtHQWQ4rlVUd/Px/Lmcjh7tFBIahaRFeqZYD8n80wZ/dbiz9ThLzCErUMIS XdOaASTYkWKC5f0yZFzCf4A4UudJx6VNCC7Iah/MMxYTTCNpg9AU1IYGkw4HSzJkCO1C 5/tnh/3JnqZIPpPs3K2CQorhZCNd23NlsZ33iax6TB7ZXW9SCL2XCUQoCBsiQRq+VUC1 pUML1UEi0MzeYaRWhhN8ZCUnUEYVLpVt9WiLPCTrsw4bJliyjGvcuWA4Raev6z9RacKx Attw==
- Dkim-signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1752328377; s=strato-dkim-0003; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=k1qmLe90D9tdjbA2/LNXZ8+AE6bcc/nYUksFdFVvKdk=; b=lvuS4m01/yjUu2uqzBB4qgXIHOQmwMuig50bGBrteqXbJhWFpikyxJeDRvYYN23eqG IEZTLgt8oJasxsAWCCCw==
> FWIW, that's what I recall from former times: TOS clears the variable at
> one point during startup, that's why we have to set it again via
> OpCode_SysInit().
>
> If you want to use GEMDOS harddisk partitions together with a hard disk
> driver, you're better off using letters from the end of the alphabet for
> your GEMDOS partitions.
In my case there is no need for this work-around, because with Hatari I
launch HDDRIVER from the AUTO folder of drive C:, not from an image. When
configured accordingly, HDDRIVER does not overwrite existing GEMDOS drive
IDs, but assigns the image partitions starting with the first unused drive
in _drvbits. So GEMDOS drives are always first, regardless of the partitions
on any images present.
What I was wondering is why this does not work when booting HDDRIVER from
an image. My guess is that at the time TOS loads the hard disk driver
_drvbits is still empty, so that HDDRIVER assigns partitions starting with C:.
Hatari sets its GEMDOS drive bits later and overwrites _drvbits
unconditionally.
I just wanted to know if somebody can confirm this behavior of TOS/Hatari.
Best regards
Uwe