Skip to content

Commit 25b0f52

Browse files
committed
change errno behavior to be handle by userspace
1 parent dccde6d commit 25b0f52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+276
-502
lines changed

so3/arch/arm32/context.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ __enable_vfp:
6666
@ Get the additional arguments linked to the syscall.
6767
@ The ABI convention is described in crt0.S of the libc.
6868
@ r7 contains the syscall number
69-
@ r10 contains the address of the errno variable
7069
__get_syscall_args_ext:
7170

7271
str r7, [r0]
73-
str r10, [r1]
7472

7573
mov pc, lr
7674

@@ -275,8 +273,6 @@ ENTRY(__root_proc)
275273
adr r1, .LC_welcome
276274
mov r2, #welcome_len
277275
mov r7, #SYSCALL_WRITE
278-
@ No errno
279-
mov r10, #0
280276
@ Invoke the syscall - kernel side
281277
svc 0
282278

@@ -285,8 +281,6 @@ ENTRY(__root_proc)
285281
@ No args
286282
mov r1, #0
287283
mov r2, #0
288-
@ No errno
289-
mov r10, #0
290284

291285
mov r7, #SYSCALL_EXECVE
292286

so3/arch/arm64/context.S

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,10 @@ ENTRY(cpu_do_idle)
176176
// Get the additional arguments linked to the syscall.
177177
// The ABI convention is described in crt0.S of the libc.
178178
// x8 contains the syscall number
179-
// x9 contains the address of the errno variable
180179

181180
__get_syscall_args_ext:
182181

183182
str x8, [x0]
184-
str x9, [x1]
185183

186184
ret
187185

@@ -297,9 +295,6 @@ ENTRY(__root_proc)
297295
mov x2, welcome_len
298296
mov x8, #SYSCALL_WRITE
299297

300-
// No errno
301-
mov x9, xzr
302-
303298
// Invoke the syscall - kernel side
304299
svc 0
305300

@@ -311,9 +306,6 @@ ENTRY(__root_proc)
311306
mov x1, xzr
312307
mov x2, xzr
313308

314-
// No errno
315-
mov x9, xzr
316-
317309
mov x8, #SYSCALL_EXECVE
318310

319311
svc 0
@@ -325,9 +317,6 @@ ENTRY(__root_proc)
325317
mov x2, noshell_len
326318
mov x8, #SYSCALL_WRITE
327319

328-
// No errno
329-
mov x9, xzr
330-
331320
svc 0
332321

333322
b kernel_panic

so3/arch/arm64/traps.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include <common.h>
2020
#include <psci.h>
21-
#include <errno.h>
2221
#include <smp.h>
2322
#include <mmio.h>
2423

so3/avz/kernel/ME_build.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <percpu.h>
2121
#include <ctype.h>
2222
#include <console.h>
23-
#include <errno.h>
2423
#include <heap.h>
2524

2625
#include <avz/sched.h>

so3/avz/kernel/agency_build.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <percpu.h>
2121
#include <ctype.h>
2222
#include <console.h>
23-
#include <errno.h>
2423
#include <memory.h>
2524
#include <heap.h>
2625

so3/avz/kernel/console.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include <common.h>
2020
#include <stdarg.h>
21-
#include <errno.h>
2221
#include <spinlock.h>
2322
#include <console.h>
2423
#include <serial.h>

so3/avz/kernel/domain.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <stdarg.h>
2121
#include <serial.h>
2222
#include <console.h>
23-
#include <errno.h>
2423
#include <softirq.h>
2524
#include <memory.h>
2625
#include <heap.h>

so3/avz/kernel/image-fit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include <string.h>
1414
#include <console.h>
15-
#include <errno.h>
1615

1716
#include <asm/byteorder.h>
1817

so3/avz/kernel/sched_flip.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <common.h>
2424
#include <timer.h>
2525
#include <softirq.h>
26-
#include <errno.h>
2726

2827
#include <avz/sched.h>
2928
#include <avz/sched-if.h>

so3/avz/kernel/schedule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <timer.h>
2121
#include <softirq.h>
2222
#include <spinlock.h>
23-
#include <errno.h>
2423

2524
#include <device/irq.h>
2625

0 commit comments

Comments
 (0)