Message ID | 20131209221251.GA5135@morn.localdomain |
---|---|
State | New |
Headers | show |
--- a/vgasrc/vgaentry.S +++ b/vgasrc/vgaentry.S @@ -97,12 +97,9 @@ entry_10_extrastack: movl %ecx, BREGS_ecx(%eax) movw %es, BREGS_es(%eax) movl %esp, BREGS_size+0(%eax) - movzwl %sp, %esp movw %ss, BREGS_size+4(%eax) - movl (%esp), %edx - movl %edx, BREGS_code(%eax) - movw 4(%esp), %dx - movw %dx, BREGS_flags(%eax) + popl BREGS_code(%eax) + popw BREGS_flags(%eax) movw %ds, %dx // Setup %ss/%esp and call function movw %dx, %ss