source: rtems/c/src/librdbg/src/i386/rdbg_cpu_asm.S @ 1591a1aa

4.104.114.84.95
Last change on this file since 1591a1aa was 981b99f, checked in by Joel Sherrill <joel.sherrill@…>, on 08/10/99 at 16:41:44

Patch from Eric Valette <valette@…> and Emmanuel Raguet
<raguet@…>:

  • the dec21140 driver code has been hardened (various bug fixed) Emmanuel,
  • bug in the mcp750 init code have been fixed (interrupt stack/initial stack initialization), BSS correctly cleared (Eric V)
  • remote debugging over TCP/IP is nearly complete (berakpoints, backtrace, variables,...) (Eric V),
  • exception handling code has also been improved in order to fully support RDBG requirements (Eric V),
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  cpu_asm.s
2 *
3 *  This file contains all assembly code for the Intel i386 implementation
4 *  of RDBG.
5 *
6 * $Id$
7 *
8 */
9
10#include <asm.h>
11
12        BEGIN_CODE
13
14/*
15 *  void copyback_data_cache_and_invalidate_instr_cache(addr, size)
16 *
17 *  This routine performs a copy of the data cache
18 *  and invalidate the instruction cache
19 */
20
21        .p2align  1
22        PUBLIC (copyback_data_cache_and_invalidate_instr_cache)
23
24SYM (copyback_data_cache_and_invalidate_instr_cache):
25        wbinvd
26        ret
27
28
29       
30/*
31 * void enterRdbg(void)
32 *     
33 * This function perform a call to the exception 19
34 * It is used :
35 *   1 - in the user code, to simulate a Breakpoint.
36 *       (with justSaveContext = 0)
37 *   2 - in the RDBG code, to push a ctx in the list.
38 *       (with justSaveContext = 1)
39 *
40 * In most of case, it will be use as described in 1.
41 * The 2nd possibility will be used by RDBG to obtain
42 * its own ctx
43 */
44
45        PUBLIC (enterRdbg)
46
47SYM (enterRdbg):
48        int $50
49        ret
50
51
52/*
53 * void rtems_exception_prologue_50(void)
54 *     
55 * Exception 50 is used to enter Rdbg
56 *
57 */
58       
59        .p2align 4
60       
61        PUBLIC (rtems_exception_prologue_50)
62        PUBLIC (_Exception_Handler)
63
64SYM (rtems_exception_prologue_50):     
65        pushl   $ 0
66        pushl   $ 50   
67        jmp   SYM(_Exception_Handler) ;
68
69
70END_CODE
71
72END
Note: See TracBrowser for help on using the repository browser.