Changeset 267 for soft/giet_vm/giet_kernel/sys_handler.c
- Timestamp:
- Jan 13, 2014, 3:20:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/sys_handler.c
r263 r267 48 48 &_fb_sync_write, /* 0x10 */ 49 49 &_fb_sync_read, /* 0x11 */ 50 &_ sys_ukn,/* 0x12 */51 &_ sys_ukn,/* 0x13 */50 &_thread_id, /* 0x12 */ 51 &_tty_get_release_lock,/* 0x13 */ 52 52 &_sys_ukn, /* 0x14 */ 53 53 &_sys_ukn, /* 0x15 */ … … 180 180 { 181 181 return _get_context_slot(CTX_GTID_ID); 182 } 183 184 ///////////////////////////////////////////////////////////////////////////// 185 // _thread_id() 186 // Returns current thread index. 187 ///////////////////////////////////////////////////////////////////////////// 188 unsigned int _thread_id() 189 { 190 return _get_context_slot(CTX_TRDID_ID); 191 } 192 193 ///////////////////////////////////////////////////////////////////////////// 194 // _tty_get_release_lock(int val) 195 // Get or release the hardware TTY lock depending on val (0: get,1: release) 196 ///////////////////////////////////////////////////////////////////////////// 197 int _tty_get_release_lock(unsigned int val) 198 { 199 unsigned int channel = _get_context_slot(CTX_TTY_ID); 200 201 if ( val == 0 ) _tty_get_lock(channel); 202 else if ( val == 1 ) _tty_release_lock(channel); 203 else return -1; // Wrong action 204 205 return 0; 182 206 } 183 207
Note: See TracChangeset
for help on using the changeset viewer.