URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 157 |
Rev 223 |
/*
|
/*
|
#notarget: cris*-*-elf
|
#notarget: cris*-*-elf
|
*/
|
*/
|
|
|
#include <sched.h>
|
#include <sched.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <string.h>
|
#include <string.h>
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
struct sched_param sb;
|
struct sched_param sb;
|
memset (&sb, -1, sizeof sb);
|
memset (&sb, -1, sizeof sb);
|
if (sched_getparam (getpid (), &sb) != 0
|
if (sched_getparam (getpid (), &sb) != 0
|
|| sb.sched_priority != 0)
|
|| sb.sched_priority != 0)
|
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.