fix(isr): reallign stack after isr wrapper
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
parent
457dfdd7a4
commit
e425051af7
@ -41,7 +41,7 @@ DEPS = $(OBJS:.o=.d)
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): CPPFLAGS += -MMD -Iinclude -I ../libs/libc/include/
|
||||
$(TARGET): CFLAGS += $(K_EXTRA_CFLAGS)
|
||||
$(TARGET): CFLAGS += $(K_EXTRA_CFLAGS) -g
|
||||
$(TARGET): LDFLAGS += -Wl,-Tk.lds
|
||||
$(TARGET): LDLIBS = -L../libs/libc -lc
|
||||
$(TARGET): $(OBJS)
|
||||
|
1
k/isr.S
1
k/isr.S
@ -7,6 +7,7 @@ isr:
|
||||
call interrupt_handler
|
||||
add $4, %esp
|
||||
popal
|
||||
add $8, %esp
|
||||
iret
|
||||
|
||||
.global isr_divide
|
||||
|
8
k/k.c
8
k/k.c
@ -45,8 +45,14 @@ void k_main(unsigned long magic, multiboot_info_t *info)
|
||||
char *fb = (void *)0xb8000;
|
||||
|
||||
k_init();
|
||||
|
||||
asm volatile("int $3\n"
|
||||
:
|
||||
:
|
||||
:);
|
||||
printf("bonjour\r\n");
|
||||
|
||||
|
||||
|
||||
for (unsigned i = 0; ; ) {
|
||||
*fb = star[i++ % 4];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user