pluto icon indicating copy to clipboard operation
pluto copied to clipboard

zig build test -Dtarget=aarch64-freestanding seems to use x86 files

Open markfirmware opened this issue 5 years ago • 1 comments

./src/kernel/arch/x86/arch.zig:500:30: error: expected type 'u32', found 'usize'
    stack[STACK_SIZE - 11] = @ptrToInt(&stack[STACK_SIZE - 1]); // ebp
                             ^
./src/kernel/arch/x86/arch.zig:500:30: note: unsigned 32-bit int cannot represent all possible unsigned 64-bit values
    stack[STACK_SIZE - 11] = @ptrToInt(&stack[STACK_SIZE - 1]); // ebp
                             ^
./src/kernel/arch/x86/paging.zig:215:21: error: expected type 'u32', found 'usize'
        dir_entry.* |= DENTRY_PAGE_ADDR & table_phys_addr;
                    ^
./src/kernel/arch/x86/paging.zig:215:21: note: unsigned 32-bit int cannot represent all possible unsigned 64-bit values
        dir_entry.* |= DENTRY_PAGE_ADDR & table_phys_addr;

markfirmware avatar Sep 26 '20 20:09 markfirmware

Sorry for missing this, I didn't see it in my notification feed! I can reproduce this, thanks for reporting.

SamTebbs33 avatar Oct 26 '20 17:10 SamTebbs33