Compare commits

...

2 Commits

Author SHA1 Message Date
Quinten Kock 41c6789687 i386-stivale2: fix stack 2020-12-19 18:26:23 +01:00
Quinten Kock 5535db2488 Build i386 for 80386 (TODO: add others like P4) 2020-12-19 18:25:57 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@ const x86_64 = Target {
const intel386 = Target {
.parent = &x86,
.cpu_arch = std.Target.Cpu.Arch.i386,
.cpu_model = std.build.Target.CpuModel {.explicit = &std.builtin.Target.x86.cpu._i386},
.archdir = "i386",
.name = "i386-generic",
};
@ -237,7 +238,7 @@ pub fn build(b: *Builder) !void {
exe.setTarget(getTarget(ktarget));
exe.setBuildMode(mode);
// exe.code_model = std.builtin.CodeModel.kernel;
exe.code_model = std.builtin.CodeModel.kernel;
exe.setLinkerScriptPath(getLinkerScript(ktarget));
// exe.setOutputDir("bin");
// exe.strip = true;

View File

@ -11,7 +11,7 @@ void stivale2_main(struct stivale2_struct *info);
__attribute__((section(".stivale2hdr"), used))
struct stivale2_header header2 = {
.entry_point = 0,
.stack = 1024*1024,
.stack = 1024*1024 + 15*1024,
.flags = 0,
.tags = 0
};