Examples of VmProcessor


Examples of org.jnode.vm.scheduler.VmProcessor

    @PrivilegedActionPragma
    final void startup(ResourceManager rm) throws ResourceNotFreeException {
        // Save resource manager, so when this processor starts, it can be
        // used right away.
        this.rm = rm;
        final VmProcessor me = current();
        Unsafe.debug("Starting up CPU " + getIdString() + " from "
            + me.getIdString() + '\n');

        // Setup kernel structures
        setupStructures();

        // Setup the boot code
View Full Code Here

Examples of org.jnode.vm.scheduler.VmProcessor

            }
            if (frame == null) {
                Unsafe.debug("frame==null");
                return null;
            }
            final VmProcessor proc = VmProcessor.current();
            final VmStackReader reader = proc.getArchitecture()
                .getStackReader();

            final VmType exClass = VmMagic.getObjectType(ex);
            final VmMethod method = reader.getMethod(frame);
            if (method == null) {
View Full Code Here

Examples of org.jnode.vm.scheduler.VmProcessor

        new LsIRQCommand().execute(args);
    }
   
    @Override
    public void execute() {
        final VmProcessor proc = VmProcessor.current();
        final IRQManager irqMgr = proc.getIRQManager();
        final int max = irqMgr.getNumIRQs();
        for (int i = 0; i < max; i++) {
            getOutput().getPrintWriter().println("IRQ" + i + '\t' + irqMgr.getIrqCount(i) + '\t'
                    + irqMgr.getHandlerInfo(i));
        }
View Full Code Here

Examples of org.jnode.vm.scheduler.VmProcessor

    /**
     * Execute this command
     */
    public void execute() {
        final VmProcessor cpu = VmProcessor.current();
        PrintWriter out = getOutput().getPrintWriter();
        out.println(cpu.getCPUID());
        out.println(cpu.getPerformanceCounters());
    }
View Full Code Here

Examples of org.jnode.vm.scheduler.VmProcessor

            // Create the VM
            final VmImpl vm = new VmImpl(version, arch, clsMgr.getSharedStatics(), debug, clsMgr, piRegistry);
            blockedObjects.add(vm);
            blockedObjects.add(VmUtils.getVm().getCompiledMethods());

            final VmProcessor proc = createProcessor(vm, clsMgr.getSharedStatics(),
                clsMgr.getIsolatedStatics());
            log("Building for " + proc.getCPUID());

            final Label clInitCaller = new Label("$$clInitCaller");
            VmType<?> systemClasses[] = VmType.initializeForBootImage(clsMgr);
            for (int i = 0; i < systemClasses.length; i++) {
                clsMgr.addLoadedClass(systemClasses[i].getName(),
View Full Code Here

Examples of org.jnode.vm.scheduler.VmProcessor

     *
     * @param sf
     * @return The address of the static field data
     */
    private static final Address getStaticFieldAddress(VmStaticField sf) {
        final VmProcessor proc = VmProcessor.current();
        final Address tablePtr;
        final int offset;
        if (sf.isShared()) {
            offset = sf.getSharedStaticsIndex() << 2;
            tablePtr = VmMagic.getArrayData(proc.getSharedStaticsTable());
        } else {
            offset = sf.getIsolatedStaticsIndex() << 2;
            tablePtr = VmMagic.getArrayData(proc.getIsolatedStaticsTable());
        }
        return tablePtr.add(offset);
    }
View Full Code Here

Examples of org.jnode.vm.scheduler.VmProcessor

    /**
     * @see org.jnode.vm.VmReflection#getStaticFieldAddress(org.jnode.vm.classmgr.VmStaticField)
     */
    public static Object staticFieldBase(Unsafe instance, Field f) {
        final VmProcessor proc = VmProcessor.current();
    final Address tablePtr;
        VmStaticField sf = (VmStaticField) getVmField(f);
        if (sf.isShared()) {
            tablePtr = VmMagic.getArrayData(proc.getSharedStaticsTable());
        } else {
            tablePtr = VmMagic.getArrayData(proc.getIsolatedStaticsTable());
        }
    Object ret = tablePtr.loadObjectReference().toObject();
        if(sf.isStatic() && sf.isFinal() && f.getType().equals(String.class))
            ret = new IrregularStaticAccess(tablePtr.toLong());
        else
View Full Code Here

Examples of org.jnode.vm.scheduler.VmProcessor

    /**
     * Execute this command
     */
    public void execute() {
        final VmProcessor cpu = VmProcessor.current();
        PrintWriter out = getOutput().getPrintWriter();
        out.println(cpu.getCPUID());
        out.println(cpu.getPerformanceCounters());
    }
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.