Changeset 7
- Timestamp:
- 06/12/07 14:36:34 (5 years ago)
- Files:
-
- trunk/build.bat (added)
- trunk/osian/kernel/boot/Multiboot.d (modified) (3 diffs)
- trunk/osian/kernel/rtl.d (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/osian/kernel/boot/Multiboot.d
r5 r7 154 154 //convert string pointer from physical to virtual address 155 155 char * cmdLine = 156 cast(char *)(mboot.commandLine - kernel.virtual_to_physical);156 cast(char *)(mboot.commandLine - cast(uint)kernel.virtual_to_physical); 157 157 158 158 //copy command line string to 'commandLine' and convert it to dchar … … 163 163 164 164 MemoryMap * memMap = 165 cast(MemoryMap *)(mboot.memoryMap - 4 - kernel.virtual_to_physical);165 cast(MemoryMap *)(mboot.memoryMap - 4 - cast(uint)kernel.virtual_to_physical); 166 166 for(i = 0; 167 167 i < mboot.memoryMapLength; … … 177 177 //copy modules information; convert pointers to virtual 178 178 ModuleMap * modMap = 179 cast(ModuleMap *)(mboot.moduleStructure - kernel.virtual_to_physical);179 cast(ModuleMap *)(mboot.moduleStructure - cast(uint)kernel.virtual_to_physical); 180 180 for(i = 0; i < mboot.numModules; i++, modMap++) 181 181 { 182 182 modules[modulesCount].moduleStart = 183 cast(void *)(modMap[i].moduleStart - kernel.virtual_to_physical);183 cast(void *)(modMap[i].moduleStart - cast(uint)kernel.virtual_to_physical); 184 184 modules[modulesCount].moduleLength = 185 185 modMap[i].moduleEnd - modMap[i].moduleStart + 1; 186 186 //copy argument string 187 187 char * args = 188 cast(char *)(modMap.moduleArguments - kernel.virtual_to_physical);188 cast(char *)(modMap.moduleArguments - cast(uint)kernel.virtual_to_physical); 189 189 for(int j = 0; 190 190 (modules[modulesCount].arguments[j] = cast(dchar)(args[j])) != '\0'; 191 j++) ;191 j++){} 192 192 193 193 //make an entry in memory map for this module, too
