committing for rtems-3.2.01 snapshot

This commit is contained in:
Joel Sherrill
1995-07-18 21:19:53 +00:00
parent 3ea52882fb
commit 4ca27cfad7
12 changed files with 30 additions and 34 deletions

View File

@@ -36,7 +36,6 @@
#include <rtems.h> #include <rtems.h>
#include <cpu.h>
#include <memory.h> #include <memory.h>
void init_rtc( void ) void init_rtc( void )

View File

@@ -5,7 +5,6 @@
#include <pc.h> #include <pc.h>
#include <go32.h> #include <go32.h>
#include <bsp.h> #include <bsp.h>
#include <cpu.h>
/* /*
* Ports for PC keyboard * Ports for PC keyboard

View File

@@ -4,7 +4,6 @@
#include <go32.h> #include <go32.h>
#include <bsp.h> #include <bsp.h>
#include <cpu.h>
#include <memory.h> #include <memory.h>

View File

@@ -21,7 +21,6 @@ extern "C" {
#endif #endif
#include <rtems.h> #include <rtems.h>
#include <cpu.h>
#include <iosupp.h> #include <iosupp.h>
/* /*
@@ -142,7 +141,7 @@ BSP_EXTERN unsigned int Gdt_base;
/* routines */ /* routines */
i386_isr set_vector( i386_isr_entry set_vector(
rtems_isr_entry handler, rtems_isr_entry handler,
rtems_vector_number vector, rtems_vector_number vector,
int type int type

View File

@@ -22,7 +22,6 @@
#include <rtems.h> #include <rtems.h>
#include <bsp.h> #include <bsp.h>
#include <cpu.h>
#include <libcsupport.h> #include <libcsupport.h>
#include <stackchk.h> #include <stackchk.h>

View File

@@ -28,13 +28,13 @@
#include <dpmi.h> #include <dpmi.h>
#include <go32.h> #include <go32.h>
i386_isr set_vector( /* returns old vector */ i386_isr_entry set_vector( /* returns old vector */
rtems_isr_entry handler, /* isr routine */ rtems_isr_entry handler, /* isr routine */
rtems_vector_number vector, /* vector number */ rtems_vector_number vector, /* vector number */
int type /* RTEMS or RAW intr */ int type /* RTEMS or RAW intr */
) )
{ {
i386_isr previous_isr; i386_isr_entry previous_isr;
if ( type ) { if ( type ) {
rtems_interrupt_catch( handler, vector, rtems_interrupt_catch( handler, vector,
@@ -55,10 +55,10 @@ i386_isr set_vector( /* returns old vector */
/* structure here? That means we might crash the system if we */ /* structure here? That means we might crash the system if we */
/* try to restore the ISR. Can't fix this until i386_isr is */ /* try to restore the ISR. Can't fix this until i386_isr is */
/* redefined. XXX [BHC]. */ /* redefined. XXX [BHC]. */
previous_isr = (i386_isr) handler_info.pm_offset; previous_isr = (i386_isr_entry) handler_info.pm_offset;
/* install the IDT entry */ /* install the IDT entry */
handler_info.pm_offset = (int)handler; handler_info.pm_offset = (u_long)handler;
handler_info.pm_selector = _go32_my_cs(); handler_info.pm_selector = _go32_my_cs();
_go32_dpmi_set_protected_mode_interrupt_vector( vector, &handler_info); _go32_dpmi_set_protected_mode_interrupt_vector( vector, &handler_info);
} }

View File

@@ -22,7 +22,6 @@
#include <rtems.h> #include <rtems.h>
#include <cpu.h>
#include <bsp.h> #include <bsp.h>
volatile rtems_unsigned32 Ttimer_val; volatile rtems_unsigned32 Ttimer_val;

View File

@@ -24,7 +24,9 @@
EXTERN(_Ttimer_val) EXTERN(_Ttimer_val)
SYM (_timerisr): PUBLIC(timerisr)
SYM (timerisr):
addl $250,_Ttimer_val # another 250 microseconds addl $250,_Ttimer_val # another 250 microseconds
push edx push edx
push eax push eax

View File

@@ -119,7 +119,7 @@ rtems_task Low_task(
end_time = Read_timer(); end_time = Read_timer();
put_time( put_time(
"rtems_task_resume self", "rtems_task_suspend self",
end_time, end_time,
OPERATION_COUNT, OPERATION_COUNT,
0, 0,

View File

@@ -156,8 +156,8 @@ void check_read_timer()
* Under UNIX a simple process swap takes longer than we * Under UNIX a simple process swap takes longer than we
* consider valid for our testing purposes. * consider valid for our testing purposes.
*/ */
printf( "TOO LONG (%d) at %d!!!\n", end_time, index ); printf( "TOO LONG (%d) at index %d!!!\n", end_time, index );
#if defined(unix) #if defined(unix) || defined(go32)
index--; index--;
continue; continue;
#else #else

View File

@@ -119,7 +119,7 @@ rtems_task Low_task(
end_time = Read_timer(); end_time = Read_timer();
put_time( put_time(
"rtems_task_resume self", "rtems_task_suspend self",
end_time, end_time,
OPERATION_COUNT, OPERATION_COUNT,
0, 0,

View File

@@ -156,8 +156,8 @@ void check_read_timer()
* Under UNIX a simple process swap takes longer than we * Under UNIX a simple process swap takes longer than we
* consider valid for our testing purposes. * consider valid for our testing purposes.
*/ */
printf( "TOO LONG (%d) at %d!!!\n", end_time, index ); printf( "TOO LONG (%d) at index %d!!!\n", end_time, index );
#if defined(unix) #if defined(unix) || defined(go32)
index--; index--;
continue; continue;
#else #else