On 05.02.2024 23:14, Ralf Quint via Freedos-devel wrote:

Sorry, was just confused as to why all the sudden this was brought up.

No one was harmed :-) I wanted to explain why I set DS to zero and probably went a bit off-topic by referring why the Watcom manual recommends it.

The longer I think about it the more I wonder if not setting DS to zero, what a "good" value for it would be when calling the BIOS. Random values are probably not a good idea. I do not think that there should be a distinction between "good" and "bad" memory corruptions. A memory corruption is by definition bad. But if there were a way for example the kernel to mitigate such BIOS bugs by choosing a "better" segment register, it should be worth a consideration. But I do not know what would be the side effects of choosing F000, for example. Eric brought brought me closer to this idea. F000 should most often be read-only, but could impose other problems.



_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to