minoca / os

Minoca operating system
Other
2.71k stars 231 forks source link

ARMV6 release build error #127

Closed g8kig closed 7 years ago

g8kig commented 7 years ago

/src/os/kernel/mm/testmm/../x86/mapping.c: In function ‘MmpCreatePageDirectory’: /src/os/kernel/mm/testmm/../x86/mapping.c:2476:19: error: large integer implicitly truncated to unsigned type [-Werror=overflow] KernelIndex = (UINTN)KERNEL_VA_START >> PAGE_DIRECTORY_SHIFT; ^

evangreen commented 7 years ago

This is a build regression on non-Windows machines I introduced while starting work on x64 support. The fix is to change that (UINTN) cast to a (ULONG)(UINTN). Let me take a look around and make sure the rest of OS is building, and I'll push a fix.

evangreen commented 7 years ago

Pushed 03c0455c31ea2d80d2fc734bea478d1b0d11a2fb. Give the latest master a try.

g8kig commented 7 years ago

Build seems good now. Thank you.