Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start.S
- .section .multiboot
- mov $0xaaaaaaaa, %eax
- mov $0xbbbbbbbb, %ebx
- .section .setup
- .global _kernel_entry
- _kernel_entry:
- mov $0xcccccccc, %ecx
- ------------------------------------------------------------------------
- earlycon.c
- int a1 = 1;
- int b0;
- int c() { return a1; }
- ------------------------------------------------------------------------
- preinit.c
- int x1 = 1;
- int y0;
- int z() { return x1; }
- ------------------------------------------------------------------------
- Makefile
- AS = i586-elf-as
- GCC = i586-elf-gcc
- LD = i586-elf-ld
- SRCS = $(wildcard src/arch/x86/preinit/*.S src/arch/x86/preinit/*.c wildcard src/arch/x86/*.c)
- OBJS = $(addsuffix .o, $(basename $(SRCS)))
- k: $(OBJS)
- $(LD) -T kernel.ld -o $@ $+
Advertisement
Add Comment
Please, Sign In to add comment