Cleaned up places where MM_Allocate was used without checks
[tpg/acess2.git] / Kernel / arch / x86 / include / mm_virt.h
index 2664a10..84b088c 100644 (file)
@@ -8,7 +8,7 @@
 
 // - Memory Layout
 #define        MM_USER_MIN     0x00200000
-#define        USER_STACK_SZ   0x00010000
+#define        USER_STACK_SZ   0x00020000      // 128 KiB
 #define        USER_STACK_TOP  0x00800000
 #define USER_LIB_MAX   0xBC000000
 #define        MM_USER_MAX     0xBC000000      // Top load address for user libraries
@@ -27,7 +27,7 @@
 // === FUNCTIONS ===
 extern void    MM_FinishVirtualInit(void);
 extern void    MM_SetCR3(Uint CR3);
-extern tPAddr  MM_Allocate(tVAddr VAddr);
+extern tPAddr  MM_Allocate(tVAddr VAddr) __attribute__ ((warn_unused_result));
 extern void    MM_Deallocate(tVAddr VAddr);
 extern int     MM_Map(tVAddr VAddr, tPAddr PAddr);
 extern tPAddr  MM_Clone(void);

UCC git Repository :: git.ucc.asn.au