[Top] [All Lists]

Re: [PATCH] Kill __bzero()

Subject: Re: [PATCH] Kill __bzero()
From: Atsushi Nemoto <>
Date: Mon, 05 Nov 2007 00:42:08 +0900 (JST)
In-reply-to: <>
Original-recipient: rfc822;
References: <>
On Sun, 04 Nov 2007 09:18:32 +0100, Franck Bui-Huu <> wrote:
>   2/ For the caller, it makes no difference to call memset instead
>   since it has to setup the second parameter of __bzero to 0.

__bzero() does not clobber v0 but memset() does.  I don't know if gcc
does some magical thing to protect v0, but it would be safer to add v0
explicitly to clobber-list of __clear_user().

Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>