190 likes | 370 Views
Mac and Intel. The Merge. Introduction. http://www.apple.com/intel/ads/ Every Apple computer will come with an Intel Core Duo inside New core processor = new computer What about the Mac OS X under a new core?. Introduction. Answer: Look at the Core Processor (Eder)
E N D
Mac and Intel The Merge
Introduction • http://www.apple.com/intel/ads/ • Every Apple computer will come with an Intel Core Duo inside • New core processor = new computer • What about the Mac OS X under a new core?
Introduction • Answer: • Look at the Core Processor (Eder) • Look at Mac OS X (Jared)
What makes a computer tick? • The processor is a set of instructions that can be addressed by the OS • Each processor requires a specific system architecture to work: the motherboard
G5 90 nm transistor 64 bit IBM Instruction RISC Intel 65 nm transistor 32 bit G5 (IBM) vs Intel Core Duo
BLNV Branch with Link NeVer BLEQ Branch with Link if EQual SWI "OS_DoSomethingOrOther" ; call the SWI MVNVS R0, #0 ; If failed, set R0 to -1 MOVVC R0, #0 ; Else set R0 to 0 The RISC processor From http://www.heyrick.co.uk/assembler/riscvcisc.html
G5 90 nm transistor 64 bit IBM Instruction RISC Intel 65 nm transistor 32 bit Intel Instruction set + 13 CISC and RISC G5 (IBM) and Intel core duo
JA Jump if Above JAE Jump if Above or Equal JB Jump if Below JPO Jump if Parity Odd JS Jump if Sign JZ Jump if Zero INT $...whatever... ; call the interrupt CMP AX, 0 ; did it return zero? JE failed ; if so, it failed, jump to fail code MOV DX, 0 ; else set DX to 0 Return RET ; and return failed MOV DX, 0FFFFH ; failed - set DX to -1 JMP return The CISC processor RISC • SWI "OS_DoSomethingOrOther" ; call the SWI • MVNVS R0, #0 ; If failed, set R0 to -1 • MOVVC R0, #0 ; Else set R0 to 0 From http://www.heyrick.co.uk/assembler/riscvcisc.html
G5 90 nm transistor 64 bit IBM Instruction RISC Intel 65 nm transistor 32 bit Intel Instruction set + 13 CISC and RISC http://www.intel.com/products/processor/coreduo/smartcache.htm A new deep sleep state G5 (IBM) and Intel core duo
The bottom line • The Mac basically has become a PC • Or has it? • It is just a box with a set of instructions that need an OS to be controlled • Maybe a new Mac OS • Maybe Linux • Maybe Windows
The OS X kernel: XNU – “X is Not Unix” Hybrid Kernel design – both Monolithic and Microkernel Based on the Mach (developed at Carnegie Mellon University) and BSD kernels. Uses the I/O Kit device driver framework
Mach Features • Kernel threads • Processes • Pre-emptive multitasking • Message-passing (used in IPC) • Protected memory • Virtual memory management • Very soft real-time support • Kernel debugging support • Console I/O
BSD Features • POSIX API (BSD system calls) • Unix process model atop Mach tasks • basic security policies • user and group ids • Permissions • the network stack • the virtual file system code • cryptographic framework • System V IPC
I/O Kit Driver Framework, written in a subset of C++ Drivers can be written quickly, using less code The I/O Kit is multi-threaded, SMP safe, and allows for hot pluggable devices and automatic, dynamic device configuration
Where are we now? April 3rd, 2006: OS X 10.4.6 – Tiger August 2006: OSX 10.5 -Leopard
Transfer to x86 Rosetta • “The most amazing software you’ll never see” Universal Software • Includes dual binaries
Macs take over the world! Boot Camp • For Core Duo Macs • Allows you to install Windows XP / Vista on a Mac! • Retrives Drivers from the Mac