Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit a11cb14

Browse files
authored
Fuxed
1 parent 203563e commit a11cb14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/core/process.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int load_program(Process* proc, void* code, size_t size) {
9797

9898

9999
void cswitch(cpu_state_t* old_state, cpu_state_t* new_state) {
100-
asm volatile (
100+
asm (
101101
// save
102102
"pushf \n" // flags
103103
"pusha \n" // regs
@@ -125,7 +125,7 @@ void switch_proc(Process* next_proc) {
125125
cswitch((cpu_state_t*)(old_proc->ksp), (cpu_state_t*)(next_proc->ksp));
126126
} else {
127127
// first proc ever.
128-
asm volatile (
128+
asm (
129129
"movl %0, %%esp \n"
130130
"popa \n"
131131
"add $8, %%esp \n"

0 commit comments

Comments
 (0)