sys_brk [mm/mmap.c]
Expands the size of .bss segment. This system call may be used for dynamical memory allocation. Arguments
eax | 45
ebx | Virtual address of the new .bss top. It should be between the current .bss top and current stack bottom minus 16384 bytes. 0 value may be used to obtain current top address of .bss section.
Return values If the system call succeeds and it was invoked with ebx set to 0 the return value is the current top of .bss section. Otherwise the return value is a pointer to the start of the new area. If the system call fails the return value is -ENOMEM. Remarks See /samples/basic/filecreate.asm for an example. Compatibility n/a