Re: [PATCH 1/1] 68000 code integration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

On Fri, May 4, 2012 at 7:53 AM, Greg Ungerer <gerg@xxxxxxxxxxxx> wrote:
Hi Luis,

On 01/05/12 06:42, Luis Alves wrote:

Here is my second attempt for the 68000 code integration.

What I have done:
 Merged all 68000 based cpu's in platform/68000 and deleted 68*328
subdirs.
 Modified respective Makefile's to correctly build each target.
 Added support for my board/cpu in Kconfig's
 Merged all head.S files into one.


Overall this is starting to look really good. I like the common
68000 platform directory. That has worked out well.

Did you send this to the m68k-linux list as well?
I don't see it in the CC list.

Yes, but in two separated emails (I had some headache with google smtp server).


This is a big patch on its own though. Do you think there is any
way you can break it up, into logical but smaller pieces?
Something like firstly a patch that reorgs the directories for
current 68x328 targets. Then follow on patches that add your
board support.

Oh, and another suggestion :-)
Did you use git to generate this?
If you use git format-patch with the -B and -M options it will
handle moves and renames a little better, producing much smaller
patches for email list review. It will collapse those pesky
bootlogo.h files in this patch for example. And it also makes it
much easier to see any changes made to moved files that are
otherwise no obvious.

Yes, I've used git with Linus kernel as base, but I've just started
using git and don't know all the available options and features.
I'll try out the referred options.


Oh, sorry, another suggestion as well :-)
If you run this patch through the kernels scripts/checkpatch.pl
checker it will list out any formating issues. It would be good to
fix those up as well.

Your suggestions are always welcome :)
I'll run that script.


An observation from the patch, the 68000/entry-*.S files all look
quite similar. Is there any way they can be merged into a single
file?

I'm just noticed that accidentally I've added the 'entry-68000.S'!
This file should be removed.

About merging, yes I plan to do it later. The thing is that in my
first attempt of running this kernel in the 68000 the entry code from
the  68328 had a strange behavior (you should remember debugging this
with me - lots of softlocks).
Then I've used the entry.S from coldfire sources as base and it worked smooth.
Also, the existing trap exception code doesn't work with 68000 cpu's
since they don't provide the vector in the stack.



Thanks for doing this, it is looking really nice.

The pleasure is all mine :)

Regards,
Luis



Regards
Greg




In future iterations, more code can/will be merged.

For the 68000 (and my board) the code is working fine. I have a fast and
stable kernel running in the old 68000.
It would be nice if someone could test the 68[xx]328 target code and
eventually fix any bugs.

The exception code for the 68000 is not yet completed (not having the
exception vector on the stack is boring).
I plan to send future updates for the 68000 (and the code for my board
drivers, not included in this patch)


Regards,
Luis Alves


---
 arch/m68k/Kconfig.cpu                     |    2 +-
 arch/m68k/Kconfig.machine                 |    6 +
 arch/m68k/Makefile                        |    6 +-
 arch/m68k/include/asm/alce68k.h           |  136 ++
 arch/m68k/kernel/setup_no.c               |    3 +
 arch/m68k/platform/68000/Makefile         |   26 +
 arch/m68k/platform/68000/bootlogo-vz.h    | 3204
