MagicMac

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

nagual
Captain Atari
Captain Atari
Posts: 401
Joined: Mon Sep 11, 2006 10:15 am

MagicMac

Postby nagual » Fri Sep 20, 2019 1:38 pm

Is it possible run MagicMac on OSX Mojave, High Sierra or similar, but newer OSX versions - iMAc 27, i5, 8GB RAM, OSX High Sierra ?
What have I need, except Mac, of course:-)

And where I can found binary ready to install (if any) ?


Cheers! :cheers:

penguin
Captain Atari
Captain Atari
Posts: 184
Joined: Tue Dec 24, 2013 10:43 am

Re: MagicMac

Postby penguin » Fri Sep 20, 2019 5:02 pm

No, it's not possible. You'd need the free successor AtariX (https://gitlab.com/AndreasK/AtariX). AtariX is however a 32 bit application, I use it with macOS Mojave which is the last macOS version to support 32 bit apps.
AtariUpToDate - Atari ST/TT/Falcon software database and version tracker: http://www.atariuptodate.de
st-computer magazine - https://st-computer.atariuptodate.de/

nagual
Captain Atari
Captain Atari
Posts: 401
Joined: Mon Sep 11, 2006 10:15 am

Re: MagicMac

Postby nagual » Fri Sep 20, 2019 8:20 pm

penguin wrote:No, it's not possible. You'd need the free successor AtariX (https://gitlab.com/AndreasK/AtariX). AtariX is however a 32 bit application, I use it with macOS Mojave which is the last macOS version to support 32 bit apps.


Thank you for quick response:-)

Just another question - AtariX.app.zip is binary to run ?


Cheers! :cheers:

User avatar
AtariCrypt
Captain Atari
Captain Atari
Posts: 389
Joined: Fri Mar 14, 2014 5:04 pm
Location: Lancashire, England
Contact:

Re: MagicMac

Postby AtariCrypt » Sat Sep 21, 2019 12:01 pm

penguin wrote:No, it's not possible. You'd need the free successor AtariX (https://gitlab.com/AndreasK/AtariX). AtariX is however a 32 bit application, I use it with macOS Mojave which is the last macOS version to support 32 bit apps.


That is brilliant. It just works and really good too. Oh, and my Mac is way too old to worry about this impending 64-bit doom! :D

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 813
Joined: Sun Aug 03, 2014 5:54 pm

Re: MagicMac

Postby ThorstenOtto » Sat Sep 21, 2019 12:59 pm

The problem is that you wont even be able to compile a new version of AtariX on newer Macs. But it won't be easy to fix that.

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1758
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: MagicMac

Postby frank.lukas » Sat Sep 21, 2019 4:31 pm

Sad, not have a AtariX 64bit clean.
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

penguin
Captain Atari
Captain Atari
Posts: 184
Joined: Tue Dec 24, 2013 10:43 am

Re: MagicMac

Postby penguin » Sat Sep 21, 2019 9:52 pm

The saddest part is that AtariX is the only emulator that actually manages to "catch" the mouse pointer without having to press a keyboard shortcut.
AtariUpToDate - Atari ST/TT/Falcon software database and version tracker: http://www.atariuptodate.de
st-computer magazine - https://st-computer.atariuptodate.de/

SteveBagley
Captain Atari
Captain Atari
Posts: 178
Joined: Mon Jan 21, 2013 9:31 am

Re: MagicMac

Postby SteveBagley » Sun Sep 22, 2019 9:05 am

ThorstenOtto wrote:The problem is that you wont even be able to compile a new version of AtariX on newer Macs. But it won't be easy to fix that.


I managed early in the year to get a version the compiles and runs in 64-bit up to a point… I got it to boot the kernel and run up until it tried to load the screen drivers…

From memory, the first problem is that AtariX/MagicMac store pointers to Mac functions inside the Atari memory space, and assumes that these are 32-bit in size, which in 64-bit mode they aren’t and so it ends up overwriting part of the Magic kernel in the atari address space. This is reasonably easy to fix: create and array of function pointers to the relevant functions and then post 32-bit integers into the atari address space and modify the routine that calls the functions.

The second problem is that file access heavily relies FSSpec and other Carbon APIs that no longer exist in 64-bit MacOS, worse it posts the 32-bit pointers to the FSSpec into the Atari address space which are then used the by the XFS to perform file access (by passing the pointer back out of Atari space into the Mac address space). I started trying to wrap file access in a manner that could be passed into the Atari space but it became clear that to do it sensibly and reliably would require rewriting the XFS on the Atari side as well. At which point, other things got in the way and I haven’t had chance to look at it in a while. I see you’ve managed to get the MagiC kernel building, so it might be easier to replace the XFS now…

Steve

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 813
Joined: Sun Aug 03, 2014 5:54 pm

Re: MagicMac

Postby ThorstenOtto » Sun Sep 22, 2019 12:25 pm

SteveBagley wrote:I managed early in the year to get a version the compiles and runs in 64-bit up to a point…


That is not the real problem, as long as the kernel also allows to run 32bit binaries. I've also already compiled it, and cleaned it up a bit, see https://github.com/th-otto/MagicMac and https://github.com/th-otto/AtariX. But it is exactly the 32bit support that will be dropped in the next major release of macOS.

I got it to boot the kernel and run up until it tried to load the screen drivers…


Yes, there is a mismatch in the original archives on gitlab. The mvdi drivers use a newer interface than AtariX expects. That is already fixed in the repos linked above.

This is reasonably easy to fix: create and array of function pointers to the relevant functions


That won't work. The ABI is different, the called functions need also some parameters, and the magicmac kernel cannot know whether it is running on 32bit OS or not. But luckily for the relevant parts there seems to be enough space to store 64bit pointers there.

The second problem is that file access heavily relies FSSpec and other Carbon APIs that no longer exist in 64-bit MacOS,


Yes, that is the major problem. You already get ~200 warnings about using deprecated functions when compiling on macOS 10.12. But it still works.


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 6 guests