Examples of lsh()


Examples of org.vmmagic.unboxed.Word.lsh()

     * @param vmAddress
     */
    private final void mapPage(Address vmAddress, Address physAddr, Extent pageSize, boolean debug) {
        // Setup the pdir structures
        final Word pdirIdx = vmAddress.toWord().rshl(22);
        final Address pdirEntryPtr = UnsafeX86.getCR3().add(pdirIdx.lsh(2));
        Word entry = pdirEntryPtr.loadWord();
        if (entry.and(Word.fromIntZeroExtend(PF_PRESENT)).isZero()) {
            final Word pagePtr;
            if (physAddr.isMax()) {
                // Get a free page
View Full Code Here

Examples of org.vmmagic.unboxed.Word.lsh()

    private final void removeVirtualMMap(Word start, Word end, Extent pageSize) {
        final Address pdir = UnsafeX86.getCR3();

        for (Word ptr = start; ptr.LT(end); ptr = ptr.add(pageSize)) {
            final Word pdirIdx = ptr.rshl(22);
            pdir.add(pdirIdx.lsh(2)).store(Word.zero());
        }
    }
}
View Full Code Here

Examples of org.vmmagic.unboxed.Word.lsh()

                setInUse(nr.add(i), true);
            }
            // Return the address of block "nr".
            allocatedBlocks = allocatedBlocks.add(reqBlockCount);
            nextBlockNr = nr.add(reqBlockCount);
            return startPtr.add(nr.lsh(BLOCK_SIZE_SHIFT));
        } finally {
            exit();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.