Date:2010-07-12 14:59:22 (13 years 8 months ago)
Author:Bas Wijnen
Commit:a2add9a1d674af82ab8010f5b0956187fc55dc48
Message:more fixes by Xiangfu Liu <xiangfu@sharism.cc>

Files: iris.hhp (2 diffs)
mips/nanonote/Makefile.arch (1 diff)

Change Details

iris.hhp
464464        bool set_flags (unsigned set, unsigned reset = 0):
465465            call (CAP_MASTER_DIRECT | SET_FLAGS, Num (set, set | reset))
466466            return recv.data[0].l == NO_ERROR
467        unsigned physical_address ():
467        unsigned long physical_address ():
468468            return my_thread.ocall (*this, CAP_MASTER_DIRECT | Thread::PRIV_PHYSICAL_ADDRESS).l
469        void alloc_physical (unsigned address, bool cachable, bool freeable):
469        void alloc_physical (unsigned long address, bool cachable, bool freeable):
470470            my_thread.ocall (*this, CAP_MASTER_DIRECT | Thread::PRIV_ALLOC_PHYSICAL, (address & PAGE_MASK) | (cachable ? 1 : 0) | (freeable ? 2 : 0))
471471
472472    struct Listitem : public Cap:
...... 
544544        void destroy (Cap target):
545545            ocall (target, CAP_MASTER_DIRECT | DESTROY)
546546        // TODO: LIST
547        bool map (Cap page, unsigned address):
547        bool map (Cap page, unsigned long address):
548548            return ocall (page, CAP_MASTER_DIRECT | MAP, address).l == NO_ERROR
549549        bool unmap (Cap page):
550550            return map (page, ~0)
551551        Page mapping (void *address):
552            icall (CAP_MASTER_DIRECT | MAPPING, Num ((unsigned)address))
552            icall (CAP_MASTER_DIRECT | MAPPING, Num ((unsigned long)address))
553553            return get_arg ()
554554        unsigned get_limit ():
555555            return call (CAP_MASTER_DIRECT | GET_LIMIT).l
mips/nanonote/Makefile.arch
9797    while : ; do $(MAKE) server ; done
9898
9999setup:
100    x-terminal-emulator -e make debug
101    x-terminal-emulator -e make servers
100    x-terminal-emulator -e make debug &
101    x-terminal-emulator -e make servers &
102102
103103ARCH_CLEAN_FILES = $(boot_sources) $(addsuffix .elf,$(boot_threads)) $(arch_headers) devices.hh keys.hh mips/*.o mips/nanonote/*.o source/charset.data iris.elf iris.raw mips/nanonote/sdram-setup.elf mips/nanonote/sdram-setup.raw
104104

Archive Download the corresponding diff file

Branches:
master



interactive