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
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#define SOCTHERM_ADDR 0x700e2000 | |
#define THERMTRIP_OFFS 0x80 | |
int main() { | |
int mem_fd; | |
unsigned char *mem; |