2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>

* cpuuse/system.h, cpuuse/task1.c, cpuuse/tswitch.c, monitor/init.c,
	monitor/system.h, rtems++/System.h, rtems++/Task1.cc,
	rtems++/Task2.cc, rtems++/Task3.cc, rtmonuse/init.c,
	rtmonuse/system.h, rtmonuse/task1.c, stackchk/blow.c: Convert to
	using c99 fixed size types.
This commit is contained in:
Ralf Corsepius
2004-03-30 11:12:47 +00:00
parent 4c84d7b760
commit 9919946a82
14 changed files with 39 additions and 31 deletions

View File

@@ -1,3 +1,11 @@
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* cpuuse/system.h, cpuuse/task1.c, cpuuse/tswitch.c, monitor/init.c,
monitor/system.h, rtems++/System.h, rtems++/Task1.cc,
rtems++/Task2.cc, rtems++/Task3.cc, rtmonuse/init.c,
rtmonuse/system.h, rtmonuse/task1.c, stackchk/blow.c: Convert to
using c99 fixed size types.
2004-03-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add 2nd arg to RTEMS_TOP.

View File

@@ -62,7 +62,7 @@ TEST_EXTERN rtems_id Extension_id[ 4 ];
TEST_EXTERN rtems_name Extension_name[ 4 ]; /* array of task names */
/* array of task run counts */
TEST_EXTERN volatile rtems_unsigned32 Run_count[ 4 ];
TEST_EXTERN volatile uint32_t Run_count[ 4 ];
/*
* Keep track of task switches

View File

@@ -24,13 +24,13 @@ rtems_task Task_1(
rtems_task_argument argument
)
{
rtems_unsigned32 seconds;
rtems_unsigned32 old_seconds;
uint32_t seconds;
uint32_t old_seconds;
rtems_mode previous_mode;
rtems_time_of_day time;
rtems_status_code status;
rtems_unsigned32 start_time;
rtems_unsigned32 end_time;
uint32_t start_time;
uint32_t end_time;
puts( "TA1 - rtems_task_suspend - on Task 2" );
status = rtems_task_suspend( Task_id[ 2 ] );

View File

@@ -31,7 +31,7 @@ rtems_extension Task_switch(
rtems_tcb *heir
)
{
rtems_unsigned32 index;
uint32_t index;
rtems_time_of_day time;
rtems_status_code status;

View File

@@ -21,7 +21,7 @@
rtems_task_priority Priorities[6] = { 0, 1, 1, 3, 4, 5 };
rtems_task Task_1_through_5(
rtems_unsigned32 argument
uint32_t argument
)
{
rtems_status_code status;
@@ -38,7 +38,7 @@ rtems_task Init(
rtems_task_argument argument
)
{
rtems_unsigned32 index;
uint32_t index;
rtems_status_code status;
puts( "\n\n*** MONITOR TASK TEST ***" );

View File

@@ -18,7 +18,7 @@
/* types */
struct counters {
rtems_unsigned32 count[6];
uint32_t count[6];
};
/* functions */

View File

@@ -62,7 +62,7 @@ protected:
public:
Task2(const char* name,
const rtems_task_priority initial_priority,
const rtems_unsigned32 stack_size);
const uint32_t stack_size);
};
class Task3
@@ -76,7 +76,7 @@ protected:
public:
Task3(const char* name,
const rtems_task_priority initial_priority,
const rtems_unsigned32 stack_size);
const uint32_t stack_size);
};
class EndTask
@@ -88,7 +88,7 @@ protected:
public:
EndTask(const char* name,
const rtems_task_priority initial_priority,
const rtems_unsigned32 stack_size);
const uint32_t stack_size);
};
#if 0

View File

