Jump to content
1 post in this topic

Recommended Posts

Hi Fellas, hows everything?

 

I've been playing around with the different patches and was trying to remove the dreadful 64 core limit in the kernel.

 

Replacing 4883f93f with 4883f98f works until the crush on the AppleACPI, from what I can see this pattern:

ffffff80003f91a6	48 83 f9 3f 	cmpq	$0x3f, %rcx
found in 38 places in the kernel.

 

My question is, can any of you help me with figuring out how to change the 3f in this:

ffffff80003f91a6	cmpq	$0x3f, %rcx
_ml_init_max_cpus:ffffff80003f9180	pushq	%rbpffffff80003f9181	movq	%rsp, %rbpffffff80003f9184	pushq	%r14ffffff80003f9186	pushq	%rbxffffff80003f9187	subq	$0x10, %rspffffff80003f918b	pushfqffffff80003f918c	popq	%rbxffffff80003f918d	andq	$0x200, %rbxffffff80003f9194	je	0xffffff80003f9197ffffff80003f9196	cliffffff80003f9197	movl	0x6fe11b(%rip), %eaxffffff80003f919d	cmpl	$0x1, %eaxffffff80003f91a0	je	0xffffff80003f91f8ffffff80003f91a2	leaq	-0x1(%rdi), %rcxffffff80003f91a6	cmpq	$0x3f, %rcxffffff80003f91aa	ja	0xffffff80003f91beffffff80003f91ac	movl	_max_ncpus(%rip), %ecxffffff80003f91b2	cmpq	%rdi, %rcxffffff80003f91b5	cmovbel	%ecx, %ediffffff80003f91b8	movl	%edi, 0x66df8a(%rip)ffffff80003f91be	cmpl	$0x2, %eaxffffff80003f91c1	jne	0xffffff80003f91eeffffff80003f91c3	leaq	0x6fe0ee(%rip), %r14ffffff80003f91ca	movq	%r14, -0x18(%rbp)ffffff80003f91ce	leaq	-0x18(%rbp), %rdiffffff80003f91d2	movl	$0x8, %esiffffff80003f91d7	callq	__global_eventqffffff80003f91dc	xorl	%edx, %edxffffff80003f91de	movl	$0xffffffff, %ecxffffff80003f91e3	movq	%rax, %rdiffffff80003f91e6	movq	%r14, %rsiffffff80003f91e9	callq	_waitq_wakeup64_allffffff80003f91ee	movl	$0x1, 0x6fe0c0(%rip)ffffff80003f91f8	pushfqffffff80003f91f9	popq	%raxffffff80003f91fa	testq	%rbx, %rbxffffff80003f91fd	jne	0xffffff80003f9207ffffff80003f91ff	testb	$0x2, %ahffffff80003f9202	je	0xffffff80003f9225ffffff80003f9204	cliffffff80003f9205	jmp	0xffffff80003f9225ffffff80003f9207	stiffffff80003f9208	nopffffff80003f9209	cmpl	$0x0, %gs:0x18ffffff80003f9212	jne	0xffffff80003f9225ffffff80003f9214	movq	%gs:0x0, %raxffffff80003f921d	testb	$0x4, 0x58(%rax)ffffff80003f9221	je	0xffffff80003f9225ffffff80003f9223	int	$0xffffffff80003f9225	addq	$0x10, %rspffffff80003f9229	popq	%rbxffffff80003f922a	popq	%r14ffffff80003f922c	popq	%rbpffffff80003f922d	retqffffff80003f922e	nop

Here is the panic

 

e766ebe9823e199fae11b23bd00dabfc.jpg

Link to comment
https://www.insanelymac.com/forum/topic/324257-sierra-and-more-then-64-cores/
Share on other sites

×
×
  • Create New...