Add heap_init() for Netsurf (and others)

git-svn-id: svn://kolibrios.org@6897 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
ashmew2 2017-05-15 20:30:49 +00:00
parent 7d2d9814de
commit 7efe02d623

View File

@ -338,6 +338,20 @@ uint32_t get_os_button(void)
return val>>8;
};
static inline uint32_t
heap_init(void)
{
uint32_t heapsize;
__asm__ __volatile__(
"int $0x40"
:"=a"(heapsize)
:"a"(68),"b"(11)
);
return heapsize;
}
static inline uint32_t get_service(char *name)
{
uint32_t retval = 0;