Fixed a warning.
Replaced "int state" with "cpu_status state" where appropriate. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2160 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+17
-16
@@ -205,7 +205,7 @@ static struct thread *
|
|||||||
create_thread_struct(const char *name)
|
create_thread_struct(const char *name)
|
||||||
{
|
{
|
||||||
struct thread *t;
|
struct thread *t;
|
||||||
int state;
|
cpu_status state;
|
||||||
char temp[64];
|
char temp[64];
|
||||||
|
|
||||||
state = disable_interrupts();
|
state = disable_interrupts();
|
||||||
@@ -227,7 +227,7 @@ create_thread_struct(const char *name)
|
|||||||
t->team = NULL;
|
t->team = NULL;
|
||||||
t->cpu = NULL;
|
t->cpu = NULL;
|
||||||
t->sem_blocking = -1;
|
t->sem_blocking = -1;
|
||||||
t->fault_handler = NULL;
|
t->fault_handler = 0;
|
||||||
t->page_faults_allowed = 1;
|
t->page_faults_allowed = 1;
|
||||||
t->kernel_stack_region_id = -1;
|
t->kernel_stack_region_id = -1;
|
||||||
t->kernel_stack_base = 0;
|
t->kernel_stack_base = 0;
|
||||||
@@ -335,7 +335,7 @@ _create_thread(const char *name, team_id pid, addr entry, void *args, int priori
|
|||||||
{
|
{
|
||||||
struct thread *t;
|
struct thread *t;
|
||||||
struct team *p;
|
struct team *p;
|
||||||
int state;
|
cpu_status state;
|
||||||
char stack_name[64];
|
char stack_name[64];
|
||||||
bool abort = false;
|
bool abort = false;
|
||||||
|
|
||||||
@@ -639,9 +639,9 @@ dump_next_thread_in_team(int argc, char **argv)
|
|||||||
static int
|
static int
|
||||||
get_death_stack(void)
|
get_death_stack(void)
|
||||||
{
|
{
|
||||||
int i;
|
cpu_status state;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
int state;
|
int i;
|
||||||
|
|
||||||
acquire_sem(death_stack_sem);
|
acquire_sem(death_stack_sem);
|
||||||
|
|
||||||
@@ -733,9 +733,9 @@ thread_init(kernel_args *ka)
|
|||||||
sprintf(temp, "idle_thread%d_kstack", i);
|
sprintf(temp, "idle_thread%d_kstack", i);
|
||||||
t->kernel_stack_region_id = vm_find_region_by_name(vm_get_kernel_aspace_id(), temp);
|
t->kernel_stack_region_id = vm_find_region_by_name(vm_get_kernel_aspace_id(), temp);
|
||||||
region = vm_get_region_by_id(t->kernel_stack_region_id);
|
region = vm_get_region_by_id(t->kernel_stack_region_id);
|
||||||
if (!region) {
|
if (!region)
|
||||||
panic("error finding idle kstack region\n");
|
panic("error finding idle kstack region\n");
|
||||||
}
|
|
||||||
t->kernel_stack_base = region->base;
|
t->kernel_stack_base = region->base;
|
||||||
vm_put_region(region);
|
vm_put_region(region);
|
||||||
hash_insert(thread_hash, t);
|
hash_insert(thread_hash, t);
|
||||||
@@ -868,7 +868,7 @@ thread_exit2(void *_args)
|
|||||||
RELEASE_THREAD_LOCK();
|
RELEASE_THREAD_LOCK();
|
||||||
|
|
||||||
// ToDo: is this correct at this point?
|
// ToDo: is this correct at this point?
|
||||||
restore_interrupts(args.int_state);
|
//restore_interrupts(args.int_state);
|
||||||
|
|
||||||
TRACE(("thread_exit2: done removing thread from lists\n"));
|
TRACE(("thread_exit2: done removing thread from lists\n"));
|
||||||
|
|
||||||
@@ -888,7 +888,7 @@ thread_exit2(void *_args)
|
|||||||
void
|
void
|
||||||
thread_exit(void)
|
thread_exit(void)
|
||||||
{
|
{
|
||||||
int state;
|
cpu_status state;
|
||||||
struct thread *t = thread_get_current_thread();
|
struct thread *t = thread_get_current_thread();
|
||||||
struct team *p = t->team;
|
struct team *p = t->team;
|
||||||
bool delete_team = false;
|
bool delete_team = false;
|
||||||
@@ -1047,7 +1047,7 @@ int
|
|||||||
thread_wait_on_thread(thread_id id, int *retcode)
|
thread_wait_on_thread(thread_id id, int *retcode)
|
||||||
{
|
{
|
||||||
sem_id sem;
|
sem_id sem;
|
||||||
int state;
|
cpu_status state;
|
||||||
struct thread *t;
|
struct thread *t;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
@@ -1090,7 +1090,7 @@ struct thread *
|
|||||||
thread_get_thread_struct(thread_id id)
|
thread_get_thread_struct(thread_id id)
|
||||||
{
|
{
|
||||||
struct thread *t;
|
struct thread *t;
|
||||||
int state;
|
cpu_status state;
|
||||||
|
|
||||||
state = disable_interrupts();
|
state = disable_interrupts();
|
||||||
GRAB_THREAD_LOCK();
|
GRAB_THREAD_LOCK();
|
||||||
@@ -1120,7 +1120,7 @@ thread_get_thread_struct_locked(thread_id id)
|
|||||||
void
|
void
|
||||||
thread_atkernel_entry(void)
|
thread_atkernel_entry(void)
|
||||||
{
|
{
|
||||||
int state;
|
cpu_status state;
|
||||||
struct thread *t;
|
struct thread *t;
|
||||||
bigtime_t now;
|
bigtime_t now;
|
||||||
|
|
||||||
@@ -1146,7 +1146,8 @@ thread_atkernel_entry(void)
|
|||||||
void
|
void
|
||||||
thread_atkernel_exit(void)
|
thread_atkernel_exit(void)
|
||||||
{
|
{
|
||||||
int state, global_resched;
|
cpu_status state;
|
||||||
|
int global_resched;
|
||||||
struct thread *t;
|
struct thread *t;
|
||||||
bigtime_t now;
|
bigtime_t now;
|
||||||
|
|
||||||
@@ -1179,7 +1180,7 @@ send_data(thread_id tid, int32 code, const void *buffer, size_t buffer_size)
|
|||||||
{
|
{
|
||||||
struct thread *target;
|
struct thread *target;
|
||||||
sem_id cached_sem;
|
sem_id cached_sem;
|
||||||
int state;
|
cpu_status state;
|
||||||
status_t rv;
|
status_t rv;
|
||||||
cbuf *data;
|
cbuf *data;
|
||||||
|
|
||||||
@@ -1288,7 +1289,7 @@ has_data(thread_id thread)
|
|||||||
status_t
|
status_t
|
||||||
_get_thread_info(thread_id id, thread_info *info, size_t size)
|
_get_thread_info(thread_id id, thread_info *info, size_t size)
|
||||||
{
|
{
|
||||||
int state;
|
cpu_status state;
|
||||||
status_t rc = B_OK;
|
status_t rc = B_OK;
|
||||||
struct thread *t;
|
struct thread *t;
|
||||||
|
|
||||||
@@ -1331,7 +1332,7 @@ err:
|
|||||||
status_t
|
status_t
|
||||||
_get_next_thread_info(team_id tid, int32 *cookie, thread_info *info, size_t size)
|
_get_next_thread_info(team_id tid, int32 *cookie, thread_info *info, size_t size)
|
||||||
{
|
{
|
||||||
int state;
|
cpu_status state;
|
||||||
int slot;
|
int slot;
|
||||||
status_t rc = B_BAD_VALUE;
|
status_t rc = B_BAD_VALUE;
|
||||||
struct team *team;
|
struct team *team;
|
||||||
|
|||||||
Reference in New Issue
Block a user