Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2007 11:15:28 +0100
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        freebsd-arm@freebsd.org
Cc:        Bernd Walter <ticso@cicely12.cicely.de>
Subject:   memcpy limitation
Message-ID:  <20070111101528.GV80390@cicely12.cicely.de>

next in thread | raw e-mail | index | archive | help
I get a sigbus with the following:
#0  0x00033158 in $a () at lcp.c:939
939           memcpy(&req, opt, sizeof req);
(gdb) print req
$1 = {hdr = {id = 0 '\0', len = 0 '\0'}, proto = 0, period = 0}
(gdb) print &req
$2 = (struct lqrreq *) 0xbfffe4a0
(gdb) print opt
$3 = (struct fsm_opt *) 0xbfffe5b6

Shouldn't memcpy work with any alignment?

-- 
B.Walter                http://www.bwct.de      http://www.fizon.de
bernd@bwct.de           info@bwct.de            support@fizon.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070111101528.GV80390>