Changeset b0b4592e in mainline for kernel/generic/include
- Timestamp:
- 2014-03-15T19:21:53Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c773adc
- Parents:
- 2034f98 (diff), 8cffdf5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- kernel/generic/include
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/console.h
r2034f98 rb0b4592e 39 39 #include <print.h> 40 40 #include <console/chardev.h> 41 #include <synch/spinlock.h> 41 42 42 43 #define PAGING(counter, increment, before, after) \ … … 62 63 extern void console_init(void); 63 64 64 extern void klog_init(void); 65 extern void klog_update(void *); 65 extern void kio_init(void); 66 extern void kio_update(void *); 67 extern void kio_flush(void); 68 extern void kio_push_char(const wchar_t); 69 SPINLOCK_EXTERN(kio_lock); 66 70 67 71 extern wchar_t getc(indev_t *indev); 68 72 extern size_t gets(indev_t *indev, char *buf, size_t buflen); 69 extern sysarg_t sys_k log(int cmd, const void *buf, size_t size);73 extern sysarg_t sys_kio(int cmd, const void *buf, size_t size); 70 74 71 75 extern void grab_console(void); -
kernel/generic/include/debug.h
r2034f98 rb0b4592e 107 107 #define LOG(format, ...) \ 108 108 do { \ 109 printf("%s() from %s at %s:%u: " format "\n", __func__, \ 109 log(LF_OTHER, LVL_DEBUG, \ 110 "%s() from %s at %s:%u: " format,__func__, \ 110 111 symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \ 111 112 ##__VA_ARGS__); \ -
kernel/generic/include/mm/as.h
r2034f98 rb0b4592e 140 140 /** This structure can be deallocated if refcount drops to 0. */ 141 141 size_t refcount; 142 142 /** True if the area has been ever shared. */ 143 bool shared; 144 143 145 /** 144 146 * B+tree containing complete map of anonymous pages of the shared area. 145 147 */ 146 148 btree_t pagemap; 149 150 /** Address space area backend. */ 151 struct mem_backend *backend; 152 /** Address space area shared data. */ 153 void *backend_shared_data; 147 154 } share_info_t; 148 155 … … 169 176 uintptr_t base; 170 177 size_t frames; 178 bool anonymous; 171 179 }; 172 180 } mem_backend_data_t; … … 226 234 int (* page_fault)(as_area_t *, uintptr_t, pf_access_t); 227 235 void (* frame_free)(as_area_t *, uintptr_t, uintptr_t); 236 237 bool (* create_shared_data)(as_area_t *); 238 void (* destroy_shared_data)(void *); 228 239 } mem_backend_t; 229 240 -
kernel/generic/include/synch/spinlock.h
r2034f98 rb0b4592e 137 137 #ifdef CONFIG_DEBUG_SPINLOCK 138 138 139 #include < print.h>139 #include <log.h> 140 140 141 141 #define DEADLOCK_THRESHOLD 100000000 … … 146 146 if ((pname)++ > (value)) { \ 147 147 (pname) = 0; \ 148 printf("Deadlock probe %s: exceeded threshold %u\n" \ 148 log(LF_OTHER, LVL_WARN, \ 149 "Deadlock probe %s: exceeded threshold %u\n" \ 149 150 "cpu%u: function=%s, line=%u\n", \ 150 151 #pname, (value), CPU->id, __func__, __LINE__); \
Note:
See TracChangeset
for help on using the changeset viewer.