sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget /translations/zh_CN/arch/arm/armmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/zh_TW/arch/arm/armmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/it_IT/arch/arm/armmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ja_JP/arch/arm/armmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/ko_KR/arch/arm/armmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget /translations/sp_SP/arch/arm/armmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hARM Linux 2.6 and upperh]hARM Linux 2.6 and upper}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh:/var/lib/git/docbuild/linux/Documentation/arch/arm/arm.rsthKubh block_quote)}(hDPlease check for updates. h]h paragraph)}(hCPlease check for updates.h](hPlease check <}(hhhhhNhNubh reference)}(h'ftp://ftp.arm.linux.org.uk/pub/armlinuxh]h'ftp://ftp.arm.linux.org.uk/pub/armlinux}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurihuh1hhhubh> for updates.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hCompilation of kernelh]hCompilation of kernel}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh)}(hXIn order to compile ARM Linux, you will need a compiler capable of generating ARM ELF code with GNU extensions. GCC 3.3 is known to be a good compiler. Fortunately, you needn't guess. The kernel will report an error if your compiler is a recognized offender. To build ARM Linux natively, you shouldn't have to alter the ARCH = line in the top level Makefile. However, if you don't have the ARM Linux ELF tools installed as default, then you should change the CROSS_COMPILE line as detailed below. If you wish to cross-compile, then alter the following lines in the top level make file:: ARCH = with:: ARCH = arm and:: CROSS_COMPILE= to:: CROSS_COMPILE= eg.:: CROSS_COMPILE=arm-linux- Do a 'make config', followed by 'make Image' to build the kernel (arch/arm/boot/Image). A compressed image can be built by doing a 'make zImage' instead of 'make Image'. h](h)}(hXIn order to compile ARM Linux, you will need a compiler capable of generating ARM ELF code with GNU extensions. GCC 3.3 is known to be a good compiler. Fortunately, you needn't guess. The kernel will report an error if your compiler is a recognized offender.h]hXIn order to compile ARM Linux, you will need a compiler capable of generating ARM ELF code with GNU extensions. GCC 3.3 is known to be a good compiler. Fortunately, you needn’t guess. The kernel will report an error if your compiler is a recognized offender.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhubh)}(hTo build ARM Linux natively, you shouldn't have to alter the ARCH = line in the top level Makefile. However, if you don't have the ARM Linux ELF tools installed as default, then you should change the CROSS_COMPILE line as detailed below.h]hTo build ARM Linux natively, you shouldn’t have to alter the ARCH = line in the top level Makefile. However, if you don’t have the ARM Linux ELF tools installed as default, then you should change the CROSS_COMPILE line as detailed below.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh)}(hYIf you wish to cross-compile, then alter the following lines in the top level make file::h]hXIf you wish to cross-compile, then alter the following lines in the top level make file:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh literal_block)}(hARCH = h]hARCH = }hj)sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j'hhhKhhubh)}(hwith::h]hwith:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubj()}(h ARCH = armh]h ARCH = arm}hjGsbah}(h]h ]h"]h$]h&]j7j8uh1j'hhhKhhubh)}(hand::h]hand:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubj()}(hCROSS_COMPILE=h]hCROSS_COMPILE=}hjcsbah}(h]h ]h"]h$]h&]j7j8uh1j'hhhK hhubh)}(hto::h]hto:}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hhubj()}(h6CROSS_COMPILE=h]h6CROSS_COMPILE=}hjsbah}(h]h ]h"]h$]h&]j7j8uh1j'hhhK$hhubh)}(heg.::h]heg.:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hhubj()}(hCROSS_COMPILE=arm-linux-h]hCROSS_COMPILE=arm-linux-}hjsbah}(h]h ]h"]h$]h&]j7j8uh1j'hhhK(hhubh)}(hDo a 'make config', followed by 'make Image' to build the kernel (arch/arm/boot/Image). A compressed image can be built by doing a 'make zImage' instead of 'make Image'.h]hDo a ‘make config’, followed by ‘make Image’ to build the kernel (arch/arm/boot/Image). A compressed image can be built by doing a ‘make zImage’ instead of ‘make Image’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hhubeh}(h]h ]h"]h$]h&]uh1hhhhK hhhhubeh}(h]compilation-of-kernelah ]h"]compilation of kernelah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hBug reports etch]hBug reports etc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK0ubh)}(hXPlease send patches to the patch system. For more information, see http://www.arm.linux.org.uk/developer/patches/info.php Always include some explanation as to what the patch does and why it is needed. Bug reports should be sent to linux-arm-kernel@lists.arm.linux.org.uk, or submitted through the web form at http://www.arm.linux.org.uk/developer/ When sending bug reports, please ensure that they contain all relevant information, eg. the kernel messages that were printed before/during the problem, what you were doing, etc. h](h)}(hPlease send patches to the patch system. For more information, see http://www.arm.linux.org.uk/developer/patches/info.php Always include some explanation as to what the patch does and why it is needed.h](hDPlease send patches to the patch system. For more information, see }(hjhhhNhNubh)}(h6http://www.arm.linux.org.uk/developer/patches/info.phph]h6http://www.arm.linux.org.uk/developer/patches/info.php}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubhP Always include some explanation as to what the patch does and why it is needed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK2hjubh)}(hBug reports should be sent to linux-arm-kernel@lists.arm.linux.org.uk, or submitted through the web form at http://www.arm.linux.org.uk/developer/h](hBug reports should be sent to }(hjhhhNhNubh)}(h'linux-arm-kernel@lists.arm.linux.org.ukh]h'linux-arm-kernel@lists.arm.linux.org.uk}(hjhhhNhNubah}(h]h ]h"]h$]h&]refuri.mailto:linux-arm-kernel@lists.arm.linux.org.ukuh1hhjubh', or submitted through the web form at }(hjhhhNhNubh)}(h&http://www.arm.linux.org.uk/developer/h]h&http://www.arm.linux.org.uk/developer/}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubeh}(h]h ]h"]h$]h&]uh1hhhhK6hjubh)}(hWhen sending bug reports, please ensure that they contain all relevant information, eg. the kernel messages that were printed before/during the problem, what you were doing, etc.h]hWhen sending bug reports, please ensure that they contain all relevant information, eg. the kernel messages that were printed before/during the problem, what you were doing, etc.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjubeh}(h]h ]h"]h$]h&]uh1hhhhK2hjhhubeh}(h]bug-reports-etcah ]h"]bug reports etcah$]h&]uh1hhhhhhhhK0ubh)}(hhh](h)}(h Include filesh]h Include files}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhhhhhK@ubh)}(hXxSeveral new include directories have been created under include/asm-arm, which are there to reduce the clutter in the top-level directory. These directories, and their purpose is listed below: ============= ========================================================== `arch-*` machine/platform specific header files `hardware` driver-internal ARM specific data structures/definitions `mach` descriptions of generic ARM to specific machine interfaces `proc-*` processor dependent header files (currently only two categories) ============= ========================================================== h](h)}(hSeveral new include directories have been created under include/asm-arm, which are there to reduce the clutter in the top-level directory. These directories, and their purpose is listed below:h]hSeveral new include directories have been created under include/asm-arm, which are there to reduce the clutter in the top-level directory. These directories, and their purpose is listed below:}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjYubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1juhjrubjv)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1juhjrubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h`arch-*`h]htitle_reference)}(hjh]harch-*}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h&machine/platform specific header filesh]h&machine/platform specific header files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h `hardware`h]j)}(hjh]hhardware}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h8driver-internal ARM specific data structures/definitionsh]h8driver-internal ARM specific data structures/definitions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h`mach`h]j)}(hjh]hmach}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKIhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h:descriptions of generic ARM to specific machine interfacesh]h:descriptions of generic ARM to specific machine interfaces}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(h`proc-*`h]j)}(hj^h]hproc-*}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhhhKJhjYubah}(h]h ]h"]h$]h&]uh1jhjVubj)}(hhh]h)}(h@processor dependent header files (currently only two categories)h]h@processor dependent header files (currently only two categories)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjyubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]colsKuh1jphjmubah}(h]h ]h"]h$]h&]uh1jkhjYubeh}(h]h ]h"]h$]h&]uh1hhhhKBhjHhhubeh}(h] include-filesah ]h"] include filesah$]h&]uh1hhhhhhhhK@ubh)}(hhh](h)}(hMachine/Platform supporth]hMachine/Platform support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKPubh)}(hXsThe ARM tree contains support for a lot of different machine types. To continue supporting these differences, it has become necessary to split machine-specific parts by directory. For this, the machine category is used to select which directories and files get included (we will use $(MACHINE) to refer to the category) To this end, we now have arch/arm/mach-$(MACHINE) directories which are designed to house the non-driver files for a particular machine (eg, PCI, memory management, architecture definitions etc). For all future machines, there should be a corresponding arch/arm/mach-$(MACHINE)/include/mach directory. h](h)}(hXAThe ARM tree contains support for a lot of different machine types. To continue supporting these differences, it has become necessary to split machine-specific parts by directory. For this, the machine category is used to select which directories and files get included (we will use $(MACHINE) to refer to the category)h]hXAThe ARM tree contains support for a lot of different machine types. To continue supporting these differences, it has become necessary to split machine-specific parts by directory. For this, the machine category is used to select which directories and files get included (we will use $(MACHINE) to refer to the category)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjubh)}(hX.To this end, we now have arch/arm/mach-$(MACHINE) directories which are designed to house the non-driver files for a particular machine (eg, PCI, memory management, architecture definitions etc). For all future machines, there should be a corresponding arch/arm/mach-$(MACHINE)/include/mach directory.h]hX.To this end, we now have arch/arm/mach-$(MACHINE) directories which are designed to house the non-driver files for a particular machine (eg, PCI, memory management, architecture definitions etc). For all future machines, there should be a corresponding arch/arm/mach-$(MACHINE)/include/mach directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhjubeh}(h]h ]h"]h$]h&]uh1hhhhKRhjhhubeh}(h]machine-platform-supportah ]h"]machine/platform supportah$]h&]uh1hhhhhhhhKPubh)}(hhh](h)}(hModulesh]hModules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK`ubh)}(hXAlthough modularisation is supported (and required for the FP emulator), each module on an ARM2/ARM250/ARM3 machine when is loaded will take memory up to the next 32k boundary due to the size of the pages. Therefore, is modularisation on these machines really worth it? However, ARM6 and up machines allow modules to take multiples of 4k, and as such Acorn RiscPCs and other architectures using these processors can make good use of modularisation. h](h)}(hX Although modularisation is supported (and required for the FP emulator), each module on an ARM2/ARM250/ARM3 machine when is loaded will take memory up to the next 32k boundary due to the size of the pages. Therefore, is modularisation on these machines really worth it?h]hX Although modularisation is supported (and required for the FP emulator), each module on an ARM2/ARM250/ARM3 machine when is loaded will take memory up to the next 32k boundary due to the size of the pages. Therefore, is modularisation on these machines really worth it?}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKbhjubh)}(hHowever, ARM6 and up machines allow modules to take multiples of 4k, and as such Acorn RiscPCs and other architectures using these processors can make good use of modularisation.h]hHowever, ARM6 and up machines allow modules to take multiples of 4k, and as such Acorn RiscPCs and other architectures using these processors can make good use of modularisation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghjubeh}(h]h ]h"]h$]h&]uh1hhhhKbhjhhubeh}(h]modulesah ]h"]modulesah$]h&]uh1hhhhhhhhK`ubh)}(hhh](h)}(hADFS Image filesh]hADFS Image files}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hhhhhKmubh)}(hX1You can access image files on your ADFS partitions by mounting the ADFS partition, and then using the loopback device driver. You must have losetup installed. Please note that the PCEmulator DOS partitions have a partition table at the start, and as such, you will have to give '-o offset' to losetup. h](h)}(hYou can access image files on your ADFS partitions by mounting the ADFS partition, and then using the loopback device driver. You must have losetup installed.h]hYou can access image files on your ADFS partitions by mounting the ADFS partition, and then using the loopback device driver. You must have losetup installed.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKohjFubh)}(hPlease note that the PCEmulator DOS partitions have a partition table at the start, and as such, you will have to give '-o offset' to losetup.h]hPlease note that the PCEmulator DOS partitions have a partition table at the start, and as such, you will have to give ‘-o offset’ to losetup.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKshjFubeh}(h]h ]h"]h$]h&]uh1hhhhKohj5hhubeh}(h]adfs-image-filesah ]h"]adfs image filesah$]h&]uh1hhhhhhhhKmubh)}(hhh](h)}(hRequest to developersh]hRequest to developers}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhKxubh)}(hXWhen writing device drivers which include a separate assembler file, please include it in with the C file, and not the arch/arm/lib directory. This allows the driver to be compiled as a loadable module without requiring half the code to be compiled into the kernel image. In general, try to avoid using assembler unless it is really necessary. It makes drivers far less easy to port to other hardware. h](h)}(hXWhen writing device drivers which include a separate assembler file, please include it in with the C file, and not the arch/arm/lib directory. This allows the driver to be compiled as a loadable module without requiring half the code to be compiled into the kernel image.h]hXWhen writing device drivers which include a separate assembler file, please include it in with the C file, and not the arch/arm/lib directory. This allows the driver to be compiled as a loadable module without requiring half the code to be compiled into the kernel image.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjubh)}(hIn general, try to avoid using assembler unless it is really necessary. It makes drivers far less easy to port to other hardware.h]hIn general, try to avoid using assembler unless it is really necessary. It makes drivers far less easy to port to other hardware.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKzhjthhubeh}(h]request-to-developersah ]h"]request to developersah$]h&]uh1hhhhhhhhKxubh)}(hhh](h)}(hST506 hard drivesh]hST506 hard drives}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hX2The ST506 hard drive controllers seem to be working fine (if a little slowly). At the moment they will only work off the controllers on an A4x0's motherboard, but for it to work off a Podule just requires someone with a podule to add the addresses for the IRQ mask and the HDC base to the source. As of 31/3/96 it works with two drives (you should get the ADFS `*configure` harddrive set to 2). I've got an internal 20MB and a great big external 5.25" FH 64MB drive (who could ever want more :-) ). I've just got 240K/s off it (a dd with bs=128k); that's about half of what RiscOS gets; but it's a heck of a lot better than the 50K/s I was getting last week :-) Known bug: Drive data errors can cause a hang; including cases where the controller has fixed the error using ECC. (Possibly ONLY in that case...hmm). h](h)}(hX)The ST506 hard drive controllers seem to be working fine (if a little slowly). At the moment they will only work off the controllers on an A4x0's motherboard, but for it to work off a Podule just requires someone with a podule to add the addresses for the IRQ mask and the HDC base to the source.h]hX+The ST506 hard drive controllers seem to be working fine (if a little slowly). At the moment they will only work off the controllers on an A4x0’s motherboard, but for it to work off a Podule just requires someone with a podule to add the addresses for the IRQ mask and the HDC base to the source.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hAs of 31/3/96 it works with two drives (you should get the ADFS `*configure` harddrive set to 2). I've got an internal 20MB and a great big external 5.25" FH 64MB drive (who could ever want more :-) ).h](h@As of 31/3/96 it works with two drives (you should get the ADFS }(hjhhhNhNubj)}(h `*configure`h]h *configure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh harddrive set to 2). I’ve got an internal 20MB and a great big external 5.25” FH 64MB drive (who could ever want more :-) ).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hI've just got 240K/s off it (a dd with bs=128k); that's about half of what RiscOS gets; but it's a heck of a lot better than the 50K/s I was getting last week :-)h]hI’ve just got 240K/s off it (a dd with bs=128k); that’s about half of what RiscOS gets; but it’s a heck of a lot better than the 50K/s I was getting last week :-)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hKnown bug: Drive data errors can cause a hang; including cases where the controller has fixed the error using ECC. (Possibly ONLY in that case...hmm).h]hKnown bug: Drive data errors can cause a hang; including cases where the controller has fixed the error using ECC. (Possibly ONLY in that case...hmm).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]st506-hard-drivesah ]h"]st506 hard drivesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h 1772 Floppyh]h 1772 Floppy}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hThis also seems to work OK, but hasn't been stressed much lately. It hasn't got any code for disc change detection in there at the moment which could be a bit of a problem! Suggestions on the correct way to do this are welcome. h]h)}(hThis also seems to work OK, but hasn't been stressed much lately. It hasn't got any code for disc change detection in there at the moment which could be a bit of a problem! Suggestions on the correct way to do this are welcome.h]hThis also seems to work OK, but hasn’t been stressed much lately. It hasn’t got any code for disc change detection in there at the moment which could be a bit of a problem! Suggestions on the correct way to do this are welcome.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj1ubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubeh}(h]floppyah ]h"] 1772 floppyah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h!`CONFIG_MACH_` and `CONFIG_ARCH_`h](j)}(h`CONFIG_MACH_`h]h CONFIG_MACH_}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh and }(hjThhhNhNubj)}(h`CONFIG_ARCH_`h]h CONFIG_ARCH_}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1hhjQhhhhhKubh)}(hXA change was made in 2003 to the macro names for new machines. Historically, `CONFIG_ARCH_` was used for the bonafide architecture, e.g. SA1100, as well as implementations of the architecture, e.g. Assabet. It was decided to change the implementation macros to read `CONFIG_MACH_` for clarity. Moreover, a retroactive fixup has not been made because it would complicate patching. Previous registrations may be found online. h](h)}(hX}A change was made in 2003 to the macro names for new machines. Historically, `CONFIG_ARCH_` was used for the bonafide architecture, e.g. SA1100, as well as implementations of the architecture, e.g. Assabet. It was decided to change the implementation macros to read `CONFIG_MACH_` for clarity. Moreover, a retroactive fixup has not been made because it would complicate patching.h](hMA change was made in 2003 to the macro names for new machines. Historically, }(hjhhhNhNubj)}(h`CONFIG_ARCH_`h]h CONFIG_ARCH_}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh was used for the bonafide architecture, e.g. SA1100, as well as implementations of the architecture, e.g. Assabet. It was decided to change the implementation macros to read }(hjhhhNhNubj)}(h`CONFIG_MACH_`h]h CONFIG_MACH_}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhd for clarity. Moreover, a retroactive fixup has not been made because it would complicate patching.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj~ubh)}(h+Previous registrations may be found online.h]h+Previous registrations may be found online.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj~ubh)}(h2 h]h)}(h1h](h<}(hjhhhNhNubh)}(h/http://www.arm.linux.org.uk/developer/machines/h]h/http://www.arm.linux.org.uk/developer/machines/}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhKhj~ubeh}(h]h ]h"]h$]h&]uh1hhhhKhjQhhubeh}(h]config-mach-and-config-archah ]h"]config_mach_ and config_arch_ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hKernel entry (head.S)h]hKernel entry (head.S)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXyThe initial entry into the kernel is via head.S, which uses machine independent code. The machine is selected by the value of 'r1' on entry, which must be kept unique. Due to the large number of machines which the ARM port of Linux provides for, we have a method to manage this which ensures that we don't end up duplicating large amounts of code. We group machine (or platform) support code into machine classes. A class typically based around one or more system on a chip devices, and acts as a natural container around the actual implementations. These classes are given directories - arch/arm/mach- - which contain the source files and include/mach/ to support the machine class. For example, the SA1100 class is based upon the SA1100 and SA1110 SoC devices, and contains the code to support the way the on-board and off- board devices are used, or the device is setup, and provides that machine specific "personality." For platforms that support device tree (DT), the machine selection is controlled at runtime by passing the device tree blob to the kernel. At compile-time, support for the machine type must be selected. This allows for a single multiplatform kernel build to be used for several machine types. For platforms that do not use device tree, this machine selection is controlled by the machine type ID, which acts both as a run-time and a compile-time code selection method. You can register a new machine via the web site at: Note: Please do not register a machine type for DT-only platforms. If your platform is DT-only, you do not need a registered machine type. h](h)}(hThe initial entry into the kernel is via head.S, which uses machine independent code. The machine is selected by the value of 'r1' on entry, which must be kept unique.h]hThe initial entry into the kernel is via head.S, which uses machine independent code. The machine is selected by the value of ‘r1’ on entry, which must be kept unique.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(hDue to the large number of machines which the ARM port of Linux provides for, we have a method to manage this which ensures that we don't end up duplicating large amounts of code.h]hDue to the large number of machines which the ARM port of Linux provides for, we have a method to manage this which ensures that we don’t end up duplicating large amounts of code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(hXXWe group machine (or platform) support code into machine classes. A class typically based around one or more system on a chip devices, and acts as a natural container around the actual implementations. These classes are given directories - arch/arm/mach- - which contain the source files and include/mach/ to support the machine class.h]hXXWe group machine (or platform) support code into machine classes. A class typically based around one or more system on a chip devices, and acts as a natural container around the actual implementations. These classes are given directories - arch/arm/mach- - which contain the source files and include/mach/ to support the machine class.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(hFor example, the SA1100 class is based upon the SA1100 and SA1110 SoC devices, and contains the code to support the way the on-board and off- board devices are used, or the device is setup, and provides that machine specific "personality."h]hFor example, the SA1100 class is based upon the SA1100 and SA1110 SoC devices, and contains the code to support the way the on-board and off- board devices are used, or the device is setup, and provides that machine specific “personality.”}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(hX&For platforms that support device tree (DT), the machine selection is controlled at runtime by passing the device tree blob to the kernel. At compile-time, support for the machine type must be selected. This allows for a single multiplatform kernel build to be used for several machine types.h]hX&For platforms that support device tree (DT), the machine selection is controlled at runtime by passing the device tree blob to the kernel. At compile-time, support for the machine type must be selected. This allows for a single multiplatform kernel build to be used for several machine types.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(hFor platforms that do not use device tree, this machine selection is controlled by the machine type ID, which acts both as a run-time and a compile-time code selection method. You can register a new machine via the web site at:h]hFor platforms that do not use device tree, this machine selection is controlled by the machine type ID, which acts both as a run-time and a compile-time code selection method. You can register a new machine via the web site at:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(h2 h]h)}(h1h](h<}(hjhhhhNhNubh)}(h/http://www.arm.linux.org.uk/developer/machines/h]h/http://www.arm.linux.org.uk/developer/machines/}(hjphhhNhNubah}(h]h ]h"]h$]h&]refurijruh1hhjhubh>}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjdubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(hNote: Please do not register a machine type for DT-only platforms. If your platform is DT-only, you do not need a registered machine type.h]hNote: Please do not register a machine type for DT-only platforms. If your platform is DT-only, you do not need a registered machine type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h---h]h---}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hRussell King (15/03/2004)h]hRussell King (15/03/2004)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]kernel-entry-head-sah ]h"]kernel entry (head.s)ah$]h&]uh1hhhhhhhhKubeh}(h]arm-linux-2-6-and-upperah ]h"]arm linux 2.6 and upperah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjjjEjBjjjjj2j/jqjnjjjjjNjKjjjju nametypes}(jjjEjjj2jqjjjNjjuh}(jhjhjBjjjHjjj/jjnj5jjtjjjKj jjQjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.