public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] The cache flush using coprocessor must be in lib_arm/cache-cp15.c
Date: Fri, 29 May 2009 09:07:19 +0200	[thread overview]
Message-ID: <4A1F89A7.5010609@googlemail.com> (raw)
In-Reply-To: <b64afca20905282344j512c0c7ayaeff91712c9e213d@mail.gmail.com>

Hi riverful,

Kim, Heung Jun wrote:
> Thanks to point. Dirk.
> 
> And call me "riverful" next time, plz :)
> 
>> Kim mentioned that he shuffles around the code due to compile errors while
>> adding his new code. So we have to see if we can stay with the current
>> implementation or have to change something.
> Yes. I shuffles around a little now.
> 
>> Kim: What compile errors do you get for cache_flush()? Could you check if
>> you really don't need it? Why don't you get compile errors if you move it
>> from cpu/arm_cortexa8/cpu.c to lib_arm/cache-cp15.c?
> The compile errors are two.
> 
> 1. First error occured cause of omap3 dependent definition CPU_3XX_ES20.
> 
> cpu.c:99: warning: function declaration isn't a prototype
> cpu.c: In function 'l2cache_enable':
> cpu.c:104: warning: implicit declaration of function 'get_cpu_rev'
> cpu.c:104: error: 'CPU_3XX_ES20' undeclared (first use in this function)
> cpu.c:104: error: (Each undeclared identifier is reported only once
> cpu.c:104: error: for each function it appears in.)
> cpu.c: At top level:
> cpu.c:129: warning: function declaration isn't a prototype
> cpu.c: In function 'l2cache_disable':
> cpu.c:134: error: 'CPU_3XX_ES20' undeclared (first use in this function)
> make[1]: *** [cpu.o] Error 1

Ok, this looks to me that we have to move l2cache_enable() and 
l2cache_disable() to cpu/arm_cortexa8/omap3/board.c and rename them to 
cortexa8_l2cache_enable()/disable() as asked in

http://lists.denx.de/pipermail/u-boot/2009-May/053405.html

But it doesn't seem that we have to touch cache_flush()? Then it can 
stay in cpu/arm_cortexa8/cpu.c as requested by Jean-Christophe?

> 2. After upper error was resolved, linking error occured.
> The definition PRM_RSTCTRL is also omap3 dependent.
> It is used in the cpu/arm_cortexa8/start.S, and defined
> in the include/asm-arm/arch-omap3/cpu.h
> 
> /arm_cortexa8/s5pc100/libs5pc100.a lib_arm/libarm.a
> fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
> fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
> fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a
> drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a
> drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a
> drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a
> drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a
> drivers/mtd/nand/libnand.a drivers/mtd/nand_legacy/libnand_legacy.a
> drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a
> drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a
> drivers/net/phy/libphy.a drivers/net/sk98lin/libsk98lin.a
> drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/spi/libspi.a
> drivers/rtc/librtc.a drivers/serial/libserial.a
> drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a
> drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a
> drivers/video/libvideo.a drivers/watchdog/libwatchdog.a
> common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a
> board/samsung/tickertape/libtickertape.a --end-group -L
> /opt/toolchains/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1
> -lgcc \
> 			-Map u-boot.map -o u-boot
> cpu/arm_cortexa8/start.o: In function `rstctl':
> /ubuntu/archive/s5pc100/u-boot-arm/cpu/arm_cortexa8/start.S:514:
> undefined reference to `PRM_RSTCTRL'

This is new and not discussed anywhere on this list already?

So to summarize my understanding:

We have to:

a) move l2cache_enable() and l2cache_disable()
b) keep cache_flush() as it is
c) talk about start.S

Do you agree?

Best regards

Dirk

  reply	other threads:[~2009-05-29  7:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28  8:51 [U-Boot] [PATCH] The cache flush using coprocessor must be in lib_arm/cache-cp15.c Kim, Heung Jun
2009-05-28 15:01 ` Dirk Behme
2009-05-28 19:28 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-29  6:15   ` Dirk Behme
2009-05-29  6:44     ` Kim, Heung Jun
2009-05-29  7:07       ` Dirk Behme [this message]
2009-05-29  7:15         ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-29  7:38           ` Dirk Behme
2009-05-29  9:24             ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-29  9:48               ` Dirk Behme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A1F89A7.5010609@googlemail.com \
    --to=dirk.behme@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox