SingingCat 0
application
baseinfo.c
1#include "main-header.h"
2
3extern void *BASEADR; // its the ADRESS of the label !!
4
5struct app_header *get_app_header() {
6 return (struct app_header *)&BASEADR;
7}
11struct meta_header *get_other_meta_header(void *mem) {
12 return mem - 1024;
13}
17struct meta_header *get_meta_header() {
18 int i;
19
20 for (i = 0; i < loader_get_app_base_address_count(); i++) {
21 if (loader_get_app_base_address(i) == get_app_header()) {
22 return loader_get_app_meta_address(i);
23 }
24 }
25 return NULL;
26}