Skip to content

Commit

Permalink
fix mp enable
Browse files Browse the repository at this point in the history
  • Loading branch information
evilbinary committed Sep 3, 2022
1 parent 5596ceb commit c6381d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions arch/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "libs/include/kernel/elf.h"
#include "interrupt.h"
#include "lock.h"
#include "platform/platform.h"

void arch_init(boot_info_t* boot,int cpu_id);

Expand Down
4 changes: 2 additions & 2 deletions boot/arm/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BOOT/ARM/CONFIG_H
#define BOOT/ARM/CONFIG_H
#define KERNEL_BLOCK_SIZE 194
#define KERNEL_SIZE 197672
#define KERNEL_BLOCK_SIZE 169
#define KERNEL_SIZE 172948
#endif
3 changes: 0 additions & 3 deletions kernel/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

#define PAGE_SIZE 0x1000

#define MP_ENABLE 1 //多cpu

#elif defined(ARMV7)

#define MAX_FD_NUMBER 50
Expand Down Expand Up @@ -68,7 +66,6 @@
#define THREAD_STACK_SIZE 4096*4
#define PAGE_SIZE 0x1000

#define MP_ENABLE 1 //多cpu
#endif


Expand Down
4 changes: 4 additions & 0 deletions platform/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@
#define ISR_SYSCALL 2
#define ISR_MOUSE 0x2c

#define MP_ENABLE 1 //多cpu

#elif defined(X86)

#define ISR_TIMER 0x20
#define ISR_KEYBOARD 0x21
#define ISR_SYSCALL 0x30
#define ISR_MOUSE 0x2c

#define MP_ENABLE 1 //多cpu


#elif defined(STM32F4XX)
#define ISR_TIMER 50
Expand Down

0 comments on commit c6381d9

Please sign in to comment.