Commit 64cafeea authored by Ian Molton's avatar Ian Molton Committed by Linus Torvalds

[PATCH] arm26: update comments, headers, notes

Add and update comments all throughout the arm26 tree.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 043b0b8a
...@@ -15,6 +15,8 @@ Philip Blundell ...@@ -15,6 +15,8 @@ Philip Blundell
Russell King Russell King
Keith Owens Keith Owens
also thanks to Nicholas Pitre for hints, and for the basis or our XIP support.
Currently maintaing the code are Currently maintaing the code are
Ian Molton (Maintainer / Archimedes) Ian Molton (Maintainer / Archimedes)
......
/* /*
* linux/arch/arm/boot/compressed/head.S * linux/arch/arm26/boot/compressed/head.S
* *
* Copyright (C) 1996-2002 Russell King * Copyright (C) 1996-2002 Russell King
* *
......
/* /*
* linux/arch/arm/lib/ll_char_wr.S * linux/arch/arm26/lib/ll_char_wr.S
* *
* Copyright (C) 1995, 1996 Russell King. * Copyright (C) 1995, 1996 Russell King.
* *
......
/* /*
* linux/include/asm-arm/arch-arc/uncompress.h
* *
* Copyright (C) 1996 Russell King * Copyright (C) 1996 Russell King
* *
......
/* /*
* linux/arch/arm/boot/compressed/vmlinux.lds.in * linux/arch/arm26/boot/compressed/vmlinux.lds.in
* *
* Copyright (C) 2000 Russell King * Copyright (C) 2000 Russell King
* *
......
#!/bin/sh #!/bin/sh
# #
# arch/arm/boot/install.sh # arch/arm26/boot/install.sh
# #
# This file is subject to the terms and conditions of the GNU General Public # This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive # License. See the file "COPYING" in the main directory of this archive
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# #
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
# Adapted from code in arch/i386/boot/install.sh by Russell King # Adapted from code in arch/i386/boot/install.sh by Russell King
# Stolen from arch/arm/boot/install.sh by Ian Molton # Stolen from arm32 by Ian Molton
# #
# "make install" script for arm architecture # "make install" script for arm architecture
# #
......
/* /*
* linux/arch/arm/kernel/compat.c * linux/arch/arm26/kernel/compat.c
* *
* Copyright (C) 2001 Russell King * Copyright (C) 2001 Russell King
* 2003 Ian Molton * 2003 Ian Molton
......
/* /*
* linux/arch/arm/kernel/init_task.c * linux/arch/arm26/kernel/init_task.c
* *
* Copyright (C) 2003 Ian Molton * Copyright (C) 2003 Ian Molton
* *
...@@ -29,7 +29,9 @@ EXPORT_SYMBOL(init_mm); ...@@ -29,7 +29,9 @@ EXPORT_SYMBOL(init_mm);
* We need to make sure that this is 8192-byte aligned due to the * We need to make sure that this is 8192-byte aligned due to the
* way process stacks are handled. This is done by making sure * way process stacks are handled. This is done by making sure
* the linker maps this in the .text segment right after head.S, * the linker maps this in the .text segment right after head.S,
* and making head.S ensure the proper alignment. * and making the linker scripts ensure the proper alignment.
*
* FIXME - should this be 32K alignment on arm26?
* *
* The things we do for performance... * The things we do for performance...
*/ */
......
/* /*
* linux/arch/arm/kernel/setup.c * linux/arch/arm26/kernel/setup.c
* *
* Copyright (C) 1995-2001 Russell King * Copyright (C) 1995-2001 Russell King
* Copyright (C) 2003 Ian Molton * Copyright (C) 2003 Ian Molton
...@@ -119,7 +119,7 @@ static void __init setup_processor(void) ...@@ -119,7 +119,7 @@ static void __init setup_processor(void)
/* /*
* locate processor in the list of supported processor * locate processor in the list of supported processor
* types. The linker builds this table for us from the * types. The linker builds this table for us from the
* entries in arch/arm/mm/proc-*.S * entries in arch/arm26/mm/proc-*.S
*/ */
for (list = &__proc_info_begin; list < &__proc_info_end ; list++) for (list = &__proc_info_begin; list < &__proc_info_end ; list++)
if ((processor_id & list->cpu_mask) == list->cpu_val) if ((processor_id & list->cpu_mask) == list->cpu_val)
......
/* /*
* linux/arch/arm/lib/backtrace.S * linux/arch/arm26/lib/backtrace.S
* *
* Copyright (C) 1995, 1996 Russell King * Copyright (C) 1995, 1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/changebit.S * linux/arch/arm26/lib/changebit.S
* *
* Copyright (C) 1995-1996 Russell King * Copyright (C) 1995-1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/clearbit.S * linux/arch/arm26/lib/clearbit.S
* *
* Copyright (C) 1995-1996 Russell King * Copyright (C) 1995-1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/copypage.S * linux/arch/arm26/lib/copypage.S
* *
* Copyright (C) 1995-1999 Russell King * Copyright (C) 1995-1999 Russell King
* *
......
/* /*
* linux/arch/arm/lib/csumipv6.S * linux/arch/arm26/lib/csumipv6.S
* *
* Copyright (C) 1995-1998 Russell King * Copyright (C) 1995-1998 Russell King
* *
......
/* /*
* linux/arch/arm/lib/csumpartial.S * linux/arch/arm26/lib/csumpartial.S
* *
* Copyright (C) 1995-1998 Russell King * Copyright (C) 1995-1998 Russell King
* *
......
/* /*
* linux/arch/arm/lib/csumpartialcopy.S * linux/arch/arm26/lib/csumpartialcopy.S
* *
* Copyright (C) 1995-1998 Russell King * Copyright (C) 1995-1998 Russell King
* *
......
/* /*
* linux/arch/arm/lib/csumpartialcopygeneric.S * linux/arch/arm26/lib/csumpartialcopygeneric.S
* *
* Copyright (C) 1995-2001 Russell King * Copyright (C) 1995-2001 Russell King
* *
......
/* /*
* linux/arch/arm/lib/delay.S * linux/arch/arm26/lib/delay.S
* *
* Copyright (C) 1995, 1996 Russell King * Copyright (C) 1995, 1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/ecard.S * linux/arch/arm26/lib/ecard.S
* *
* Copyright (C) 1995, 1996 Russell King * Copyright (C) 1995, 1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/floppydma.S * linux/arch/arm26/lib/floppydma.S
* *
* Copyright (C) 1995, 1996 Russell King * Copyright (C) 1995, 1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/io-acorn.S * linux/arch/arm26/lib/io-acorn.S
* *
* Copyright (C) 1995, 1996 Russell King * Copyright (C) 1995, 1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/io-readsb.S * linux/arch/arm26/lib/io-readsb.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/io-writesb.S * linux/arch/arm26/lib/io-writesb.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/io-writesl.S * linux/arch/arm26/lib/io-writesl.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/memchr.S * linux/arch/arm26/lib/memchr.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/memcpy.S * linux/arch/arm26/lib/memcpy.S
* *
* Copyright (C) 1995-1999 Russell King * Copyright (C) 1995-1999 Russell King
* *
......
/* /*
* linux/arch/arm/lib/memset.S * linux/arch/arm26/lib/memset.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/memzero.S * linux/arch/arm26/lib/memzero.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/setbit.S * linux/arch/arm26/lib/setbit.S
* *
* Copyright (C) 1995-1996 Russell King * Copyright (C) 1995-1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/strchr.S * linux/arch/arm26/lib/strchr.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/strrchr.S * linux/arch/arm26/lib/strrchr.S
* *
* Copyright (C) 1995-2000 Russell King * Copyright (C) 1995-2000 Russell King
* *
......
/* /*
* linux/arch/arm/lib/testchangebit.S * linux/arch/arm26/lib/testchangebit.S
* *
* Copyright (C) 1995-1996 Russell King * Copyright (C) 1995-1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/testclearbit.S * linux/arch/arm26/lib/testclearbit.S
* *
* Copyright (C) 1995-1996 Russell King * Copyright (C) 1995-1996 Russell King
* *
......
/* /*
* linux/arch/arm/lib/testsetbit.S * linux/arch/arm26/lib/testsetbit.S
* *
* Copyright (C) 1995-1996 Russell King * Copyright (C) 1995-1996 Russell King
* *
......
/* /*
* linux/arch/arm/kernel/dma-arc.c * linux/arch/arm26/kernel/dma.c
* *
* Copyright (C) 1998-1999 Dave Gilbert / Russell King * Copyright (C) 1998-1999 Dave Gilbert / Russell King
* Copyright (C) 2003 Ian Molton * Copyright (C) 2003 Ian Molton
......
/* /*
* linux/arch/arm/mach-arc/irq.c * linux/arch/arm26/mach-arc/irq.c
* *
* Copyright (C) 1996 Russell King * Copyright (C) 1996 Russell King
* *
......
/* /*
* linux/arch/arm/mm/extable.c * linux/arch/arm26/mm/extable.c
*/ */
#include <linux/config.h> #include <linux/config.h>
...@@ -11,6 +11,12 @@ int fixup_exception(struct pt_regs *regs) ...@@ -11,6 +11,12 @@ int fixup_exception(struct pt_regs *regs)
const struct exception_table_entry *fixup; const struct exception_table_entry *fixup;
fixup = search_exception_tables(instruction_pointer(regs)); fixup = search_exception_tables(instruction_pointer(regs));
/*
* The kernel runs in SVC mode - make sure we keep running in SVC mode
* by frobbing the PSR appropriately (PSR and PC are in the same reg.
* on ARM26)
*/
if (fixup) if (fixup)
regs->ARM_pc = fixup->fixup | PSR_I_BIT | MODE_SVC26; regs->ARM_pc = fixup->fixup | PSR_I_BIT | MODE_SVC26;
......
/* /*
* linux/arch/arm/mm/fault-common.c * linux/arch/arm26/mm/fault.c
* *
* Copyright (C) 1995 Linus Torvalds * Copyright (C) 1995 Linus Torvalds
* Modifications for ARM processor (c) 1995-2001 Russell King * Modifications for ARM processor (c) 1995-2001 Russell King
...@@ -212,7 +212,6 @@ int do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) ...@@ -212,7 +212,6 @@ int do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
tsk = current; tsk = current;
mm = tsk->mm; mm = tsk->mm;
printk("do_page_fault: pid: %d %08x\n", tsk->pid, addr);
/* /*
* If we're in an interrupt or have no user * If we're in an interrupt or have no user
* context, we must not take the fault.. * context, we must not take the fault..
......
/* /*
* linux/arch/arm/mm/proc-arm2,3.S * linux/arch/arm26/mm/proc-arm2,3.S
* *
* Copyright (C) 1997-1999 Russell King * Copyright (C) 1997-1999 Russell King
* *
......
...@@ -90,6 +90,7 @@ do { \ ...@@ -90,6 +90,7 @@ do { \
#define IOEB_PSCLR (IOEB_BASE + 0x58) #define IOEB_PSCLR (IOEB_BASE + 0x58)
#define IOEB_MONTYPE (IOEB_BASE + 0x70) #define IOEB_MONTYPE (IOEB_BASE + 0x70)
//FIXME - These adresses are weird - ISTR some weirdo address shifting stuff was going on here...
#define IO_EC_IOC_BASE 0x80090000 #define IO_EC_IOC_BASE 0x80090000
#define IO_EC_MEMC_BASE 0x80000000 #define IO_EC_MEMC_BASE 0x80000000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment