~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to kernel/generic/include/mm/as.h

  • Committer: Jiri Svoboda
  • Date: 2010-01-23 14:25:32 UTC
  • mto: This revision was merged to the branch mainline in revision 222.
  • Revision ID: jiri@wiwaxia-20100123142532-bsv3g3piyluvpub5
Fix THREAD_READ, add AREAS_READ Udebug method. Add task dump utility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#ifndef KERN_AS_H_
36
36
#define KERN_AS_H_
37
37
 
 
38
#ifdef KERNEL
 
39
#include <arch/types.h>
 
40
#else
 
41
#include <sys/types.h>
 
42
#endif
 
43
 
38
44
/** Address space area flags. */
39
45
#define AS_AREA_READ            1
40
46
#define AS_AREA_WRITE           2
41
47
#define AS_AREA_EXEC            4
42
48
#define AS_AREA_CACHEABLE       8
43
49
 
 
50
/** Address space area info exported to userspace. */
 
51
typedef struct {
 
52
        /** Starting address */
 
53
        uintptr_t start_addr;
 
54
 
 
55
        /** Area size */
 
56
        size_t size;
 
57
 
 
58
        /** Area flags */
 
59
        int flags;
 
60
} as_area_info_t;
 
61
 
44
62
#ifdef KERNEL
45
63
 
46
64
#include <arch/mm/page.h>
267
285
extern unative_t sys_as_area_destroy(uintptr_t address);
268
286
 
269
287
/* Introspection functions. */
 
288
extern void as_get_area_info(as_t *as, as_area_info_t **obuf, size_t *osize);
270
289
extern void as_print(as_t *as);
271
290
 
272
291
#endif /* KERNEL */