/kernel/branches/kolibri_pe/include/mm.h |
17,6 → 17,7 |
void *parent; /**< If allocated by slab, this points there */ |
} frame_t; |
|
|
typedef struct |
{ |
SPINLOCK_DECLARE(lock); /**< this lock protects everything below */ |
53,7 → 54,6 |
#define PG_UW 7 |
|
|
|
#define PAGE_SIZE 4096 |
#define PAGE_WIDTH 12 |
|
/kernel/branches/kolibri_pe/include/pe.h |
198,9 → 198,9 |
|
bool validate_pe(void *raw, size_t raw_size, bool is_exec); |
|
|
dll_t * find_dll(link_t *list, const char *name); |
|
|
addr_t __fastcall load_image(const char *path); |
|
void create_image(addr_t img_base, addr_t raw, bool force_clear) asm ("CreateImage"); |
/kernel/branches/kolibri_pe/include/slab.h |
80,3 → 80,33 |
void* __fastcall slab_alloc(slab_cache_t *cache, int flags); |
void __fastcall slab_free(slab_cache_t *cache, void *obj); |
|
|
typedef struct |
{ |
int left; |
int top; |
int right; |
int bottom; |
}rect_t; |
|
typedef struct |
{ |
link_t link; |
rect_t wrect; |
rect_t crect; |
rect_t hrect; |
|
color_t clr_workarea; |
color_t clr_titlebar; |
color_t clr_frames; |
|
u32_t style; |
u32_t state; |
|
int slot; |
|
link_t queue; |
u32_t qflags; |
|
char *caption; |
}window_t; |