From: "H. Peter Anvin" <hpa@zytor.com>
To: Denis Cheng <crquan@gmail.com>
Cc: Linux-Kernel@vger.kernel.org, cr_quan@163.com
Subject: Re: [PATCH] [arch/i386/boot]: for better readability in clearing BSS
Date: Sun, 26 Aug 2007 16:57:31 -0700 [thread overview]
Message-ID: <46D2136B.8010307@zytor.com> (raw)
In-Reply-To: <11880356722224-git-send-email-crquan@gmail.com>
Denis Cheng wrote:
>
> but their label names in .bss section are different,
> when reading these files, they are apt to confuse,
>
> this patch kept them in the same style of clearing.
>
Bullsh*t.
> diff --git a/arch/i386/boot/compressed/head.S b/arch/i386/boot/compressed/head.S
> index f35ea22..e499db0 100644
> --- a/arch/i386/boot/compressed/head.S
> +++ b/arch/i386/boot/compressed/head.S
> @@ -113,7 +113,7 @@ relocated:
> * Clear BSS
> */
> xorl %eax,%eax
> - leal _edata(%ebx),%edi
> + leal _bss(%ebx),%edi
> leal _end(%ebx), %ecx
> subl %edi,%ecx
> cld
Here you change _edata.._end into _bss.._end.
> diff --git a/arch/i386/boot/header.S b/arch/i386/boot/header.S
> index 7f4a2c5..cd074c1 100644
> --- a/arch/i386/boot/header.S
> +++ b/arch/i386/boot/header.S
> @@ -254,7 +254,7 @@ setup2:
>
> # Zero the bss
> movw $__bss_start, %di
> - movw $_end+3, %cx
> + movw $__bss_end, %cx
> xorl %eax, %eax
> subw %di, %cx
> shrw $2, %cx
Here you change __bss_start.._end to __bss_start..__bss_end, and have to
change the linker script for it not to break.
There is no consistency improvement, and as such, it's just churn.
-hpa
prev parent reply other threads:[~2007-08-26 23:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-25 9:54 [PATCH] [arch/i386/boot]: for better readability in clearing BSS Denis Cheng
2007-08-26 23:52 ` H. Peter Anvin
2007-08-26 23:57 ` H. Peter Anvin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46D2136B.8010307@zytor.com \
--to=hpa@zytor.com \
--cc=Linux-Kernel@vger.kernel.org \
--cc=cr_quan@163.com \
--cc=crquan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.