]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARC: [mm] Remove @write argument to do_page_fault()
authorVineet Gupta <vgupta@synopsys.com>
Wed, 12 Jun 2013 08:19:02 +0000 (13:49 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 17 Jun 2013 13:02:17 +0000 (18:32 +0530)
commit69a247ac7997fc331f29432ff9b67ce2b991aa68
treeda1822a9e09c71c084392a0f5847c0ec394192a8
parent1df1c9ab9f4169d035b69e18fb324fe73655b330
ARC: [mm] Remove @write argument to do_page_fault()

This can be ascertained within do_page_fault() since it gets the full
ECR (Exception Cause Register).

Further, for both the callers of do_page_fault(): Prot-V / D-TLB-Miss,
the cause sub-fields in ECR are same for same type of access, making the
code much more simpler.

D-TLB-Miss [LD] 0x00_21_01_00
Prot-V     [LD] 0x00_23_01_00
                        ^^
D-TLB-Miss [ST] 0x00_21_02_00
Prot-V     [ST] 0x00_23_02_00
                        ^^
D-TLB-Miss [EX] 0x00_21_03_00
Prot-V     [EX] 0x00_23_03_00
                        ^^

This helps code consolidation, which is even better when moving code from
assembler to "C".

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/entry.S
arch/arc/mm/fault.c
arch/arc/mm/tlbex.S