URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
/*
|
/*
|
#notarget: cris*-*-elf
|
#notarget: cris*-*-elf
|
*/
|
*/
|
|
|
#include <sched.h>
|
#include <sched.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
int main (void)
|
int main (void)
|
{
|
{
|
int Min = sched_get_priority_min (SCHED_OTHER);
|
int Min = sched_get_priority_min (SCHED_OTHER);
|
int Max = sched_get_priority_max (SCHED_OTHER);
|
int Max = sched_get_priority_max (SCHED_OTHER);
|
if (Min != 0 || Max != 0)
|
if (Min != 0 || Max != 0)
|
{
|
{
|
fprintf (stderr, "min: %d, max: %d\n", Min, Max);
|
fprintf (stderr, "min: %d, max: %d\n", Min, Max);
|
abort ();
|
abort ();
|
}
|
}
|
printf ("pass\n");
|
printf ("pass\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.