/*
* Reallocate the maps for a process
*/
-int pagemap_realloc(uint16_t size)
+int pagemap_realloc(usize_t size)
{
int have = maps_needed(udata.u_top);
int want = maps_needed(size);
return 0;
}
-uint16_t pagemap_mem_used(void)
+usize_t pagemap_mem_used(void)
{
return pfptr << 4;
}
* at one size, and switchout at the other and the udata will just get
* saved/restored to the right places.
*/
-int pagemap_realloc(uint16_t size) {
+int pagemap_realloc(usize_t size) {
int have = maps_needed(udata.u_top);
int want = maps_needed(size);
uint8_t *ptr = (uint8_t *) & udata.u_page;
return 0;
}
-uint16_t pagemap_mem_used(void) {
+usize_t pagemap_mem_used(void) {
return pfptr << 5;
}
}
/* Realloc is trivial - we can't do anything useful */
-int pagemap_realloc(uint16_t size)
+int pagemap_realloc(usize_t size)
{
if (size > MAP_SIZE)
return ENOMEM;
return 0;
}
-uint16_t pagemap_mem_used(void)
+usize_t pagemap_mem_used(void)
{
return (pfmax - pfptr) * (MAP_SIZE >> 10);
}
extern void pagemap_free(ptptr p);
extern int pagemap_alloc(ptptr p);
extern int pagemap_realloc(usize_t p);
-extern uaddr_t pagemap_mem_used(void);
+extern usize_t pagemap_mem_used(void);
extern void map_init(void);
extern void platform_idle(void);
extern uint8_t rtc_secs(void);