source: rtems/c/src/librdbg/src/i386/rdbg_cpu_asm.S @ 4caeb10

4.104.114.84.95
Last change on this file since 4caeb10 was 4caeb10, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/01/04 at 10:17:32

2004-04-01 Ralf Corsepius <ralf_corsepius@…>

  • librdbg/src/i386/rdbg_cpu_asm.S: Include <rtems/asm.h> instead of <asm.h>.
  • librdbg/src/m68k/rdbg_cpu_asm.S: Include <rtems/asm.h> instead of <asm.h>.
  • librdbg/src/powerpc/rdbg_cpu_asm.S: Include <rtems/asm.h> instead of <asm.h>.
  • libchip/ide/ata.c: Include <rtems/chain.h> instead of <chain.h>.
  • libchip/ide/ide_controller.c: Include <rtems/chain.h> instead of <chain.h>.
  • libchip/shmdr/shm_driver.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>.
  • libchip/serial/ns16550.c: Include <rtems/ringbuf.h> instead of <ringbuf.h>.
  • 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 <rtems/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.