Rev 1257 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1257 | Rev 1587 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <proc/task.h> |
29 | #include <proc/task.h> |
30 | #include <arch/types.h> |
30 | #include <arch/types.h> |
31 | #include <adt/bitmap.h> |
31 | #include <adt/bitmap.h> |
- | 32 | #include <mm/slab.h> |
|
32 | 33 | ||
33 | /** Perform ia32 specific task initialization. |
34 | /** Perform ia32 specific task initialization. |
34 | * |
35 | * |
35 | * @param t Task to be initialized. |
36 | * @param t Task to be initialized. |
36 | */ |
37 | */ |
37 | void task_create_arch(task_t *t) |
38 | void task_create_arch(task_t *t) |
38 | { |
39 | { |
39 | t->arch.iomapver = 0; |
40 | t->arch.iomapver = 0; |
40 | bitmap_initialize(&t->arch.iomap, NULL, 0); |
41 | bitmap_initialize(&t->arch.iomap, NULL, 0); |
41 | } |
42 | } |
- | 43 | ||
- | 44 | /** Perform ia32 specific task destruction. |
|
- | 45 | * |
|
- | 46 | * @param t Task to be initialized. |
|
- | 47 | */ |
|
- | 48 | void task_destroy_arch(task_t *t) |
|
- | 49 | { |
|
- | 50 | if (t->arch.iomap.map) |
|
- | 51 | free(t->arch.iomap.map); |
|
- | 52 | } |