--- np2/i386c/ia32/task.h 2005/03/12 12:32:54 1.7 +++ np2/i386c/ia32/task.h 2011/01/15 17:17:23 1.9 @@ -1,5 +1,3 @@ -/* $Id: task.h,v 1.7 2005/03/12 12:32:54 monaka Exp $ */ - /* * Copyright (c) 2003 NONAKA Kimihiro * All rights reserved. @@ -37,13 +35,12 @@ void get_stack_pointer_from_tss(UINT pl, UINT16 get_backlink_selector_from_tss(void); /* task_switch type */ -enum task_switch_type { +typedef enum { TASK_SWITCH_JMP, TASK_SWITCH_CALL, TASK_SWITCH_IRET, TASK_SWITCH_INTR -}; -typedef enum task_switch_type task_switch_type_t; +} task_switch_type_t; void task_switch(selector_t *selector, task_switch_type_t type);