Re: Amiga screen modes in wscons
David Brownlee <[email protected]> Sun, 12 Nov 2023 11:52:34 +0000
| Newsgroups | gmane.os.netbsd.ports.amiga |
|---|---|
| Message-ID | <CAGN_6pYbouLj_ChRjCVDeXy+A=o3r4dGyotq=cQXukK0nXsjkw@mail.gmail.com> |
On Sun, 12 Nov 2023 at 03:29, Carlos Mil=C3=A1n Figueredo <[email protected]> wrote: > > Hi Michael, > > I have been able to compile a WSCONS kernel changing the values of AGA sc= reenmodes, but indeed, it requires a lot of trial to get the right values. = Compiling a new kernel each time is really un-practical, so I understand wh= y patching is preferred. > If you have a fast cross build box the time to rebuild a new kernel with adjusted values is approximately nothing (though the time to copy to the Amiga and for it to reboot into it is very much not :) > From: [email protected] <[email protected]> on behalf= of Michael van Elst <[email protected]> > Sent: Saturday, November 11, 2023 0:11 > > > You should be able to use gdb -w to patch the binary. > > Using gdb I have been able to find the variables memory addresses, but I = have not been successful changing them: > > # gdb -w netbsd > (gdb) info variable AGA_htotal > 0x004635d4 pAGA_htotal > 0x00463536 AGA_htotal > (gdb) set {int}0x00463536 =3D 0x79 > Cannot access memory at address 0x00463536 > > What am I missing? Looking for a more general solution - the values could be optionally passed in at boot time from the bootloader, either as parameters or by reading from a boot.cfg file Actually - are these values which would make sense to be able to adjust dynamically at runtime - so via sysctl or ioctl the screenmode could be tweaked while running? David