Microblaze init port - Kernel

This is a discussion on Microblaze init port - Kernel ; On Jan 24 2008 16:02, monstr@monstr.eu wrote: >+ >+ /* >+ * copy from fs while checksumming, otherwise like csum_partial >+ */ >+ That comment got messed up. Also, does any other CPU than x86 have a %ds and %fs ...

+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 41 to 42 of 42

Thread: Microblaze init port

  1. Re: [PATCH 17/52] [microblaze] checksum support


    On Jan 24 2008 16:02, monstr@monstr.eu wrote:
    >+
    >+ /*
    >+ * copy from fs while checksumming, otherwise like csum_partial
    >+ */
    >+


    That comment got messed up. Also, does any other CPU than x86
    have a %ds and %fs register?

    If it copies directly from user context, a __user annotation would be
    helpful.

    >+unsigned int
    >+csum_partial_copy_from_user(const char *src, char *dst, int len, int sum,
    >+ int *csum_err)
    >+{
    >+ if (csum_err)
    >+ *csum_err = 0;
    >+ memcpy(dst, src, len);
    >+ return csum_partial(dst, len, sum);
    >+}
    >+
    >+/*
    >+ * copy from ds while checksumming, otherwise like csum_partial
    >+ */


    Ditto.

    >+
    >+unsigned int
    >+csum_partial_copy(const char *src, char *dst, int len, int sum)
    >+{
    >+ memcpy(dst, src, len);
    >+ return csum_partial(dst, len, sum);
    >+}
    >diff --git a/include/asm-microblaze/checksum.h b/include/asm-microblaze/checksum.h
    >new file mode 100644
    >index 0000000..4b37bb5
    >--- /dev/null
    >+++ b/include/asm-microblaze/checksum.h

    --
    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/

  2. Re: [microblaze-uclinux] RE: [PATCH 24/52] [microblaze] time support

    OK.

    I will wait for it.


    Michal

    >
    > There's also a pretty stupid one in the tree at git.xilinx.com.
    >
    > Steve
    >
    > -----Original Message-----
    > From: John Williams [mailto:john.williams@petalogix.com]
    > Sent: Thu 2/21/2008 6:13 AM
    > To: monstr@monstr.eu
    > Cc: linux-kernel@vger.kernel.org; Stephen Neuendorffer;
    > microblaze-uclinux@itee.uq.edu.au
    > Subject: Re: [PATCH 24/52] [microblaze] time support
    >
    > Hi Michal,
    >
    > monstr@monstr.eu wrote:
    >
    >
    >> --- /dev/null
    >> +++ b/include/asm-microblaze/delay.h
    >> @@ -0,0 +1,28 @@
    >> +/*
    >> + * include/asm-microblaze/delay.h
    >> + *

    >
    >> +
    >> +static inline void udelay(unsigned long usec)
    >> +{
    >> +}

    >
    > We need a proper udelay implementation. I've got a semi-reasonable one
    > in a private branch somewhere, will dig it out and send it to you.
    >
    > Cheers,
    >
    > John
    >
    >
    >
    >
    > ------------------------------------------------------------------------
    >
    > No virus found in this incoming message.
    > Checked by AVG Free Edition.
    > Version: 7.5.516 / Virus Database: 269.21.3/1306 - Release Date: 1.3.2008 05:41

    --
    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/

+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3