InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   10.6.6 legacy kernel for INTEL/AMD 32+64bit ready to download (http://infinitemac.com/showthread.php?t=6892)

andyvand 09-03-2011 11:58 AM

Quote:

Originally Posted by kocoman (Post 55359)
I tried it but it give me kernel panic, and does not give me a backtrace..

how to debug the problem..

http://img832.imageshack.us/img832/6962/unled2ix.th.png

Uploaded with ImageShack.us

Damn... the problem is in the new SSE3 emulator...
0xFFFF0001 is 2nd instruction of the SSE3 emulator...
Guess I'll also need to modify the trap handler to fix this. :-|:-|

kocoman 09-12-2011 03:28 AM

Quote:

Originally Posted by andyvand (Post 55363)
Damn... the problem is in the new SSE3 emulator...
0xFFFF0001 is 2nd instruction of the SSE3 emulator...
Guess I'll also need to modify the trap handler to fix this. :-|:-|

Are there plans to fix this?

andyvand 09-12-2011 07:08 AM

Quote:

Originally Posted by kocoman (Post 55452)
Are there plans to fix this?

Yes, I'll need to study any screenshots you can give me of this.
It may help me put an override on the trap handler.

kocoman 09-13-2011 07:36 AM

Quote:

Originally Posted by andyvand (Post 55453)
Yes, I'll need to study any screenshots you can give me of this.
It may help me put an override on the trap handler.

running "-s" is fine (no panic), so I thought it was some .kext problem

"-x", panics

Also it always fsck (take long time) every time I hard reboot the computer

Sometimes it would keep repeat many times the last 2 lines of the panic message, then reboot. But it never says the what the offending program is.

So I think this sse3emu is completely different than the XNU one?

I used to look at an Pentium Pro EMU that the Pentium did not have in Linux.. I forgot what it was now.. but it similar to the sse3emu problem

andyvand 09-13-2011 12:15 PM

Quote:

Originally Posted by kocoman (Post 55460)
running "-s" is fine (no panic), so I thought it was some .kext problem

"-x", panics

Also it always fsck (take long time) every time I hard reboot the computer

Sometimes it would keep repeat many times the last 2 lines of the panic message, then reboot. But it never says the what the offending program is.

So I think this sse3emu is completely different than the XNU one?

I used to look at an Pentium Pro EMU that the Pentium did not have in Linux.. I forgot what it was now.. but it similar to the sse3emu problem

Try my 10.6.8 kernel.
It shouldn't have this issue... ;)

kocoman 10-03-2011 03:07 PM

Quote:

Originally Posted by andyvand (Post 55466)
Try my 10.6.8 kernel.
It shouldn't have this issue... ;)

I did use the 10.6.8 AnV v0.4.1 you posted at the other thread here already, and the screenshot in the few last message was the result..

did you make changes to the 0.4.1 ?

kocoman 10-13-2011 04:52 AM

Slice made a comment about the SSE3 problem at InsanelyMac

. SSE3 emulator implementation is wrong. The new emulator occupies 2 pages while you allocated only one.

CODE
+ printf("Enabling SSE3 emulator...");
+ /* Install into commpage. Actual patching of master_idt happens in start.s */
+ /* ASSERT(sse3emu_size == PAGE_SIZE); */
+ commpage_stuff2(_COMM_PAGE_SSE3EMU, &sse3emu_data, sse3emu_size, TRUE);
+ printf("done.\n");
Should be like
CODE
if (!(_cpu_capabilities & kHasSSE3)) {
printf("enabling %s emulator...", "SSE3");
// Install into commpage. Actual patching of master_idt happens elsewhere

commpage_stuff2(_COMM_PAGE_SSE2EMU, &sse3emu_ffff4000, sizeof(sse3emu_ffff4000), legacy);
commpage_stuff2(_COMM_PAGE_SSE2EMU2, &sse3emu_ffff5000, sizeof(sse3emu_ffff5000), legacy);
printf("OK!\n");
}

andyvand 10-13-2011 02:09 PM

Quote:

Originally Posted by kocoman (Post 55629)
Slice made a comment about the SSE3 problem at InsanelyMac

. SSE3 emulator implementation is wrong. The new emulator occupies 2 pages while you allocated only one.

CODE
+ printf("Enabling SSE3 emulator...");
+ /* Install into commpage. Actual patching of master_idt happens in start.s */
+ /* ASSERT(sse3emu_size == PAGE_SIZE); */
+ commpage_stuff2(_COMM_PAGE_SSE3EMU, &sse3emu_data, sse3emu_size, TRUE);
+ printf("done.\n");
Should be like
CODE
if (!(_cpu_capabilities & kHasSSE3)) {
printf("enabling %s emulator...", "SSE3");
// Install into commpage. Actual patching of master_idt happens elsewhere

commpage_stuff2(_COMM_PAGE_SSE2EMU, &sse3emu_ffff4000, sizeof(sse3emu_ffff4000), legacy);
commpage_stuff2(_COMM_PAGE_SSE2EMU2, &sse3emu_ffff5000, sizeof(sse3emu_ffff5000), legacy);
printf("OK!\n");
}

Tried that allready.
It panics on the following instruction at 0xFFFF4001 -> lock inc %eax.
Old kernel checks which SSE3 emulator is requested...

chitchit 10-26-2011 04:18 AM

Has any progress been made on the emulator?

I'd be interested in getting SL on my lappy!