mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 20:34:36 +03:00
Lesson 23, step 4, size_t usage
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
#define MEM_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
void memory_copy(uint8_t *source, uint8_t *dest, int nbytes);
|
||||
void memory_set(uint8_t *dest, uint8_t val, uint32_t len);
|
||||
|
||||
/* At this stage there is no 'free' implemented. */
|
||||
uint32_t kmalloc(uint32_t size, int align, uint32_t *phys_addr);
|
||||
uint32_t kmalloc(size_t size, int align, uint32_t *phys_addr);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user