Пример #1
0
			public void Init()
			{
				var High = Info.Attribute.HasFlag(VplAttributeEnum.PSP_VPL_ATTR_ADDR_HIGH);

#if true
				ExternalMemoryAnchor = High ? Hle.MemoryPartition.Anchor.High : Hle.MemoryPartition.Anchor.Low;
				InternalMemoryAnchor = Hle.MemoryPartition.Anchor.Low;
#else
				InternalMemoryAnchor = High ? Hle.MemoryPartition.Anchor.High : Hle.MemoryPartition.Anchor.Low;
				ExternalMemoryAnchor = Hle.MemoryPartition.Anchor.Low;
#endif

				this.MemoryPartition = ThreadManForUser.MemoryManager.GetPartition(PartitionId).Allocate(
					Info.PoolSize,
					ExternalMemoryAnchor,
					Name: "<Vpl> : " + Info.Name
				);
			}
Пример #2
0
            public void Init()
            {
                var High = Info.Attribute.HasFlag(VplAttributeEnum.PSP_VPL_ATTR_ADDR_HIGH);

#if true
                ExternalMemoryAnchor = High ? Hle.MemoryPartition.Anchor.High : Hle.MemoryPartition.Anchor.Low;
                //InternalMemoryAnchor = Hle.MemoryPartition.Anchor.High;
                InternalMemoryAnchor       = Hle.MemoryPartition.Anchor.Low;
                InternalMemoryAnchorReturn = Hle.MemoryPartition.Anchor.Low;
#else
                InternalMemoryAnchor = High ? Hle.MemoryPartition.Anchor.High : Hle.MemoryPartition.Anchor.Low;
                ExternalMemoryAnchor = Hle.MemoryPartition.Anchor.Low;
#endif

                this.MemoryPartition = ThreadManForUser.MemoryManager.GetPartition(PartitionId).Allocate(
                    Info.PoolSize,
                    ExternalMemoryAnchor,
                    Name: "<Vpl> : " + Info.Name
                    );
            }