[librm] Add rm stack copying functions

This commit is contained in:
Daniel Verkamp
2008-08-15 14:16:16 -04:00
committed by Michael Brown
parent 2539f5fa4a
commit aa28544373
2 changed files with 48 additions and 0 deletions

View File

@@ -279,6 +279,9 @@ user_to_phys ( userptr_t buffer, off_t offset ) {
return virt_to_phys ( ( void * ) buffer + offset );
}
extern uint16_t copy_user_to_rm_stack ( userptr_t data, size_t size );
extern void remove_user_from_rm_stack ( userptr_t data, size_t size );
/* TEXT16_CODE: declare a fragment of code that resides in .text16 */
#define TEXT16_CODE( asm_code_str ) \
".section \".text16\", \"ax\", @progbits\n\t" \