4.104.115
Last change
on this file since 67ed2a8 was
67ed2a8,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/18/08 at 17:34:49
|
2008-09-18 Joel Sherrill <joel.sherrill@…>
- include/bsp.h: Remove unnecessary variables and EXTERN magic.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * This include file definitions related to an Intel i386ex board. |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1999. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef _BSP_H |
---|
15 | #define _BSP_H |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <bspopts.h> |
---|
22 | |
---|
23 | #include <rtems.h> |
---|
24 | #include <rtems/iosupp.h> |
---|
25 | #include <rtems/console.h> |
---|
26 | #include <rtems/clockdrv.h> |
---|
27 | #include <rtems/bspIo.h> |
---|
28 | #include <libcpu/cpu.h> |
---|
29 | #include <bsp/irq.h> |
---|
30 | |
---|
31 | /* |
---|
32 | * Simple spin delay in microsecond units for device drivers. |
---|
33 | * This is very dependent on the clock speed of the target. |
---|
34 | */ |
---|
35 | |
---|
36 | #define rtems_bsp_delay( _microseconds ) \ |
---|
37 | { \ |
---|
38 | uint32_t _counter; \ |
---|
39 | \ |
---|
40 | _counter = (_microseconds); \ |
---|
41 | \ |
---|
42 | asm volatile ( "0: nop;" \ |
---|
43 | " mov %0,%0 ;" \ |
---|
44 | " loop 0b" : "=c" (_counter) \ |
---|
45 | : "0" (_counter) \ |
---|
46 | ); \ |
---|
47 | \ |
---|
48 | } |
---|
49 | |
---|
50 | /* Constants */ |
---|
51 | |
---|
52 | #define RAM_START 0 |
---|
53 | |
---|
54 | /* replaced the earlier EI kludge of 0xfffff */ |
---|
55 | |
---|
56 | #define RAM_END 0x100000 |
---|
57 | |
---|
58 | #define IDT_SIZE 256 |
---|
59 | #define GDT_SIZE 8192 |
---|
60 | |
---|
61 | extern interrupt_gate_descriptor Interrupt_descriptor_table[IDT_SIZE]; |
---|
62 | |
---|
63 | #ifdef __cplusplus |
---|
64 | } |
---|
65 | #endif |
---|
66 | |
---|
67 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.