Re: Mac-on-Linux

2 messages, 2 authors, 1999-05-23 · open the first message on its own page

Re: Mac-on-Linux

From: Samuel Rydh <hidden>
Date: 1999-05-22 17:37:19

On Fri, May 21, 1999 at 09:35:21PM -0500, David A. Gatwood wrote:

Quick question: what is the nature of the kernel support for mac-on-linux? 
Some folks in the MkLinux camp have been discussing writing equivalent
2.0.xx kernel code that works through mach.  I know that it will likely
need to be able to map the ROMs into user space.  I also suspect that
handling code (which could be very messy, but we'll cross that bridge when
we get to it) and possibly the memory management code.  Beyond that, what
other hurdles are there?
The Mac-on-Linux kernel support code has in principle the following 
tasks:

  - Emulate privileged instructions.
  - Handle the MMU (maps ROM, RAM etc.)

The implementation is primarily based upon hooks in the
low-level exception handlers. Besides this, the interaction
with the kernel has been kept at a minimum.

I believe the exception hooks must be put into the
mach kernel - possibly it is easiest to put all code 
there.

/Samuel


----------------------------------------------------------
 E-mail [off-list ref]  WWW: <http://www.ibrium.se>
  Phone/fax: (home) +46 8 4418431, (work) +46 8 7908470   
----------------------------------------------------------

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

Re: Mac-on-Linux

From: David A. Gatwood <hidden>
Date: 1999-05-23 04:11:50

On Sat, 22 May 1999, Samuel Rydh wrote:
The Mac-on-Linux kernel support code has in principle the following 
tasks:

  - Emulate privileged instructions.
  - Handle the MMU (maps ROM, RAM etc.)

The implementation is primarily based upon hooks in the
low-level exception handlers. Besides this, the interaction
with the kernel has been kept at a minimum.

I believe the exception hooks must be put into the
mach kernel - possibly it is easiest to put all code 
there.
There would be advantages and disadvantages.  Speed-wise, it'd be great if
it were all in mach and if the mac-on-linux binary were mach aware,
detecting Mach's presense, and using direct calls into Mach. 
Simplicity-wise, we could stick an abstraction layer in there in the linux
server so that it mostly looked the same to mac-on-linux whether it was
running on LinuxPPC or MkLinux.  Not sure which would end up being the
most advantageous, but it's probably a moot point until the Mach handling
changes are made.  :-)


Later,
David

David A. Gatwood                         Visit globegate's internet
dgatwood@globegate.utm.edu                  talker, Deep Space 36
http://globegate.utm.edu                telnet globegate.utm.edu:9624


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help