Skip to contentSkip to conversation

cpm_dpalloc

DISCUSSION [email protected] 2 participants 2 messages Jul 31, 2006

lore
Share & tools
lore
#0 lore raw

Hi All

I have a MPC82xx Processor from Freescale with Linux 2.6.14 ( Can´t chance to an new version).

My Problem is that I want to allocate a 64byte of memory in the dual ported ram with an alignment of 64bytes. (Needed for SPI Parameter Ram)

the funktion cpm_dpalloc(64,64) returned 0x220 but that are not in a 64 byte alignment.

Regards
Fred

Signature · 2 lines
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
#1 lore raw

There is a bug in rheap for alignment. The patch is still hanging = around. =20
Search rheap and alignment on the linuxppc-dev list for patch previously = posted.

Best Regards,
Leo

Quoted 3 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On =

Behalf Of

Quoted 8 lines

[email protected]
Sent: Monday, July 31, 2006 4:50 PM
To: [email protected]
Subject: cpm_dpalloc
=20
Hi All
=20
I have a MPC82xx Processor from Freescale with Linux 2.6.14 ( Can=B4t =

chance to an

Quoted 3 lines

new version).
=20
My Problem is that I want to allocate a 64byte of memory in the dual =

ported ram

Quoted 3 lines

with an alignment of 64bytes. (Needed for SPI Parameter Ram) =20
the funktion cpm_dpalloc(64,64) returned 0x220 but that are not in a =

64 byte

Quoted 13 lines

alignment.
=20
Regards
Fred
--
=20
=20
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
Linuxppc-embedded mailing list [email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded