示例#1
0
        public void AddDataPage(uint pAddr, uint vAddr)
        {
            //BasicConsole.WriteLine("Adding data page...");
            if (!DataPages.Contains(vAddr))
            {
                DataPages.Add(vAddr, pAddr);
            }
#if DEBUG
            else
            {
                BasicConsole.WriteLine("Cannot add data page to memory layout! Data virtual page already mapped in the memory layout.");
                //ExceptionMethods.PrintStackTrace();
                //ExceptionMethods.Throw(new FOS_System.Exception("Cannot add data page to memory layout! Data virtual page already mapped in the memory layout."));
            }
#endif
        }
示例#2
0
        public void AddDataPage(uint pAddr, uint vAddr)
        {
            //bool reenable = Processes.Scheduler.Enabled;
            //if (reenable)
            //{
            //    Processes.Scheduler.Disable();
            //}

            //BasicConsole.WriteLine("Adding data page...");
            if (!DataPages.Contains(vAddr))
            {
                DataPages.Add(vAddr, pAddr);
            }

            //if (reenable)
            //{
            //    Processes.Scheduler.Enable();
            //}
        }