Package org.jnode.system.resource

Examples of org.jnode.system.resource.ResourceNotFreeException


            } else {
                if (thread.isShared()) {
                    if (shared) {
                        thread.addHandler(owner, handler);
                    } else {
                        throw new ResourceNotFreeException(
                            "IRQ " + irq + " is already claimed, but you don't want to share");
                    }
                } else {
                    if (shared) {
                        throw new ResourceNotFreeException("IRQ " + irq + " is already claimed, but not shared");
                    } else {
                        //Unsafe.debug("IRQ was already claim");
                        throw new ResourceNotFreeException("IRQ " + irq + " is not free");
                    }
                }
            }
        }
        if (newThread != null) {
View Full Code Here


        if ((dmanr < 0) || (dmanr >= DMA.MAX)) {
            throw new IllegalArgumentException("Invalid dmanr " + dmanr);
        }

        if (channels[dmanr] != null) {
            throw new ResourceNotFreeException("DMA channel " + dmanr + " is in use");
        }
        channels[dmanr] = new X86DMAChannel(this, owner, dmanr);
        return channels[dmanr];
    }
View Full Code Here

            this.redMaskShift = getMaskShift(redMask);
            this.greenMaskShift = getMaskShift(greenMask);
            this.blueMaskShift = getMaskShift(blueMask);
            this.alphaMaskShift = getMaskShift(alphaMask);
        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException(ex);
        }
    }
View Full Code Here

            log.debug("Found ATI " + model + ", FB at 0x" + NumberUtils.hex(fbBase) + "s0x" +
                    NumberUtils.hex(memSize));

        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException(ex);
        }

        this.oldVgaState = new Mach64VgaState();
        this.currentState = new Mach64VgaState();
    }
View Full Code Here

            this.redMaskShift = getMaskShift(redMask);
            this.greenMaskShift = getMaskShift(greenMask);
            this.blueMaskShift = getMaskShift(blueMask);
            this.alphaMaskShift = getMaskShift(alphaMask);
        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException(ex);
        }
    }
View Full Code Here

                // Read monitor information
                fbinfo.readFPIInfo(rom);
            }

        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException(ex);
        }

        // Read the current state of the device
        this.oldVgaState = new RadeonVgaState(architecture, fbinfo.hasCRTC2, vgaIO);
        this.currentState = new RadeonVgaState(architecture, fbinfo.hasCRTC2, vgaIO);
View Full Code Here

                    rm.claimMemoryResource(device, Address.fromIntZeroExtend(fbBase), fbSize,
                            ResourceManager.MEMMODE_NORMAL);
            this.vgaIO = new NVidiaVgaIO(mmio, videoRam);

        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException(ex);
        }
        this.hwCursor = new NVidiaHardwareCursor(vgaIO, architecture);
        this.acc = new NVidiaAcceleration(vgaIO, architecture);
        this.memSize = getMemorySize();
        int bootInfo;
View Full Code Here

                    ResourceManager.MEMMODE_NORMAL);

            this.vgaIO = new CirrusMMIO(mmio, ports);

        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException(ex);
        }
    }
View Full Code Here

            ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            vgaIO = claimPorts(rm, owner, VGA_FIRST_PORT, VGA_LAST_PORT - VGA_FIRST_PORT + 1);
            this.mem = mem;
            current_mode = getColorMode();
        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException("Cannot find ResourceManager", ex);
        }
    }
View Full Code Here

            vgaMem = rm.claimMemoryResource(owner, Address.fromIntZeroExtend(0xa0000), 0x9600,
                ResourceManager.MEMMODE_NORMAL);
            state640x480x16 = new VgaState(seq, crt, gra, att, 0xe3, cm);
            oldState = new VgaState();
        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException("ResourceManager not found", ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.system.resource.ResourceNotFreeException

Copyright © 2018 www.massapicom. 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.