lkml.org 
[lkml]   [2008]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: FRV/ARM unaligned access question
From
Date
On Wed, 2008-10-08 at 12:16 +0100, David Howells wrote:
> Harvey Harrison <harvey.harrison@gmail.com> wrote:
>
> Switching to the packed struct algorithms also reduces the kernel size very
> slightly. Before:
>
> warthog>size vmlinux
> text data bss dec hex filename
> 2207836 66588 150189 2424613 24ff25 vmlinux
>
> After:
>
> warthog>size vmlinux
> text data bss dec hex filename
> 2207804 66588 150189 2424581 24ff05 vmlinux

Probably smaller as now the le values aren't being byteswapped anymore,
only the native endianess can use the struct version. Care to look at
the kernel size with the following instead?

From: Harvey Harrison <harvey.harrison@gmail.com>
Subject: [PATCH] frv: switch unaligned access to the packed-struct implementation

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
include/asm-frv/unaligned.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-frv/unaligned.h b/include/asm-frv/unaligned.h
index 839a2fb..6c61c05 100644
--- a/include/asm-frv/unaligned.h
+++ b/include/asm-frv/unaligned.h
@@ -13,7 +13,7 @@
#define _ASM_UNALIGNED_H

#include <linux/unaligned/le_byteshift.h>
-#include <linux/unaligned/be_byteshift.h>
+#include <linux/unaligned/be_struct.h>
#include <linux/unaligned/generic.h>

#define get_unaligned __get_unaligned_be
--
1.6.0.2.471.g47a76




\
 
 \ /
  Last update: 2008-10-08 22:25    [W:0.114 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site