Changeset f8ddd17 in mainline for kernel/generic/include/ddi/ddi.h


Ignore:
Timestamp:
2006-12-09T20:20:50Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b82a13c
Parents:
9ab9c2ec
Message:

Rework support for virtually indexed cache.
Instead of repeatedly flushing the data cache, which was a huge overkill, refuse to create an illegal address alias
in the kernel (again) and allocate appropriate page color in userspace instead. Extend the detection also to
SYS_PHYSMEM_MAP syscall.

Add support for tracking physical memory areas mappable by SYS_PHYSMEM_MAP.

Lots of coding style changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ddi/ddi.h

    r9ab9c2ec rf8ddd17  
    4040#include <typedefs.h>
    4141
    42 unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, unative_t pages,
    43                          unative_t flags);
     42/** Structure representing contiguous physical memory area. */
     43typedef struct {
     44        uintptr_t pbase;        /**< Physical base of the area. */
     45        uintptr_t vbase;        /**< Virtual base of the area. */
     46        count_t frames;         /**< Number of frames in the area. */
     47        bool cacheable;         /**< Cacheability. */
     48} parea_t;
     49
     50extern void ddi_init(void);
     51extern void ddi_parea_register(parea_t *parea);
     52
     53extern unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base,
     54        unative_t pages, unative_t flags);
    4455extern unative_t sys_iospace_enable(ddi_ioarg_t *uspace_io_arg);
    4556extern unative_t sys_preempt_control(int enable);
Note: See TracChangeset for help on using the changeset viewer.