Exemplo n.º 1
0
 public static bool Setup(uint magic, uint pointer, uint kernelStart, uint kernelEnd)
 {
     if (magic != (uint)SharpOS.Kernel.Multiboot.Identifiers.BootLoader)
     {
         Info        = null;
         KernelStart = 0;
         KernelEnd   = 0;
         return(false);
     }
     else
     {
         Info        = (Multiboot.InformationTable *)pointer;
         KernelStart = kernelStart;
         KernelEnd   = kernelEnd;
         return(true);
     }
 }
Exemplo n.º 2
0
		public static bool Setup(uint magic, uint pointer, uint kernelStart, uint kernelEnd)
		{
			if (magic != (uint)SharpOS.Kernel.Multiboot.Identifiers.BootLoader) {
				Info = null;
				KernelStart = 0;
				KernelEnd = 0;
				return false;
			} else {
				Info = (Multiboot.InformationTable*) pointer;
				KernelStart = kernelStart;
				KernelEnd = kernelEnd;
				return true;
			}
		}