摘要:
2017-12-13 10:44:19gcc -02引起内存溢出'unsigned i'应修订为'volatile unsigned i'1.3.100 driver/char/random.cstatic inline void add_entropy_word(struct random_buc 阅读全文
摘要:
2017-12-12 18:53:04gcc优化引起get_free_page比__get_free_page返回值多4096内核版本:1.3.100extern inline unsigned long get_free_page(int priority){ unsigned long page 阅读全文
摘要:
gdb跟踪剖发现free_area_init中一段优化错了,如下: memset(mem_map, 0, start_mem - (unsigned long) mem_map); do { __asm__ __volatile__("":::"memory"); //gcc请不要优化 --p; p 阅读全文
摘要:
int change_bit(int nr, void * addr){ int oldbit; //1.第nr位取反, 原nr位入CF //2. sbbl带借位减(把源操作数和标志位CF的值从目的操作数中一起减去) // 即oldbit保留了结果为nr位上原值:0 or -1 __asm__ __ 阅读全文
摘要:
/* * IBM messed up *AGAIN* in their thinkpad: 0xA0000 -> 0x9F000. * They seem to have done something stupid with the floppy * controller as well.. */ 阅读全文
摘要:
1.3.100static inline pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags){ long retval; __asm__ __volatile__( "movl %%esp,%%esi\n\t 阅读全文
摘要:
时钟中断TIMER_BH(bottom_half)实现分析1.3.1001. 时钟0号中断安装 setup_x86_irq(0, &irq0);@arch/i386/kernel/time.c |- set_intr_gate(0x20+irq,interrupt[irq]);//interrupt 阅读全文
摘要:
2017-12-6 10:26:504.9.51int __get_order(unsigned long size){ int order; size--; size >>= PAGE_SHIFT;#if BITS_PER_LONG == 32 order = fls(size);#else or 阅读全文
摘要:
piggy.lnk 简析 SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }} 简析:SECTIONS { .data 阅读全文
摘要:
赵炯:男,1963年10月5日出生,江苏苏州人,汉族。 同济大学机械工程学院机械电子教研室副教授,从事教学和科研工作。 现在主要为硕士和博士研究生开设《计算机通信技术》、《计算机控制技术》、《现代电子学》等课程。 同时参与国家自然科学基金项目“系统芯片在线测试与容错技术研究”的工作。为国际计算机仿真 阅读全文