@@ -240,8 +240,8 @@ void Task1::screen2(void)
task_2.set_priority(current_priority, priority);
printf("%s, priority was %i\n", task_2.last_status_string(), priority);
rtems_unsigned32 current_note;
rtems_unsigned32 note;
uint32_t current_note;
uint32_t note;
// notepad registers for this object
@@ -502,7 +502,7 @@ void Task1::screen6(void)
char *u1 = "normal send";
char *u2 = "urgent send";
char in[100];
rtems_unsigned32 size;
uint32_t size;
printf("%s - send u1 to mq_2 - ", name_string());
mq_2.send(u1, strlen(u1) + 1);
@@ -573,7 +573,7 @@ void Task1::screen6(void)
wake_after(3000000);
char *b1 = "broadcast message";
rtems_unsigned32 count;
uint32_t count;
printf("%s - broadcast send b1 ...\n", name_string());
mq_2.broadcast(b1, strlen(b1) + 1, count);
@@ -668,7 +668,7 @@ void Task1::print_mode(rtems_mode mode, rtems_mode mask)
EndTask::EndTask(const char* name,
const rtems_task_priority initial_priority,
const rtems_unsigned32 stack_size)
const uint32_t stack_size)
: rtemsTask(name, initial_priority, stack_size, RTEMS_NO_PREEMPT)
{
}

View File

@@ -22,7 +22,7 @@
Task2::Task2(const char* name,
const rtems_task_priority initial_priority,
const rtems_unsigned32 stack_size)
const uint32_t stack_size)
: rtemsTask(name, initial_priority, stack_size, RTEMS_NO_PREEMPT)
{
}

View File

@@ -22,7 +22,7 @@
Task3::Task3(const char* name,
const rtems_task_priority initial_priority,
const rtems_unsigned32 stack_size)
const uint32_t stack_size)
: rtemsTask(name, initial_priority, stack_size, RTEMS_NO_PREEMPT)
{
}
@@ -44,7 +44,7 @@ void Task3::screen6()
{
char in[100];
char out[100];
rtems_unsigned32 size;
uint32_t size;
bool loopback = true;
while (loopback)

View File

@@ -30,7 +30,7 @@ rtems_task Init(
rtems_task_argument argument
)
{
rtems_unsigned32 index;
uint32_t index;
rtems_status_code status;
puts( "\n\n*** RATE MONOTONIC PERIOD STATISTICS TEST ***" );

View File

@@ -18,7 +18,7 @@
/* types */
struct counters {
rtems_unsigned32 count[6];
uint32_t count[6];
};
/* functions */

View File

@@ -23,19 +23,19 @@
#include <rtems/cpuuse.h>
#include <rtems/rtmonuse.h>
rtems_unsigned32 Periods[6] = { 0, 2, 2, 2, 2, 100 };
rtems_unsigned32 Iterations[6] = { 0, 50, 50, 50, 50, 1 };
uint32_t Periods[6] = { 0, 2, 2, 2, 2, 100 };
uint32_t Iterations[6] = { 0, 50, 50, 50, 50, 1 };
rtems_task_priority Priorities[6] = { 0, 1, 1, 3, 4, 5 };
rtems_task Task_1_through_5(
rtems_unsigned32 argument
uint32_t argument
)
{
rtems_id rmid;
rtems_id test_rmid;
rtems_unsigned32 index;
rtems_unsigned32 pass;
rtems_unsigned32 failed;
uint32_t index;
uint32_t pass;
uint32_t failed;
rtems_status_code status;
status = rtems_rate_monotonic_create( argument, &rmid );

View File

@@ -19,7 +19,7 @@ void b() {}
void blow_stack( void )
{
volatile unsigned32 *low, *high;
volatile uint32_t *low, *high;
unsigned char *area;
b();
@@ -30,8 +30,8 @@ b();
area = (unsigned char *)_Thread_Executing->Start.Initial_stack.area;
low = (volatile unsigned32 *) (area + HEAP_OVERHEAD);
high = (volatile unsigned32 *)
low = (volatile uint32_t *) (area + HEAP_OVERHEAD);
high = (volatile uint32_t *)
(area + _Thread_Executing->Start.Initial_stack.size - 16);