lkml.org 
[lkml]   [2002]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.5.12] x86 Boot enhancements, 32bit entries 6/11
Hi!

> This patch cleans up the 32bit kernel entry points so they don't
> assume who their caller is, making them usable by other than setup.S
>
> For arch/i386/kernel/head.S this untangles the secondary cpu and the bootstrap
> entry points making the code more readable.

Hmm, but making variables called eax, ebx, ... is surely going to confuse
someone. What about bootup_eax, .. ?

> + /*
> + * Save the initial registers
> + */
> + movl %eax, eax
> + movl %ebx, ebx
> + movl %ecx, ecx
> + movl %edx, edx
> + movl %esi, esi
> + movl %edi, edi
> + movl %esp, esp
> + movl %ebp, ebp
> +
> + /*
> + * Setup the stack
> + */
> + movl stack_start, %esp
Pavel
--
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.096 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site