forked from KolibriOS/kolibrios
Add heap_init() for Netsurf (and others)
git-svn-id: svn://kolibrios.org@6897 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
7d2d9814de
commit
7efe02d623
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user