diff options
author | Alexis211 <alexis211@gmail.com> | 2010-02-06 20:51:56 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-02-06 20:51:56 +0100 |
commit | 6a52d123672b7a00af6e22b4c138205be2042a94 (patch) | |
tree | cd9b0a13490159369a66c850850596fd4b418139 /src/stem/mem/seg.h | |
parent | 3558f18daf50281ee1cd68cca96cd967dbac04ba (diff) | |
download | TCE-6a52d123672b7a00af6e22b4c138205be2042a94.tar.gz TCE-6a52d123672b7a00af6e22b4c138205be2042a94.zip |
Reorganisation
Diffstat (limited to 'src/stem/mem/seg.h')
-rw-r--r-- | src/stem/mem/seg.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/stem/mem/seg.h b/src/stem/mem/seg.h deleted file mode 100644 index 022d38e..0000000 --- a/src/stem/mem/seg.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DEF_SEG_H -#define DEF_SEG_H - -#include "paging.h" - -struct segment_map; -struct segment { - void* seg_data; - int mappings; - - struct segment_map* (*map)(struct segment* seg, struct page_directory* pagedir); - void (*unmap)(struct segment_map*); - void (*delete)(struct segment* seg); - int (*handle_fault)(struct segment_map* map, size_t addr, int write); //0 if ok, 1 if segfault -}; - -struct segment_map { - struct segment* seg; - struct page_directory* pagedir; - size_t start, len; - struct segment_map *next; -}; - -struct segment_map *seg_map(struct segment* seg, struct page_directory* pagedir); -void seg_unmap(struct segment_map* map); - -/// ************************************* SIMPLESEG stuff ***************** - -struct simpleseg { - int writable; - size_t start, len; -}; - -struct segment* simpleseg_make(size_t start, size_t len, int writable); -struct segment_map* simpleseg_map(struct segment* seg, struct page_directory* pagedir); -void simpleseg_unmap(struct segment_map*); -void simpleseg_delete(struct segment *seg); -int simpleseg_handleFault(struct segment_map* map, size_t addr, int write); - -#endif |