Ticket #36 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

Access to OS variables

Reported by: ExtendeD Owned by:
Priority: minor Milestone:
Component: Ndless: Toolchain Version:
Keywords: Cc:

Description

OS variables such as stdin/stdout currently cannot be accessed.

They should be declared in syscalls.h with a variable flag.

The swi handler should simply return the address in the caller mode's r0 when it reads such a flag.

OS.h should provide _SYSCALL_*() macros for this.

Change History

Changed 2 years ago by ExtendeD

  • milestone v2.0 deleted

Changed 2 years ago by ExtendeD

Changed 2 years ago by ExtendeD

_SYSCALL_OSVAR() is now defined, the stdin/stdout/stderr os variables still need to be defined.

Changed 2 years ago by ExtendeD

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.