This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct __attribute__((packed,aligned(4))) Ratios11 { | |
u32 d0r0 : 11; | |
u32 d0r1 : 11; | |
u32 d1r0 : 11; | |
u32 d1r1 : 11; | |
u32 d2r0 : 11; | |
u32 d2r1 : 11; | |
u32 d3r0 : 11; | |
u32 d3r1 : 11; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/sgx-init.service | |
[Unit] | |
Description=Initialize SGX | |
BindsTo=dev-dri-sgx.device | |
After=dev-dri-sgx.device | |
RefuseManualStop=true | |
DefaultDependencies=no | |
[Service] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <stdio.h> | |
#include <stdarg.h> | |
#include <stdlib.h> | |
[[ noreturn ]] | |
inline void die( char const *fmt, ... ) | |
{ | |
va_list ap; | |
va_start( ap, fmt ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(STILL BEING REVISED, and beware that not all uarts behave the same) | |
Table showing whether a particular byte triggers a break condition when | |
receiver uart is configured at a higher baudrate than the transmitter uart and | |
both are 8N1. | |
always = byte always triggers break regardless of preceding data | |
init = byte triggers break at least if preceded by line idle state | |
*** = not sure, dependent on subtle details of uart behaviour |
OlderNewer