[prev in list] [next in list] [prev in thread] [next in thread]
List: uclinux-dev
Subject: Re: [uClinux-dev] machine_arch_type in head-nommu.S?
From: Greg Ungerer <gerg () snapgear ! com>
Date: 2007-01-29 6:36:18
Message-ID: 45BD95E2.5010705 () snapgear ! com
[Download RAW message or body]
Hi Brandon,
Brandon Fosdick wrote:
> The kernel file arch/arm/kernel/head-nommu.S calls
> __lookup_machine_type, which requires r1 to be set to MACH_TYPE_XXXX.
> The current version of the file just uses MACH_TYPE_ARMEL, but it really
> should be a bit more intelligent. It already includes asm/mach-types.h,
> which #define's machine_arch_type, but for some reason machine_arch_type
> isn't actually set to a valid type.
>
> Anybody know how this is supposed to be done?
I recall hacking that in to get the ARMulator working again.
The way this is normally handled on ARM platforms where bootloaders
don't pass in the machine number is to have a code shim that is
prepended to the kernel. And it puts the machine number into r1
and then jumps into the kernel.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg@snapgear.com
SnapGear -- a Secure Computing Company PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic