|
@@ -29,7 +29,7 @@ static void free_unused_base_memory ( void );
|
29
|
29
|
* Return amount of free base memory in bytes
|
30
|
30
|
*
|
31
|
31
|
*/
|
32
|
|
-uint32_t get_free_base_memory ( void ) {
|
|
32
|
+unsigned int get_free_base_memory ( void ) {
|
33
|
33
|
return fbms << 10;
|
34
|
34
|
}
|
35
|
35
|
|
|
@@ -39,7 +39,7 @@ uint32_t get_free_base_memory ( void ) {
|
39
|
39
|
*
|
40
|
40
|
*/
|
41
|
41
|
void * alloc_base_memory ( size_t size ) {
|
42
|
|
- uint16_t size_kb = ( size + 1023 ) >> 10;
|
|
42
|
+ unsigned int size_kb = ( size + 1023 ) >> 10;
|
43
|
43
|
void *ptr;
|
44
|
44
|
|
45
|
45
|
DBG ( "Trying to allocate %d bytes of base memory from %d kB free\n",
|
|
@@ -99,8 +99,8 @@ void * alloc_base_memory ( size_t size ) {
|
99
|
99
|
*
|
100
|
100
|
*/
|
101
|
101
|
void free_base_memory ( void *ptr, size_t size ) {
|
102
|
|
- uint16_t remainder = virt_to_phys ( ptr ) & 1023;
|
103
|
|
- uint16_t size_kb = ( size + remainder + 1023 ) >> 10;
|
|
102
|
+ unsigned int remainder = virt_to_phys ( ptr ) & 1023;
|
|
103
|
+ unsigned int size_kb = ( size + remainder + 1023 ) >> 10;
|
104
|
104
|
union free_base_memory_block *free_block =
|
105
|
105
|
( ( void * ) ( ptr - remainder ) );
|
106
|
106
|
|