[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Coldfire patches



This is perfectly possible and exactly this is used in hackintosh machines.  My AMD64 machine can't support certain instructions so the kernel has a built in code patcher that changes the instructions on the fly.  They also built manual patching tools as well.

Thanks,
Mark


On Jul 31, 2011, at 10:00 AM, Peter Slegg wrote:

> This idea might be totally unworkable but it just occurred
> to me so I thought I would share. It might be a non-issue.
> 
> Self-extracting archives used to be used to squeeze apps onto a floppy.
> Could a similar idea be used to create self-patching apps that run
> on 680x0 and Coldfire ?
> 
> I am mostly thinking about those op codes that can't be trapped.
> The app would be wrapped in the patcher that knows which bits to
> patch for Coldfire.
> 
> When the app is launched, the wrapper checks the cpu and if it is
> Coldfire, patches the app before running. For 680x0 it just runs.
> 
> This might make it easier to distribute one app for both m68 and Coldfire.
> 
> Regards,
> 
> Peter
> 
> 
> 
> 
>