Update css

This commit is contained in:
2018-02-23 15:42:20 -05:00
parent 2522eb7da1
commit 0114b21336
7 changed files with 32 additions and 38 deletions
+1 -3
View File
@@ -83,9 +83,7 @@
<p>This interface-like function will then pass the function name, in this case function, to <em>usys.S</em>. When using user mode function in programs, <em>usys.S</em> will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from <em>syscall.c</em> and determining whether this system call is available. We must define same name system function and add it into <em>syscall.h</em> and <em>syscall.c</em>.</p>
<div class="language-c highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">#define SYS_function ## // ## is the system call number
</span>
<span class="p">[</span><span class="n">SYS_function</span><span class="p">]</span> <span class="n">sys_function</span> <span class="c1">// real system function name</span>
</span><span class="p">[</span><span class="n">SYS_function</span><span class="p">]</span> <span class="n">sys_function</span> <span class="c1">// real system function name</span>
<span class="k">extern</span> <span class="kt">int</span> <span class="n">sys_function</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> <span class="c1">// real system function declaration</span>
</code></pre></div></div>
+20 -20
View File
@@ -2,7 +2,7 @@
body {
margin: 0;
font-family: "Open Sans", "Helvetica Neue", "DejaVu Sans", Arial, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "微软雅黑", Helvetica, sans-serif;
font-size: 16px;
font-size: 15px;
line-height: 1.5; }
a {
@@ -21,7 +21,7 @@ blockquote {
code, pre {
font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", "Liberation Mono", "文泉驿等宽微米黑", "Courier New", Courier, SimSun, monospace;
font-size: 15px; }
font-size: 12px; }
code {
color: #900;
@@ -74,8 +74,8 @@ h1, h2, h3, h4, h5, h6 {
.wrapper {
max-width: 800px; } }
.header {
line-height: 32px;
background-color: #607D8B;
line-height: 30px;
background-color: rgba(53, 0, 138, 0.89);
padding: 10px;
margin: 0; }
.header:after {
@@ -86,17 +86,17 @@ h1, h2, h3, h4, h5, h6 {
float: left;
color: #FFF;
text-decoration: none;
font-size: 16px;
line-height: 32px; }
font-size: 15px;
line-height: 30px; }
.header .site-nav {
text-align: right; }
.header .site-nav a {
text-decoration: none;
color: #CFD8DC;
color: white;
padding: 10px 20px;
white-space: nowrap; }
.header .site-nav a:hover, .header .site-nav a:focus {
background: #78909C; }
background: #2b0070; }
.page-content {
background: #e0e0e3;
@@ -140,7 +140,7 @@ h1, h2, h3, h4, h5, h6 {
.col-box {
color: #666;
font-size: 14px;
font-size: 13.125px;
padding-bottom: 20px; }
.col-box p {
margin: 0; }
@@ -153,7 +153,7 @@ h1, h2, h3, h4, h5, h6 {
.col-box .col-box-title {
color: #333;
margin-bottom: 10px;
font-size: 15.4px; }
font-size: 14.4375px; }
@media (max-width: 1120px) {
.page-content .wrapper:before {
@@ -186,7 +186,7 @@ h1, h2, h3, h4, h5, h6 {
margin: 20px auto;
display: block; }
.col-box-author .name {
font-size: 16px; }
font-size: 15px; }
.col-box-author .contact {
margin-top: 10px; }
.col-box-author .contact a {
@@ -205,7 +205,7 @@ h1, h2, h3, h4, h5, h6 {
background-color: #e0e0e3;
text-align: center;
color: #666;
font-size: 14px; }
font-size: 13.125px; }
.post .post-header {
margin: 0 100px;
@@ -220,7 +220,7 @@ h1, h2, h3, h4, h5, h6 {
font-size: 34px; } }
.post .post-header .post-meta {
color: #999;
font-size: 14px;
font-size: 13.125px;
margin: 0 -100px; }
@media screen and (max-width: 600px) {
.post .post-header {
@@ -262,7 +262,7 @@ h1, h2, h3, h4, h5, h6 {
border: 1px solid;
color: #999;
background: #fff;
font-size: 11.2px;
font-size: 10.5px;
padding: 1px 8px; }
.home .rss-link:hover, .home .rss-link:focus {
color: #666; }
@@ -271,23 +271,23 @@ h1, h2, h3, h4, h5, h6 {
padding: 20px 40px;
list-style: none; }
.home .post-list > li {
padding-bottom: 30px;
padding-bottom: 15px;
border-bottom: 1px solid #CCC;
margin-bottom: 30px; }
margin-bottom: 15px; }
.home .post-list .post-title {
font-size: 28px;
font-weight: normal;
font-weight: bold;
margin: 0; }
.home .post-list .post-meta {
font-size: 14px;
font-size: 13.125px;
color: #666;
margin: 0 20px;
margin-bottom: .5em; }
.home .post-list .post-excerpt {
margin: 0 20px; }
.home .post-list .post-excerpt, .home .post-list .post-excerpt * {
font-size: 14px;
line-height: 14px;
font-size: 13.125px;
line-height: 13.125px;
padding-top: 0;
padding-bottom: 0;
color: #333; }
+3 -5
View File
@@ -6,8 +6,8 @@
</description>
<link>https://codersherlock.github.com//</link>
<atom:link href="https://codersherlock.github.com//feed.xml" rel="self" type="application/rss+xml"/>
<pubDate>Fri, 23 Feb 2018 15:23:54 -0500</pubDate>
<lastBuildDate>Fri, 23 Feb 2018 15:23:54 -0500</lastBuildDate>
<pubDate>Fri, 23 Feb 2018 15:42:08 -0500</pubDate>
<lastBuildDate>Fri, 23 Feb 2018 15:42:08 -0500</lastBuildDate>
<generator>Jekyll v3.7.2</generator>
<item>
@@ -25,9 +25,7 @@
&lt;p&gt;This interface-like function will then pass the function name, in this case function, to &lt;em&gt;usys.S&lt;/em&gt;. When using user mode function in programs, &lt;em&gt;usys.S&lt;/em&gt; will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from &lt;em&gt;syscall.c&lt;/em&gt; and determining whether this system call is available. We must define same name system function and add it into &lt;em&gt;syscall.h&lt;/em&gt; and &lt;em&gt;syscall.c&lt;/em&gt;.&lt;/p&gt;
&lt;div class=&quot;language-c highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;#define SYS_function ## // ## is the system call number
&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SYS_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sys_function&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// real system function name&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SYS_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sys_function&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// real system function name&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;extern&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sys_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// real system function declaration&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;