SYS_SUPPORT

Support-level syscalls.

Author

Luca Donno, Antonio Lopez, Samuele Marro, Edoardo Merli

Version

0.3.0

Date

2021-04-19

Copyright

Copyright (c) 2021

Defines

DEVREG(IntlineNo, DevNo, Reg)
DEVADDRBASE(IntlineNo, DevNo)
FLASHSEM
PRINTSEM
TERMRDSEM
TERMWRSEM

Functions

void generalExceptionHandler()

Handles general support level exceptions.

void trapExceptionHandler(support_t *currentSupport)

Handles support level traps.

Parameters

currentSupport – Pointer to the support structure of the process that caused the trap.

Variables

semaphore semMutexDevices[DEVICE_TYPES][DEVICE_INSTANCES]

Support level semaphores to regulate access to devices.

Remark

These semaphores should always be accessed with SYSCALL(…).