Esempio n. 1
0
        /// <summary>
        /// Allocates the memory.
        /// </summary>
        /// <param name="size">The size.</param>
        /// <param name="alignment">The alignment.</param>
        /// <returns></returns>
        public override Memory AllocateMemory(uint size, uint alignment)
        {
            var address = KernelMemory.AllocateMemory(size);

            return(new Memory(address, size));
        }
Esempio n. 2
0
 public static void SetInitialMemory()
 {
     KernelMemory.SetInitialMemory(Address.GCInitialMemory, 0x01000000);
 }
Esempio n. 3
0
        /// <summary>
        /// Allocates the virtual memory.
        /// </summary>
        /// <param name="size">The size.</param>
        /// <param name="alignment">The alignment.</param>
        /// <returns></returns>
        public override ConstrainedPointer AllocateVirtualMemory(uint size, uint alignment)
        {
            var address = KernelMemory.AllocateVirtualMemory(size);

            return(new ConstrainedPointer(address, size));
        }
Esempio n. 4
0
        /// <summary>
        /// Allocates the memory.
        /// </summary>
        /// <param name="size">The size.</param>
        /// <param name="alignment">The alignment.</param>
        /// <returns></returns>
        IMemory IHardwareAbstraction.AllocateMemory(uint size, uint alignment)
        {
            uint address = KernelMemory.AllocateMemory(size);

            return(new Memory(address, size));
        }