Comments (10)
this sample code also gives panic message - http://pastehtml.com/view/ea137scgl.html
Mosa.Kernel.x86 VirtualPageAllocator.Reserve(67108864) have pages = 254 (and 16385 was requested)
TotalPages(1040640) < ReserveMemory(33554432)
i added command line argument -m 512M into the ./Run/Run-QEMU.sh
now the system reboots in line
https://github.com/mosa/MOSA-Project/blob/master/Source/Mosa.Kernel.x86/PageTable.cs#L42
from mosa-project.
I've tried to replicate your issues but cannot replicate them on Windows.
Can you please make sure that you have the latest copy of the repository.
Can you please make sure that your setup of QEMU matches the Windows setup.
from mosa-project.
I was able to re-create the problem on Windows by copying the Linux/Mono generated assemblies to Windows.
The test suite runs fine except for a few failed cases related to double/single floating point. But this would not explain the crashes.
from mosa-project.
@tgiphil could it possibly be something to do with Endianess?
If I recall correctly the field value emitter in the Metadata stage doesn't use an endian aware emitter since I kept that code mostly the same.
from mosa-project.
It is definitely related to Page Tables & Directory filling.
I rewrote Mosa.Kernel.x86 PageTable class
and it works for me now.
from mosa-project.
Great! Check it in and I will test on Windows.
from mosa-project.
it looks something like this now:
from mosa-project.
This change exposed what I believe is a bug in the register allocator. It attempts to generate a move between two memory locations - which is not feasible on the x86.
I'll try to hunt it down and fix it tonight.
from mosa-project.
@ArsenShnurkov - I believe the bug has been fixed in ImproveRegisterAllocator branch in my repo. The register allocator was refactored. At the moment the very basic (no thrills) register allocator has been implemented and tested successfully on Windows. However, can you please test it on your Linux platform?
from mosa-project.
works for me (I just tested your branch as is, without any patches)
from mosa-project.
Related Issues (20)
- Add X64 Popcnt/Tzcnt/Lzcnt/AndN instructions
- Add x86 IMul instruction
- BUG: Launcher tool missing command line auguments HOT 1
- Add Methods to Korlib
- Integrate Visual Studio Debugger
- BUG: Unit test failures with Release build HOT 2
- Compiler cannot compile `System.Runtime.CompilerServices.NullableAttribute` HOT 2
- Add Serial Debug Logging
- Add Hardware Abstraction Layer (HAL) to BareMetal
- Clean up build annotations and warnings
- Integrate Unit Test Engine into BareMetal
- Assertion fails during ComputeArgumentSize HOT 7
- Adding DeviceService to ServiceManager causes a `System.IndexOutOfRangeException` HOT 2
- BUG: Conversion from R4/R8 to U4 HOT 2
- Add ARM64 Opcodes HOT 3
- Create ARM64 Projects HOT 2
- Add ARM32/ARM64 Launch options to Qemu HOT 1
- Support VMware Workstation GDB Stub
- Add Intel SARX/SHLX/SHRX instructions
- Add X86 Popcnt/Tzcnt/Lzcnt instructions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mosa-project.