This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %{ | |
| /* | |
| * 带符号表的单词识别程序 | |
| */ | |
| enum { | |
| LOOKUP = 0, /* 默认查找 */ | |
| VERB, | |
| ADJ, | |
| ADV, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <kernel/hd.h> | |
| extern s_sys_var *sys_var; | |
| /* | |
| * read_block : 读块数据 | |
| * - u32 hd_dev_id : 块设备类型 | |
| * - u32 lba : 线性编号 | |
| * - void *data : 数据地址 | |
| * return : void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::{ | |
| future::Future, | |
| sync::{ | |
| mpsc::{sync_channel, Receiver, SyncSender}, | |
| Arc, Mutex, | |
| }, | |
| task::{Poll, Waker, Context}, | |
| thread, | |
| time::Duration, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile | |
| index b7ad9f8..40bf07d 100644 | |
| --- a/arch/x86/vdso/Makefile | |
| +++ b/arch/x86/vdso/Makefile | |
| @@ -69,7 +69,7 @@ vdso32.so-$(VDSO32-y) += sysenter | |
| vdso32-images = $(vdso32.so-y:%=vdso32-%.so) | |
| CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds) | |
| -VDSO_LDFLAGS_vdso32.lds = -m elf_i386 -Wl,-soname=linux-gate.so.1 | |
| +VDSO_LDFLAGS_vdso32.lds = -m32 -Wl,-soname=linux-gate.so.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Project | |
| plugins { | |
| alias(libs.plugins.ksp) apply false | |
| alias(libs.plugins.hilt) apply false | |
| } | |
| // Module | |
| plugins { | |
| alias(libs.plugins.ksp) | |
| alias(libs.plugins.hilt) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <opusenc.h> | |
| #include <vector> | |
| #include <fstream> | |
| #include <iostream> | |
| std::vector<unsigned char> readFile(const std::string &filename) { | |
| std::ifstream file(filename, std::ios::binary | std::ios::ate); | |
| if (!file.is_open()) { | |
| throw std::runtime_error("Failed to open file: " + filename); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # 配置参数 | |
| ROOTFS_DIR="./rootfs" # 根文件系统目录 | |
| OUTPUT_IMG="rootfs.img" # 输出镜像文件名 | |
| IMG_SIZE="64M" # 镜像大小 | |
| ARCH="aarch64" # 目标架构 (x86_64/arm/aarch64) | |
| KERNEL_PATH="./bzImage" # 内核路径 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2025 Duolingo, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
OlderNewer