Web Analytics

Transfer to '32-bit'

The phase we talked about before is in ‘Real-address Mode’, which runs 16-bit program modules. At the tail of “Begin ‘setup.S’”, we had moved to ‘Protected Mode’, which usu runs 32-bit program modules. So there are two big problems which are ‘How to transfer control between 16-bit code and 32-bit code’ and how to transfer control from ‘real-mode’ to protected mode’. They are also what we wanna talk about in this artical. ...

February 17, 2006 · 5 min · Tony Bai

Outline 'memory layout'

So far we have arrived at the gate leading to the real kernel. And we’d better stop for a short break in order that we would have more energy to go ahead. Now let’s examine what we do to memory these days. Virtually what we want to do is drawing some pictures to describe the layout of the memory in various phases. For the layout is related to the bootloader, we’d better make our work based on the following assumption: The machine has two systems installed (Windows XP and Linux) and uses LILO as the bootloader. Let us look at the LILO configuration: ...

February 15, 2006 · 3 min · Tony Bai

Begin 'setup.S'

It is time for ‘setup.S’ to show its power. The ‘setup.S’ is loaded by the bootloader and virtually it belongs to neither the ‘bootstrap’ routine nor the kernel program, although it is a portion of the kernel image. The source of the ‘setup.S’ is kinda ‘big’ and what it does can be summarized into one word: “the ‘setup.S’ is responsible to establish the environment for the execution of the kernel program”. ...

February 13, 2006 · 5 min · Tony Bai

Goto 'Bootstrap'

The term ‘Bootstrap’, which originally refers to a person who tries to stand up by pulling his own boots, refers to a subroutine used to establish the full routine(its own left part, i think) or another routine in computer science. Today modern computers act as a vital role in our daily life and many of you may wonder what happens to the computer when you have it powered on. The ‘Bootstrap’, which is also called ‘boot’ for short, is the first step to be done by the computer. The process of ‘Bootstrap’, which starts on when the computer is powered on and usu ends off when the kernel of the operating system begins to run, is just what we are gonna describe. ...

February 11, 2006 · 4 min · Tony Bai

Inside the 'i386'

The term ‘i386′ in the title does not refer to the real Intel 80386 processor but the representative of Intel 32-bit architecture(IA32). I prefer ‘i386′ rather than ‘IA32′ just like what the linux kernel does, since you can find ‘i386′ folder in $(linux-2.6.x_dir)/arch directory. This artical describes some basic knowledge of ‘i386′, which may be kinda useful to those guys who wanna do research on or develop operating system. ...

February 9, 2006 · 4 min · Tony Bai

Retired 'bootsect.S'

We know that the latest linux kernel version is 2.6.x, which is different from the ‘old kernels’ in booting. The ‘bootsect.S’, which used to make the kernel image in the floppy disk bootable in the early days, becomes useless in linux kernel 2.6.x today, although it is still a part of the kernel image. ...

February 8, 2006 · 3 min · Tony Bai

2006正月靓乐

临近春节大多数人都沉浸在喜庆气氛之中,歌手们也趁着这个时候忙里偷闲,所以在这个正月新专辑不多,这里我挑了几首我最近在听的老歌说说。 这里首先要说的是阿桑的’一直很安静’,以前只是听说过有阿桑这么一号人物,却不曾听过她的作品(也许听过但不知道就是阿桑的^_^)。一次偶然的机会听到这首醇美的歌曲,略微舒缓的节奏和阿桑那如清泉般甘甜的嗓音瞬间就征服了我的耳朵。我一口气听了不下10遍。这是一首’诉衷肠’的歌,基调是伤感的,但我相信真正为情伤感的人细细聆听这首歌后都会有一种真正的’心静’之感。 ...

January 24, 2006 · 2 min · Tony Bai

收到Ubuntu光盘

一个月以前在Ubuntu上订购了Ubuntu Linux 5.10发行版,今天终于拿到手了^_^。 在Linux发行版世界,大家最熟悉的几种发行版包括RedHat(或其开源版Fedora)、Debian、SuSE等,提到Ubuntu这个奇怪的名字大家都会感到陌生,在一个多月前我也不例外。Ubuntu是一个基于Debian的Linux操作系统发行版,它完全免费,这次我收到的Ubuntu光盘就是在其官方网站上免费订购的。一次偶然的机会在’Ubuntu中文论坛‘得知Linux世界还有Ubuntu这个发行版的存在,并且可以免费寄送光盘介质,当时的我非常希望手中能有张Linux正式发行版光盘,曾经考虑过Fedora,但是由于缺少刻录条件放弃了。Ubuntu恰好让我的愿望得到满足。当时还有一个担心就是Ubuntu不是主流发行版,是否影响自己在Linux上的体验呢?我Google了一下,发现自己大可不必为此担忧,Ubuntu在Linux社区中的口碑还是很好的,而且还获得了’Linux Journal‘杂志评选出的’2005最佳Linux发行版’奖。 ...

January 23, 2006 · 2 min · Tony Bai

make the world know China

Last night I watched the ‘Dialogue’ , which is a very pop ‘talk show’ TV program of CCTV2. the topic of this issue is ‘how to make the world know China’. Zhao Qi-zheng and He Dele were invited as honored guests. So far, China has become the 6th largest economic entity in the world. but how much on earth does the world know China? I have been in BBC Learning English discusion group for several months and there was a topic on China last November. People from other place of the world, most of which did not come to China, told their impression of China. In their mind, China is a large country with huge population, long history and it is a socialism country in which people are lack of political freedom and not well educated. Some people even do not know the relationship among Mainland, Taiwan, Hongkong and Macao. During the ‘Dialogue’, a guest told us a story. he said when he first arrived in America, an american told him he was not like a Chinese. he was amazing and asked the american why he felt like that. the american said Chinese should wear gown like the actor in the movie “Crouching Tiger, Hidden Dragon”. ...

January 16, 2006 · 2 min · Tony Bai

部门联欢小记

一年一度的部门联欢如期举行。由于部门今年的业绩一片飘红,大家脸上都带着笑容。联欢吗就是要放下一切不愉快的事情尽情的玩,起码我是这么做了,晚会结束后我的嗓子都喊哑了:)。 ...

January 15, 2006 · 1 min · Tony Bai