source: rtems/c/src/librdbg/src/i386/rdbg_cpu_asm.S @ 908436c1

4.104.114.84.95
Last change on this file since 908436c1 was 0162910, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/98 at 23:15:38

Patch from Ralf Corsepius <corsepiu@…> to rename all
.s files to .S in conformance with GNU conventions. This is a
minor step along the way to supporting automake.

  • 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 */
7
8#include <asm.h>
9
10        BEGIN_CODE
11
12/*
13 *  void copyback_data_cache_and_invalidate_instr_cache()
14 *
15 *  This routine performs a copy of the data cache
16 *  and invalidate the instruction cache
17 */
18
19        .p2align  1
20        PUBLIC (copyback_data_cache_and_invalidate_instr_cache)
21
22SYM (copyback_data_cache_and_invalidate_instr_cache):
23        wbinvd
24        ret
25
26
27       
28/*
29 * void enterRdbg(void)
30 *     
31 * This function perform a call to the exception 19
32 * It is used :
33 *   1 - in the user code, to simulate a Breakpoint.
34 *       (with justSaveContext = 0)
35 *   2 - in the RDBG code, to push a ctx in the list.
36 *       (with justSaveContext = 1)
37 *
38 * In most of case, it will be use as described in 1.
39 * The 2nd possibility will be used by RDBG to obtain
40 * its own ctx
41 */
42
43        PUBLIC (enterRdbg)
44
45SYM (enterRdbg):
46        int $50
47        ret
48
49
50/*
51 * void rtems_exception_prologue_50(void)
52 *     
53 * Exception 50 is used to enter Rdbg
54 *
55 */
56       
57        .p2align 4
58       
59        PUBLIC (rtems_exception_prologue_50)
60        PUBLIC (_Exception_Handler)
61
62SYM (rtems_exception_prologue_50):     
63        pushl   $ 0
64        pushl   $ 50   
65        jmp   SYM(_Exception_Handler) ;
66
67
68END_CODE
69
70END
Note: See TracBrowser for help on using the repository browser.