Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218710
b: refs/heads/master
c: 86c0f93
h: refs/heads/master
v: v3
  • Loading branch information
Akira Takeuchi authored and David Howells committed Oct 27, 2010
1 parent 3302b88 commit c3d3d87
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 56 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fbbf7c76a0c89cede075ab7e231970a42e55456
refs/heads/master: 86c0f935c1eee1d778b43895f80c9d27a896dfd9
5 changes: 2 additions & 3 deletions trunk/arch/mn10300/include/asm/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

/*
* define the breakpoint instruction opcode to use
* - note that the JTAG unit steals 0xFF, so we want to avoid that if we can
* (can use 0xF7)
* - note that the JTAG unit steals 0xFF, so you can't use JTAG and GDBSTUB at
* the same time.
*/
#define GDBSTUB_BKPT 0xFF

Expand Down Expand Up @@ -90,7 +90,6 @@ enum exception_code {

extern void __set_intr_stub(enum exception_code code, void *handler);
extern void set_intr_stub(enum exception_code code, void *handler);
extern void set_jtag_stub(enum exception_code code, void *handler);

struct pt_regs;

Expand Down
25 changes: 0 additions & 25 deletions trunk/arch/mn10300/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -214,31 +214,6 @@ ENTRY(irq_handler)

jmp ret_from_intr

###############################################################################
#
# Monitor Signal handler entry point
#
###############################################################################
ENTRY(monitor_signal)
movbu (0xae000001),d1
cmp 1,d1
beq monsignal
ret [],0

monsignal:
or EPSW_NMID,epsw
mov d0,a0
mov a0,sp
mov (REG_EPSW,fp),d1
and ~EPSW_nSL,d1
mov d1,(REG_EPSW,fp)
movm (sp),[d2,d3,a2,a3,exreg0,exreg1,exother]
mov (sp),a1
mov a1,usp
movm (sp),[other]
add 4,sp
here: jmp 0x8e000008-here+0x8e000008

###############################################################################
#
# Double Fault handler entry point
Expand Down
22 changes: 0 additions & 22 deletions trunk/arch/mn10300/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,28 +537,6 @@ void __init set_intr_stub(enum exception_code code, void *handler)
mn10300_icache_inv();
}

/*
* set an interrupt stub to invoke the JTAG unit and then jump to a handler
*/
void __init set_jtag_stub(enum exception_code code, void *handler)
{
unsigned long addr;
u8 *vector = (u8 *)(CONFIG_INTERRUPT_VECTOR_BASE + code);

addr = (unsigned long) handler - ((unsigned long) vector + 1);
vector[0] = 0xff; /* PI to jump into JTAG debugger */
vector[1] = 0xdc; /* jmp handler */
vector[2] = addr;
vector[3] = addr >> 8;
vector[4] = addr >> 16;
vector[5] = addr >> 24;
vector[6] = 0xcb;
vector[7] = 0xcb;

mn10300_dcache_flush_inv();
flush_icache_range((unsigned long) vector, (unsigned long) vector + 8);
}

/*
* initialise the exception table
*/
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/mn10300/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ static void print_pagetable_entries(pgd_t *pgdir, unsigned long address)
}
#endif

asmlinkage void monitor_signal(struct pt_regs *);

/*
* This routine handles page faults. It determines the address,
* and the problem, and then passes it off to one of the appropriate
Expand Down Expand Up @@ -279,7 +277,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long fault_code,
*/
bad_area:
up_read(&mm->mmap_sem);
monitor_signal(regs);

/* User mode accesses just cause a SIGSEGV */
if ((fault_code & MMUFCR_xFC_ACCESS) == MMUFCR_xFC_ACCESS_USR) {
Expand All @@ -292,7 +289,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long fault_code,
}

no_context:
monitor_signal(regs);
/* Are we prepared to handle this kernel fault? */
if (fixup_exception(regs))
return;
Expand Down Expand Up @@ -345,7 +341,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long fault_code,

do_sigbus:
up_read(&mm->mmap_sem);
monitor_signal(regs);

/*
* Send a sigbus, regardless of whether we were in kernel
Expand Down

0 comments on commit c3d3d87

Please sign in to comment.