Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9149768
  • 博文数量: 1727
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19860
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1727)

文章存档

2024年(2)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: LINUX

2009-10-23 16:27:53

1. include/linux/time.h:174: undefined reference to `__aeabi_uldivmod'
此问题是由于arm-2008q3的Gcc 4.3版,进行了代码优化导致。
 

--- include/linux/time.h 2008-10-09 19:47:23.000000000 +0200
+++ include/linux/time.h.new 2008-10-09 19:47:54.000000000 +0200
@@ -173,6 +173,10 @@
 {
        ns += a->tv_nsec;
        while(unlikely(ns >= NSEC_PER_SEC)) {
+ /* The following asm() prevents the compiler from
+ * optimising this loop into a modulo operation. */

+ asm("" : "+r"(ns));
+
                ns -= NSEC_PER_SEC;
                a->tv_sec++;
        }

 

2.

阅读(2756) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~