bootloader和bootstrap的區別在 《embedded linux primer 》上看到的,其實還有一些分歧和不精確的地方,比如bootstrap 和bootstrap loader似乎在PC上還有區別,不過還是不影響理解了http://www.devbone.com/leadbbs/MINI/Default.asp?100-2246-0-0-0-0-0-a-.htm又如RedBoot(RedHat Embedded Debug and
printf 格式化輸出 有很多種可以選擇的格式化方式。通常我們最多使用的就是 %s %d %f %c 等。其實還有一些別的選擇。配合數字選項,可以靈活實現一些特定的東西。MSDN中的說法:c int or wint_t When used with printf functions, specifies a single-byte character; when used with wprintffunctions, specifies a wide character. C int or
文章目錄 Creating the ImageUsing the Image quoted from http://www.omninerd.com/articles/Installing_GRUB_on_a_Hard_Disk_Image_File IntroductionGRUB is the GRand Unified Bootloader. For those unfamiliar, a bootloader is a
產生競爭的原因: 對資源的共用訪問,包括硬體資源(裝置)和軟體資源(記憶體空間) 原則: 盡量減少共用資源的使用,如全域變數等 解決的方法: 通過建立critical section是操作成為原子操作,使同一時間內,只有一個線程操作該段代碼。 kernel對不同的情況提供了不同的方法,注意的是,有的方法可以 Go to sleep的,有的不行! 有的方法會導致執行的線程go to sleep,而有的方法不會。 有的代碼是允許sleep的,那就可以使用go to
When you are outside of process context (i.e., in interrupt context), you must observe thefollowing rules: • No access to user space is allowed. Because there is no process context, there is no path to the user space associated with any
/* * procfs3.c - create a "file" in /proc, use the file_operation way * to manage the file. */#include <linux/kernel.h> /* We're doing kernel work */#include <linux/module.h> /* Specifically, a module
出自:http://blog.yarshure.com/archives/000072.htmlFreeBSD ports中make可帶有的參數一直以來大家不知道在ports中的make還可以有很多的功能,今天我將它可以帶有的參數一個個列出來。希望做為一個記錄,還是比較有用的喲。fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined) into ${DISTDIR} as necessary. fetch-list