+++++++++++++++++++++++++++++
 arch/m68k/platform/68000/bootlogo.h       |  270 +++
 arch/m68k/platform/68000/config-alce68k.c |  179 ++
 arch/m68k/platform/68000/config-ez.c      |   76 +
 arch/m68k/platform/68000/config-vz.c      |  188 ++
 arch/m68k/platform/68000/config.c         |   55 +
 arch/m68k/platform/68000/entry-68000.S    |  463 +++++
 arch/m68k/platform/68000/entry-alce68k.S  |  453 ++++
 arch/m68k/platform/68000/entry.S          |  261 +++
 arch/m68k/platform/68000/head.S           |  310 +++
 arch/m68k/platform/68000/ints-alce68k.c   |  387 ++++
 arch/m68k/platform/68000/ints.c           |  186 ++
 arch/m68k/platform/68000/romvec.S         |   35 +
 arch/m68k/platform/68000/timers-alce68k.c |  112 +
 arch/m68k/platform/68000/timers.c         |  135 ++
 arch/m68k/platform/68328/Makefile         |   21 -
 arch/m68k/platform/68328/bootlogo.h       |  270 ---
 arch/m68k/platform/68328/config.c         |   55 -
 arch/m68k/platform/68328/entry.S          |  261 ---
 arch/m68k/platform/68328/head-de2.S       |  128 --
 arch/m68k/platform/68328/head-pilot.S     |  207 --
 arch/m68k/platform/68328/head-ram.S       |  141 --
 arch/m68k/platform/68328/head-rom.S       |  105 -
 arch/m68k/platform/68328/ints.c           |  186 --
 arch/m68k/platform/68328/romvec.S         |   35 -
 arch/m68k/platform/68328/timers.c         |  135 --
 arch/m68k/platform/68EZ328/Makefile       |    5 -
 arch/m68k/platform/68EZ328/config.c       |   76 -
 arch/m68k/platform/68VZ328/Makefile       |   11 -
 arch/m68k/platform/68VZ328/bootlogo.h     | 3204
-----------------------------
 arch/m68k/platform/68VZ328/config.c       |  188 --
 37 files changed, 6488 insertions(+), 5033 deletions(-)
 create mode 100644 arch/m68k/include/asm/alce68k.h
 create mode 100644 arch/m68k/platform/68000/Makefile
 create mode 100644 arch/m68k/platform/68000/bootlogo-vz.h
 create mode 100644 arch/m68k/platform/68000/bootlogo.h
 create mode 100644 arch/m68k/platform/68000/config-alce68k.c
 create mode 100644 arch/m68k/platform/68000/config-ez.c
 create mode 100644 arch/m68k/platform/68000/config-vz.c
 create mode 100644 arch/m68k/platform/68000/config.c
 create mode 100644 arch/m68k/platform/68000/entry-68000.S
 create mode 100644 arch/m68k/platform/68000/entry-alce68k.S
 create mode 100644 arch/m68k/platform/68000/entry.S
 create mode 100644 arch/m68k/platform/68000/head.S
 create mode 100644 arch/m68k/platform/68000/ints-alce68k.c
 create mode 100644 arch/m68k/platform/68000/ints.c
 create mode 100644 arch/m68k/platform/68000/romvec.S
 create mode 100644 arch/m68k/platform/68000/timers-alce68k.c
 create mode 100644 arch/m68k/platform/68000/timers.c
 delete mode 100644 arch/m68k/platform/68328/Makefile
 delete mode 100644 arch/m68k/platform/68328/bootlogo.h
 delete mode 100644 arch/m68k/platform/68328/config.c
 delete mode 100644 arch/m68k/platform/68328/entry.S
 delete mode 100644 arch/m68k/platform/68328/head-de2.S
 delete mode 100644 arch/m68k/platform/68328/head-pilot.S
 delete mode 100644 arch/m68k/platform/68328/head-ram.S
 delete mode 100644 arch/m68k/platform/68328/head-rom.S
 delete mode 100644 arch/m68k/platform/68328/ints.c
 delete mode 100644 arch/m68k/platform/68328/romvec.S
 delete mode 100644 arch/m68k/platform/68328/timers.c
 delete mode 100644 arch/m68k/platform/68EZ328/Makefile
 delete mode 100644 arch/m68k/platform/68EZ328/config.c
 delete mode 100644 arch/m68k/platform/68VZ328/Makefile
 delete mode 100644 arch/m68k/platform/68VZ328/bootlogo.h
 delete mode 100644 arch/m68k/platform/68VZ328/config.c




--
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@xxxxxxxxxxxx
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux